|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.servicecore.ServiceAdminImpl
org.rioproject.monitor.ProvisionMonitorAdminImpl
public class ProvisionMonitorAdminImpl
The ProvisionMonitorAdminImpl class implements the ServiceAdmin interface providing administrative support.
| Field Summary |
|---|
| Fields inherited from class org.rioproject.resources.servicecore.ServiceAdminImpl |
|---|
adminProxy, exporter |
| Constructor Summary | |
|---|---|
ProvisionMonitorAdminImpl(ProvisionMonitorImpl service,
Exporter exporter)
Create a ProvisionMonitorAdminImpl |
|
ProvisionMonitorAdminImpl(ProvisionMonitorImpl service,
Exporter exporter,
SnapshotHandler snapshotHandler)
Create a ProvisionMonitorAdminImpl |
|
| Method Summary | |
|---|---|
Map<String,Throwable> |
deploy(OperationalString opString)
Deploy an OperationalString to the ProvisionMonitor. |
Map<String,Throwable> |
deploy(OperationalString opString,
ServiceProvisionListener listener)
Deploy an OperationalString to the ProvisionMonitor. |
Map<String,Throwable> |
deploy(String location)
Deploy an OperationalString to the ProvisionMonitor. |
Map<String,Throwable> |
deploy(String location,
ServiceProvisionListener listener)
Deploy an OperationalString to the ProvisionMonitor. |
Map<String,Throwable> |
deploy(URL opStringURL)
Deploy an OperationalString URL to the ProvisionMonitor. |
Map<String,Throwable> |
deploy(URL opStringURL,
ServiceProvisionListener listener)
Deploy an OperationalString URL to the ProvisionMonitor. |
ProvisionMonitor.PeerInfo[] |
getBackupInfo()
Get the ProvisionMonitor instances that are being backed up |
OperationalStringManager |
getOperationalStringManager(String name)
Retrieve the managing OperationalStringManager for an OperationalString |
OperationalStringManager[] |
getOperationalStringManagers()
This will retrieve an array of OperationalStringManager instances that are managing deployed OperationalString instances. |
TrustVerifier |
getProxyVerifier()
Override parent's method to return TrustVerifier which can
be used to verify that the given proxy to this service can be trusted |
ServiceAdmin |
getServiceAdmin()
Override parents getServiceAdmin method |
boolean |
hasDeployed(String opStringName)
Determine if this ProvisionMonitor has deployed the OperationalString as determined by the name |
boolean |
undeploy(String opStringName)
Undeploy an OperationalString deployed by the ProvisionMonitor. |
| Methods inherited from class org.rioproject.resources.servicecore.ServiceAdminImpl |
|---|
addLookupAttributes, addLookupGroups, addLookupLocators, advertise, destroy, getJoinSet, getLookupAttributes, getLookupGroups, getLookupLocators, getServiceBeanInstantiatorUuid, getServiceElement, getUpTime, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators, setServiceBeanContext, setServiceElement, start, stop, unadvertise, unexport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.rioproject.resources.servicecore.ServiceAdmin |
|---|
getJoinSet |
| Methods inherited from interface org.rioproject.core.jsb.ServiceBeanAdmin |
|---|
getServiceBeanInstantiatorUuid, getServiceElement, getUpTime, setServiceElement |
| Methods inherited from interface org.rioproject.jsb.ServiceBeanControl |
|---|
advertise, start, stop, unadvertise |
| Methods inherited from interface net.jini.admin.JoinAdmin |
|---|
addLookupAttributes, addLookupGroups, addLookupLocators, getLookupAttributes, getLookupGroups, getLookupLocators, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators |
| Methods inherited from interface com.sun.jini.admin.DestroyAdmin |
|---|
destroy |
| Constructor Detail |
|---|
public ProvisionMonitorAdminImpl(ProvisionMonitorImpl service,
Exporter exporter)
service - Concrete implementation of a ServiceBeanAdapterexporter - The Exporter to export this object
public ProvisionMonitorAdminImpl(ProvisionMonitorImpl service,
Exporter exporter,
SnapshotHandler snapshotHandler)
service - Concrete implementation of a ServiceBeanAdapterexporter - The Exporter to export this objectsnapshotHandler - The service's snapshot handler used for persistence| Method Detail |
|---|
public TrustVerifier getProxyVerifier()
TrustVerifier which can
be used to verify that the given proxy to this service can be trusted
getProxyVerifier in interface ServerProxyTrust
public ServiceAdmin getServiceAdmin()
throws RemoteException
getServiceAdmin in class ServiceAdminImplRemoteException - if an communication errors occur
public Map<String,Throwable> deploy(URL opStringURL)
throws OperationalStringException
DeployAdmin
deploy in interface DeployAdminopStringURL - The URL indicating the location of the
OperationalString to deploy
OperationalStringException - If the OperationalString parsing
errors occur
public Map<String,Throwable> deploy(URL opStringURL,
ServiceProvisionListener listener)
throws OperationalStringException
DeployAdmin
deploy in interface DeployAdminopStringURL - The URL indicating the location of the
OperationalString to deploylistener - If not null, the ServiceProvisionListener will be
notified as each service is deployed
OperationalStringException - If OperationalString parsing
errors occur
public Map<String,Throwable> deploy(String location)
throws OperationalStringException
DeployAdmin
deploy in interface DeployAdminlocation - The location of the OperationalString to deploy
(may also be an OAR, or artifact that resolves to an OAR)
OperationalStringException - If the OperationalString parsing
errors occur
public Map<String,Throwable> deploy(String location,
ServiceProvisionListener listener)
throws OperationalStringException
DeployAdmin
deploy in interface DeployAdminlocation - The location of the OperationalString to deploy
(may also be an OAR, or artifact that resolves to an OAR)listener - If not null, the ServiceProvisionListener will be
notified as each service is deployed
OperationalStringException - If OperationalString parsing
errors occur
public Map<String,Throwable> deploy(OperationalString opString)
throws OperationalStringException
DeployAdmin
deploy in interface DeployAdminopString - The OperationalString to deploy
OperationalStringException - If the OperationalString parsing
errors occur
public Map<String,Throwable> deploy(OperationalString opString,
ServiceProvisionListener listener)
throws OperationalStringException
DeployAdmin
deploy in interface DeployAdminopString - The OperationalString to deploylistener - If not null, the ServiceProvisionListener will be
notified as each service is deployed
OperationalStringException - if the the entire deployment fails
public boolean undeploy(String opStringName)
throws OperationalStringException
DeployAdminServiceElement.ProvisionType.DYNAMIC or
ServiceElement.ProvisionType.FIXED
will be terminated. If any deployment request or redeployment requests
are pending for the OperationalString(s) being undeployed, these
requests will be cancelled
undeploy in interface DeployAdminopStringName - The name of the OperationalString or directory to
undeploy
OperationalStringException - If the OperationalString does not
existpublic boolean hasDeployed(String opStringName)
DeployAdmin
hasDeployed in interface DeployAdminopStringName - The name of the OperationalString
public OperationalStringManager[] getOperationalStringManagers()
DeployAdmin
getOperationalStringManagers in interface DeployAdmin
public OperationalStringManager getOperationalStringManager(String name)
throws OperationalStringException
DeployAdmin
getOperationalStringManager in interface DeployAdminname - The name of the OperationalString
OperationalStringException - If an OperationalStringManager can not
be found to the OperationalStringpublic ProvisionMonitor.PeerInfo[] getBackupInfo()
ProvisionMonitorAdmin
getBackupInfo in interface ProvisionMonitorAdmin
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||