|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.plugins.deployers.DeployersImpl
public class DeployersImpl
DeployersImpl.
Constructor Summary | |
---|---|
DeployersImpl(org.jboss.dependency.spi.Controller controller)
Create a new DeployersImpl. |
|
DeployersImpl(org.jboss.dependency.spi.Controller controller,
Set<Deployer> deployers)
Create a new DeployersImpl. |
Method Summary | |
---|---|
void |
addDeployer(Deployer deployer)
Add a deployer |
protected void |
addDeploymentStage(DeploymentStage stage)
Add a deployment stage |
void |
change(DeploymentContext context,
DeploymentStage stage)
Change the state of a deployment |
protected void |
checkComplete(boolean checkContexts,
DeploymentContext... contexts)
Check if deployments are complete. |
void |
checkComplete(Collection<DeploymentContext> errors,
Collection<Deployment> missingDeployer)
Check all the deployments are complete |
void |
checkComplete(DeploymentContext... contexts)
Check if deployments are complete |
protected void |
checkComplete(DeploymentContext context,
Map<String,Throwable> contextsInError,
Map<String,Set<MissingDependency>> contextsMissingDependencies,
Set<org.jboss.dependency.spi.ControllerContext> notInstalled,
org.jboss.dependency.spi.ControllerStateModel states)
Check complete on deployment context. |
protected void |
checkControllerContext(org.jboss.dependency.spi.ControllerContext context,
Map<String,Throwable> contextsInError,
Map<String,Set<MissingDependency>> contextsMissingDependencies,
org.jboss.dependency.spi.ControllerStateModel states)
Check controller context. |
protected void |
checkControllerContext(org.jboss.dependency.spi.ControllerContext context,
Map<String,Throwable> contextsInError,
Map<String,Set<MissingDependency>> contextsMissingDependencies,
Set<org.jboss.dependency.spi.ControllerContext> notInstalled,
org.jboss.dependency.spi.ControllerStateModel states)
Check complete on deployment context. |
protected void |
checkShutdown()
Check whether we are shutdown |
void |
checkStructureComplete(DeploymentContext... contexts)
Check if deployments are structurally complete |
protected void |
doDeploy(Deployer deployer,
DeploymentUnit unit)
Do a deployment |
protected void |
doInstallParentFirst(Deployer deployer,
DeploymentContext context)
Do the install parent first |
protected void |
doInstallParentLast(Deployer deployer,
DeploymentContext context)
Do the install parent last |
protected void |
doUndeploy(Deployer deployer,
DeploymentUnit unit)
Do an undeployment |
protected void |
doUninstallParentFirst(Deployer deployer,
DeploymentContext context,
boolean doContext,
boolean doComponents)
Do the uninstall parent first |
protected void |
doUninstallParentLast(Deployer deployer,
DeploymentContext context,
boolean doChildren,
boolean doComponents)
Do the uninstall parent last |
ManagedObjectCreator |
getDeployerManagedObjectBuilder(Deployer deployer)
Get the ManagedObjectBuilder for a deployer. |
protected List<Deployer> |
getDeployersList(String stageName)
Build a list of deployers for this stage |
Set<DeployerWrapper> |
getDeployerWrappers()
Get the deployers. |
DeploymentStage |
getDeploymentStage(DeploymentContext context)
Get the deployment stage for a deployment |
Map<String,org.jboss.managed.api.ManagedObject> |
getManagedObjects(DeploymentContext context)
Get the managed objects for a deployer |
ManagedObjectCreator |
getMgtObjectCreator()
|
org.jboss.metadata.spi.repository.MutableMetaDataRepository |
getRepository()
Get the repository. |
ScopeBuilder |
getScopeBuilder()
Get the scopeBuilder. |
protected List<Deployer> |
insert(List<Deployer> original,
Deployer newDeployer)
Insert the new Deployer. |
void |
install(org.jboss.dependency.spi.ControllerContext context,
org.jboss.dependency.spi.ControllerState fromState,
org.jboss.dependency.spi.ControllerState toState)
|
protected void |
internalListDeployers(String stageName,
String attachment,
StringBuilder builder)
List the deployers for a stage |
boolean |
isCollectStats()
Get the collectStats. |
protected boolean |
isDeployed(DeploymentContext context)
Is context deployed. |
boolean |
isRegisterMBeans()
Get whether to register mbeans |
protected boolean |
isRelevant(Deployer deployer,
DeploymentUnit unit,
boolean isTopLevel,
boolean isComponent)
Test whether a deployer is relevant |
String |
listDeployers(String stageName)
List the deployers for each stage in order |
String |
listDeployersByAttachment(String attachment)
List the deployers for a given attachment |
String |
listDeployerTimes(boolean details)
List the deployer times |
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
void |
process(List<DeploymentContext> deploy,
List<DeploymentContext> undeploy)
Process deployment |
protected void |
registerMBean(DeploymentContext context)
Register a deployment context's mbean |
void |
removeDeployer(Deployer deployer)
Remove a deployer |
void |
setCollectStats(boolean collectStats)
Set the collectStats. |
void |
setDeployerManagedObjectBuilder(Deployer deployer,
ManagedObjectCreator managedObjectCreator)
Set the ManagedObjectBuilder for a deployer. |
void |
setDeployers(Set<Deployer> deployers)
Set the deployers. |
void |
setMgtObjectCreator(ManagedObjectCreator mgtObjectCreator)
|
void |
setRegisterMBeans(boolean registerMBeans)
Set whether to register mbeans |
void |
setRepository(org.jboss.metadata.spi.repository.MutableMetaDataRepository repository)
Set the repository. |
void |
setScopeBuilder(ScopeBuilder scopeBuilder)
Set the scopeBuilder. |
void |
shutdown()
Shutdown. |
void |
start()
|
void |
uninstall(org.jboss.dependency.spi.ControllerContext context,
org.jboss.dependency.spi.ControllerState fromState,
org.jboss.dependency.spi.ControllerState toState)
|
protected void |
unregisterMBean(DeploymentContext context)
Unregister a deployment context's mbean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeployersImpl(org.jboss.dependency.spi.Controller controller)
controller
- the controller
IllegalArgumentException
- for a null controllerpublic DeployersImpl(org.jboss.dependency.spi.Controller controller, Set<Deployer> deployers)
controller
- the controllerdeployers
- the deployers
IllegalArgumentException
- for a null controllerMethod Detail |
---|
public void shutdown()
Deployers
shutdown
in interface Deployers
protected void checkShutdown()
public boolean isCollectStats()
public void setCollectStats(boolean collectStats)
collectStats
- the collectStats.public Set<DeployerWrapper> getDeployerWrappers()
public void setDeployers(Set<Deployer> deployers)
deployers
- the deployers.
IllegalArgumentException
- for null deployerspublic void addDeployer(Deployer deployer)
deployer
- the deployerpublic void removeDeployer(Deployer deployer)
deployer
- the deployerprotected void addDeploymentStage(DeploymentStage stage)
stage
- the deployment stagepublic ScopeBuilder getScopeBuilder()
public void setScopeBuilder(ScopeBuilder scopeBuilder)
scopeBuilder
- the scopeBuilder.public ManagedObjectCreator getMgtObjectCreator()
public void setMgtObjectCreator(ManagedObjectCreator mgtObjectCreator)
public org.jboss.metadata.spi.repository.MutableMetaDataRepository getRepository()
public void setRepository(org.jboss.metadata.spi.repository.MutableMetaDataRepository repository)
repository
- the repository.public boolean isRegisterMBeans()
public void setRegisterMBeans(boolean registerMBeans)
registerMBeans
- true to register mbeanspublic void start()
public Map<String,org.jboss.managed.api.ManagedObject> getManagedObjects(DeploymentContext context) throws DeploymentException
Deployers
getManagedObjects
in interface Deployers
context
- the context
DeploymentException
- for any errorpublic ManagedObjectCreator getDeployerManagedObjectBuilder(Deployer deployer)
deployer
- - the deployer to set the ManagedObjectBuilder for.
IllegalArgumentException
- for a null deployerpublic void setDeployerManagedObjectBuilder(Deployer deployer, ManagedObjectCreator managedObjectCreator)
deployer
- - the deployer to set the ManagedObjectBuilder for.managedObjectCreator
- the managed object builder to set to the deployer
IllegalArgumentException
- for a null deployerpublic String listDeployerTimes(boolean details)
DeployersImplMBean
listDeployerTimes
in interface DeployersImplMBean
details
- whether to show details
public String listDeployers(String stageName)
DeployersImplMBean
listDeployers
in interface DeployersImplMBean
stageName
- the stage name or null for all stages
public String listDeployersByAttachment(String attachment)
DeployersImplMBean
listDeployersByAttachment
in interface DeployersImplMBean
attachment
- the attachment name
protected void internalListDeployers(String stageName, String attachment, StringBuilder builder)
stageName
- the stageattachment
- the attachmentbuilder
- the builderpublic DeploymentStage getDeploymentStage(DeploymentContext context) throws DeploymentException
Deployers
getDeploymentStage
in interface Deployers
context
- the context
DeploymentException
- for any errorpublic void change(DeploymentContext context, DeploymentStage stage) throws DeploymentException
Deployers
change
in interface Deployers
context
- the contextstage
- the stage
DeploymentException
- for any errorpublic void process(List<DeploymentContext> deploy, List<DeploymentContext> undeploy)
Deployers
process
in interface Deployers
deploy
- the deployments to deployundeploy
- the deployments to removepublic void checkComplete(Collection<DeploymentContext> errors, Collection<Deployment> missingDeployer) throws DeploymentException
Deployers
checkComplete
in interface Deployers
errors
- the contexts in errormissingDeployer
- the deployments missing a deployer
DeploymentException
- when some deployment is not completeprotected final void checkControllerContext(org.jboss.dependency.spi.ControllerContext context, Map<String,Throwable> contextsInError, Map<String,Set<MissingDependency>> contextsMissingDependencies, org.jboss.dependency.spi.ControllerStateModel states)
context
- the controller contextcontextsInError
- contexts in error mapcontextsMissingDependencies
- contexts missing dependecies mapstates
- controller statespublic void checkComplete(DeploymentContext... contexts) throws DeploymentException
Deployers
checkComplete
in interface Deployers
contexts
- the deployments
DeploymentException
- when the deployment is not completepublic void checkStructureComplete(DeploymentContext... contexts) throws DeploymentException
Deployers
checkStructureComplete
in interface Deployers
contexts
- the deployments
DeploymentException
- when the deployment is not completeprotected void checkComplete(boolean checkContexts, DeploymentContext... contexts) throws DeploymentException
contexts
- the deployment contextscheckContexts
- do we check contexts
DeploymentException
- throw error if deployment is incompleteprotected boolean isDeployed(DeploymentContext context)
context
- the deployment context
protected final void checkComplete(DeploymentContext context, Map<String,Throwable> contextsInError, Map<String,Set<MissingDependency>> contextsMissingDependencies, Set<org.jboss.dependency.spi.ControllerContext> notInstalled, org.jboss.dependency.spi.ControllerStateModel states)
context
- the deployment contextcontextsInError
- contexts in error mapcontextsMissingDependencies
- contexts missing dependecies mapnotInstalled
- the not installed contextsstates
- controller statesprotected void checkControllerContext(org.jboss.dependency.spi.ControllerContext context, Map<String,Throwable> contextsInError, Map<String,Set<MissingDependency>> contextsMissingDependencies, Set<org.jboss.dependency.spi.ControllerContext> notInstalled, org.jboss.dependency.spi.ControllerStateModel states)
context
- the deployment contextcontextsInError
- contexts in error mapcontextsMissingDependencies
- contexts missing dependecies mapnotInstalled
- the not installed contextsstates
- controller statespublic void install(org.jboss.dependency.spi.ControllerContext context, org.jboss.dependency.spi.ControllerState fromState, org.jboss.dependency.spi.ControllerState toState) throws Throwable
install
in interface org.jboss.dependency.spi.ControllerContextActions
Throwable
protected void doInstallParentFirst(Deployer deployer, DeploymentContext context) throws Throwable
deployer
- the deployercontext
- the context
Throwable
- for any problemprotected void doInstallParentLast(Deployer deployer, DeploymentContext context) throws Throwable
deployer
- the deployercontext
- the context
Throwable
- for any problempublic void uninstall(org.jboss.dependency.spi.ControllerContext context, org.jboss.dependency.spi.ControllerState fromState, org.jboss.dependency.spi.ControllerState toState)
uninstall
in interface org.jboss.dependency.spi.ControllerContextActions
protected void doUninstallParentLast(Deployer deployer, DeploymentContext context, boolean doChildren, boolean doComponents)
deployer
- the deployercontext
- the contextdoChildren
- whether to do childrendoComponents
- whether to do componentsprotected void doUninstallParentFirst(Deployer deployer, DeploymentContext context, boolean doContext, boolean doComponents)
deployer
- the deployercontext
- the contextdoContext
- whether to do contextdoComponents
- whether to do componentsprotected void doDeploy(Deployer deployer, DeploymentUnit unit) throws DeploymentException
deployer
- the deployerunit
- the deployment unit
DeploymentException
- for any errorprotected void doUndeploy(Deployer deployer, DeploymentUnit unit)
deployer
- the deployerunit
- the deployment unitprotected List<Deployer> getDeployersList(String stageName)
stageName
- the stage name
protected boolean isRelevant(Deployer deployer, DeploymentUnit unit, boolean isTopLevel, boolean isComponent)
deployer
- deployerunit
- the deployment unitisTopLevel
- whether this is a top level deploymentisComponent
- whether this is a component
protected List<Deployer> insert(List<Deployer> original, Deployer newDeployer)
original
- the original deployersnewDeployer
- the new deployer
protected void registerMBean(DeploymentContext context)
context
- the contextprotected void unregisterMBean(DeploymentContext context)
context
- the contextpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |