org.apache.geronimo.messaging.admin.deployment
Class ManagedServer
java.lang.Object
org.apache.geronimo.messaging.BaseEndPoint
org.apache.geronimo.messaging.GBeanBaseEndPoint
org.apache.geronimo.messaging.admin.deployment.ManagedServer
- All Implemented Interfaces:
- org.apache.geronimo.deployment.plugin.DeploymentServer, EndPoint, org.apache.geronimo.gbean.GBeanLifecycle, MsgConsProd, MsgConsumer, MsgProducer
- public class ManagedServer
- extends GBeanBaseEndPoint
- implements org.apache.geronimo.deployment.plugin.DeploymentServer
Managed DeploymentServer.
It is a DeploymentServer managed by an AdminServer. Deployments
operations are filtered and forwarded to managed DeploymentServers. These
latter perform the operations locally and return to the admin server a
result. Results are consolidated by the admin server, which provides a
consistent view of the deployment operations.
- Version:
- $Revision: 1.7 $ $Date: 2004/07/05 07:02:28 $
Field Summary |
static Object |
END_POINT_ID
EndPoint identifier of a ManagedDeploymentServer. |
Constructor Summary |
ManagedServer(Node aNode,
org.apache.geronimo.kernel.config.ConfigurationStore aStore,
org.apache.geronimo.kernel.KernelMBean aKernel)
Creates a managed deployment server for the specified node. |
Method Summary |
javax.enterprise.deploy.spi.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targetList,
org.apache.geronimo.deployment.ConfigurationBuilder builder,
InputStream jis,
org.apache.xmlbeans.XmlObject plan)
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
|
javax.enterprise.deploy.spi.Target[] |
getTargets()
|
boolean |
isLocal()
|
boolean |
isRedeploySupported()
|
javax.enterprise.deploy.spi.status.ProgressObject |
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList,
InputStream moduleArchive,
InputStream deploymentPlan)
|
void |
release()
|
javax.enterprise.deploy.spi.status.ProgressObject |
start(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
|
javax.enterprise.deploy.spi.status.ProgressObject |
stop(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
|
javax.enterprise.deploy.spi.status.ProgressObject |
undeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.geronimo.messaging.EndPoint |
getID |
END_POINT_ID
public static final Object END_POINT_ID
- EndPoint identifier of a ManagedDeploymentServer.
ManagedServer
public ManagedServer(Node aNode,
org.apache.geronimo.kernel.config.ConfigurationStore aStore,
org.apache.geronimo.kernel.KernelMBean aKernel)
- Creates a managed deployment server for the specified node.
- Parameters:
aNode
- Hosting Node.aStore
- Where the deployment are distributed.aKernel
- Used to control - start, stop et cetera - and query
deployments.
doStart
public void doStart()
throws org.apache.geronimo.gbean.WaitingException,
Exception
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Overrides:
doStart
in class GBeanBaseEndPoint
- Throws:
org.apache.geronimo.gbean.WaitingException
Exception
doStop
public void doStop()
throws org.apache.geronimo.gbean.WaitingException,
Exception
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Overrides:
doStop
in class GBeanBaseEndPoint
- Throws:
org.apache.geronimo.gbean.WaitingException
Exception
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Overrides:
doFail
in class GBeanBaseEndPoint
distribute
public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList,
org.apache.geronimo.deployment.ConfigurationBuilder builder,
InputStream jis,
org.apache.xmlbeans.XmlObject plan)
throws IllegalStateException
- Specified by:
distribute
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
IllegalStateException
getAvailableModules
public javax.enterprise.deploy.spi.TargetModuleID[] getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
throws javax.enterprise.deploy.spi.exceptions.TargetException,
IllegalStateException
- Specified by:
getAvailableModules
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
javax.enterprise.deploy.spi.exceptions.TargetException
IllegalStateException
getNonRunningModules
public javax.enterprise.deploy.spi.TargetModuleID[] getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
throws javax.enterprise.deploy.spi.exceptions.TargetException,
IllegalStateException
- Specified by:
getNonRunningModules
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
javax.enterprise.deploy.spi.exceptions.TargetException
IllegalStateException
getRunningModules
public javax.enterprise.deploy.spi.TargetModuleID[] getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
throws javax.enterprise.deploy.spi.exceptions.TargetException,
IllegalStateException
- Specified by:
getRunningModules
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
javax.enterprise.deploy.spi.exceptions.TargetException
IllegalStateException
getTargets
public javax.enterprise.deploy.spi.Target[] getTargets()
throws IllegalStateException
- Specified by:
getTargets
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
IllegalStateException
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
isRedeploySupported
public boolean isRedeploySupported()
- Specified by:
isRedeploySupported
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
redeploy
public javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList,
InputStream moduleArchive,
InputStream deploymentPlan)
throws UnsupportedOperationException,
IllegalStateException
- Specified by:
redeploy
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
UnsupportedOperationException
IllegalStateException
release
public void release()
- Specified by:
release
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
start
public javax.enterprise.deploy.spi.status.ProgressObject start(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
throws IllegalStateException
- Specified by:
start
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
IllegalStateException
stop
public javax.enterprise.deploy.spi.status.ProgressObject stop(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
throws IllegalStateException
- Specified by:
stop
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
IllegalStateException
undeploy
public javax.enterprise.deploy.spi.status.ProgressObject undeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
throws IllegalStateException
- Specified by:
undeploy
in interface org.apache.geronimo.deployment.plugin.DeploymentServer
- Throws:
IllegalStateException
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.