|
|||||||||||
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 Configurable
configuration
- the configuration for this component
DeploymentServiceException
Configurable.configure(ComponentConfiguration)
public void start() throws DeploymentServiceException
start
in interface Startable
DeploymentServiceException
Startable.start()
public void stop()
Startable
stop
in interface Startable
Startable.stop()
public void resume() throws DeploymentServiceException
resume
in interface Suspendable
DeploymentServiceException
Suspendable.resume()
public void suspend()
Suspendable
suspend
in interface Suspendable
Suspendable.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 |