|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.sape.carbon.services.deployment.DefaultDeploymentServiceImpl
This implementation of DeploymentService uses
BootStrapper.getEnvironmentName and BootStrapper.getInstanceName to
determine which environment and instance the current deployment is.
| Field Summary | |
protected String |
currentDeploymentNodeName
Holds name of the current deployment node. |
protected Folder |
deploymentsNode
Holds a reference to the Node that contains deployment information. |
protected String |
targetNodeName
Holds the name of the node with current deployment info. |
| Constructor Summary | |
DefaultDeploymentServiceImpl()
|
|
| Method Summary | |
void |
configure(ComponentConfiguration configuration)
Fetches the deployment node and stores the CurrentDeploymentNodeName |
protected String |
constructTargetNodeName(ComponentConfiguration serviceConfig)
Helper method that constructs the name of the node that will be used as the target of the deployment link. |
protected void |
createDeploymentLink()
Helper method that does the work of creating the link to the current deployment configuration. |
void |
resume()
Assumes the service has been reconfigured and recreates the link to the current deployment. |
void |
start()
Creates the link to the current deployment. |
void |
stop()
Stop the component. |
void |
suspend()
Suspend the component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Folder deploymentsNode
protected String currentDeploymentNodeName
protected String targetNodeName
| Constructor Detail |
public DefaultDeploymentServiceImpl()
| Method Detail |
public void configure(ComponentConfiguration configuration)
throws DeploymentServiceException
configure in interface Configurableconfiguration - the configuration for this component
DeploymentServiceExceptionConfigurable.configure(ComponentConfiguration)
public void start()
throws DeploymentServiceException
start in interface StartableDeploymentServiceExceptionStartable.start()public void stop()
Startable
stop in interface StartableStartable.stop()
public void resume()
throws DeploymentServiceException
resume in interface SuspendableDeploymentServiceExceptionSuspendable.resume()public void suspend()
Suspendable
suspend in interface SuspendableSuspendable.suspend()
protected void createDeploymentLink()
throws DeploymentServiceException
DeploymentServiceException - indicates an error creating
the deployment link.
protected String constructTargetNodeName(ComponentConfiguration serviceConfig)
throws DeploymentServiceException
serviceConfig - the configuration for this service (the config
passed into the configure method)
DeploymentServiceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||