|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.plugins.main.MainDeployerImpl
public class MainDeployerImpl
MainDeployerImpl.
| Constructor Summary | |
|---|---|
MainDeployerImpl()
|
|
| Method Summary | |
|---|---|
void |
addDeployment(Deployment deployment)
Add a deployment |
protected void |
addDeployment(Deployment deployment,
boolean addToDeploy)
Add a deployment |
void |
change(String deploymentName,
DeploymentStage stage)
Change the state of a deployment |
void |
checkComplete()
Check all the deployments are complete |
void |
checkComplete(Deployment... deployments)
Check if deployments are complete |
void |
checkComplete(String... names)
Check if deployments are complete |
protected boolean |
checkExistingTopLevelDeployment(Deployment deployment,
boolean addToDeploy)
Check for existing deployment context - redeploy. |
void |
checkStructureComplete(Deployment... deployments)
Check if deployments are recognized |
void |
checkStructureComplete(String... names)
Check if deployments are recognized |
void |
deploy(Deployment... deployments)
Deploy the deployments |
protected void |
determineDeploymentContext(Deployment deployment,
boolean addToDeploy)
Determine deployment context. |
Collection<DeploymentContext> |
getAll()
Get all deployments. |
org.jboss.util.graph.Graph<Map<String,org.jboss.managed.api.ManagedObject>> |
getDeepManagedObjects(String name)
Get the graph of managed objects starting with the top-level deployment associated with name. |
Deployers |
getDeployers()
Get the deployers |
Deployment |
getDeployment(String name)
Get a deployment |
DeploymentContext |
getDeploymentContext(String name)
Deprecated. |
DeploymentContext |
getDeploymentContext(String name,
boolean errorNotFound)
Deprecated. |
protected DeploymentContext[] |
getDeploymentContexts(String... names)
Get the deployment contexts. |
protected static String[] |
getDeploymentNames(Deployment... deployments)
Get the names from deployments. |
DeploymentStage |
getDeploymentStage(String deploymentName)
Get the deployment stage for a deployment |
DeploymentState |
getDeploymentState(String name)
Get a the state of deployment |
DeploymentUnit |
getDeploymentUnit(String name)
Get a deployment unit |
DeploymentUnit |
getDeploymentUnit(String name,
boolean errorNotFound)
Get a deployment context |
Collection<DeploymentContext> |
getErrors()
Get errors. |
org.jboss.managed.api.ManagedDeployment |
getManagedDeployment(String name)
Get the managed deployment. |
Map<String,org.jboss.managed.api.ManagedObject> |
getManagedObjects(DeploymentContext context)
|
Map<String,org.jboss.managed.api.ManagedObject> |
getManagedObjects(String name)
Get the managed objects for a deployment context. |
ManagedDeploymentCreator |
getMgtDeploymentCreator()
Get managed deployment creator. |
Collection<Deployment> |
getMissingDeployer()
Get missing deployers deployments. |
StructuralDeployers |
getStructuralDeployers()
Get the structural deployers |
Collection<Deployment> |
getTopLevel()
Get the top level deployments |
DeploymentContext |
getTopLevelDeploymentContext(String name)
Get a top level deployment context by name |
protected void |
lockRead()
Lock for read |
protected void |
lockWrite()
Lock for write |
void |
prepareShutdown()
Tell the main deployer we are about to shutdown |
void |
process()
Process the outstanding deployments. |
protected void |
processManagedDeployment(DeploymentContext context,
org.jboss.managed.api.ManagedDeployment parent)
Recursively process the DeploymentContext into ManagedDeployments. |
protected void |
processManagedObjects(DeploymentContext context,
org.jboss.util.graph.Graph<Map<String,org.jboss.managed.api.ManagedObject>> graph,
org.jboss.util.graph.Vertex<Map<String,org.jboss.managed.api.ManagedObject>> parent)
Get the managed objects for a context |
protected void |
processToDeploy(Collection<Deployment> deployments)
Process added re-deployments. |
protected void |
processToUndeploy(Set<String> names)
Remove added re-deployments. |
boolean |
removeDeployment(Deployment deployment)
Remove a deployment |
protected boolean |
removeDeployment(Deployment deployment,
boolean addToUndeploy)
Remove a deployment by name |
boolean |
removeDeployment(String name)
Remove a deployment by name |
protected boolean |
removeDeployment(String name,
boolean addToUndeploy)
Remove a deployment by name |
void |
setComparator(Comparator<DeploymentContext> comparator)
Set the top deployment context comparator. |
void |
setDeployers(Deployers deployers)
Set the deployers |
void |
setMgtDeploymentCreator(ManagedDeploymentCreator mgtDeploymentCreator)
Set managed deployment creator. |
void |
setStructuralDeployers(StructuralDeployers deployers)
Set the structural deployers |
void |
shutdown()
Shutdown. |
void |
undeploy(Deployment... deployments)
Undeploy the deployments |
void |
undeploy(String... names)
Undeploy a deployments by name |
protected void |
unlockRead()
Unlock for read |
protected void |
unlockWrite()
Unlock for write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MainDeployerImpl()
| Method Detail |
|---|
public void setComparator(Comparator<DeploymentContext> comparator)
comparator - the deployment context comparatorpublic Deployers getDeployers()
public void setDeployers(Deployers deployers)
deployers - the deployers
IllegalArgumentException - for null deployerspublic StructuralDeployers getStructuralDeployers()
public void setStructuralDeployers(StructuralDeployers deployers)
deployers - the deployers
IllegalArgumentException - for null deployerspublic ManagedDeploymentCreator getMgtDeploymentCreator()
public void setMgtDeploymentCreator(ManagedDeploymentCreator mgtDeploymentCreator)
mgtDeploymentCreator - the managed deployment creatorpublic Deployment getDeployment(String name)
DeployerClient
getDeployment in interface DeployerClientname - the name of the deployment
@Deprecated public DeploymentContext getDeploymentContext(String name)
MainDeployerStructure
getDeploymentContext in interface MainDeployerStructurename - the name of the context
@Deprecated
public DeploymentContext getDeploymentContext(String name,
boolean errorNotFound)
throws DeploymentException
MainDeployerStructure
getDeploymentContext in interface MainDeployerStructurename - the name of the contexterrorNotFound - whether to throw an error if not found
DeploymentException - for not foundpublic DeploymentUnit getDeploymentUnit(String name)
MainDeployerStructure
getDeploymentUnit in interface MainDeployerStructurename - the name of the unit
public DeploymentUnit getDeploymentUnit(String name,
boolean errorNotFound)
throws DeploymentException
MainDeployerStructure
getDeploymentUnit in interface MainDeployerStructurename - the name of the contexterrorNotFound - whether to throw an error if not found
DeploymentException - for not foundpublic DeploymentContext getTopLevelDeploymentContext(String name)
name - the name
public Collection<DeploymentContext> getAll()
public Collection<DeploymentContext> getErrors()
public Collection<Deployment> getMissingDeployer()
public Collection<Deployment> getTopLevel()
DeployerClient
getTopLevel in interface DeployerClient
public void addDeployment(Deployment deployment)
throws DeploymentException
DeployerClient
addDeployment in interface DeployerClientdeployment - the deployment
DeploymentException - for any error
protected void processToUndeploy(Set<String> names)
throws DeploymentException
names - the deployment names to remove
DeploymentException - for any error
protected void processToDeploy(Collection<Deployment> deployments)
throws DeploymentException
deployments - the deployments to process
DeploymentException - for any error
protected void addDeployment(Deployment deployment,
boolean addToDeploy)
throws DeploymentException
deployment - the deploymentaddToDeploy - should we add this deployment to deploy collection
DeploymentException - for any error
protected boolean checkExistingTopLevelDeployment(Deployment deployment,
boolean addToDeploy)
deployment - the deploymentaddToDeploy - should we add this deployment to deploy collection
protected void determineDeploymentContext(Deployment deployment,
boolean addToDeploy)
throws DeploymentException
deployment - the deploymentaddToDeploy - should we add this deployment to deploy collection
DeploymentException - for any error
public boolean removeDeployment(Deployment deployment)
throws DeploymentException
DeployerClient
removeDeployment in interface DeployerClientdeployment - the deployment to remove
DeploymentException - for any error
protected boolean removeDeployment(Deployment deployment,
boolean addToUndeploy)
throws DeploymentException
deployment - thedeploymentaddToUndeploy - should we add to undeploy collection
DeploymentException - for any error
public boolean removeDeployment(String name)
throws DeploymentException
DeployerClient
removeDeployment in interface DeployerClientname - the name of the deployment
DeploymentException - for any error
protected boolean removeDeployment(String name,
boolean addToUndeploy)
throws DeploymentException
name - the name of the deploymentaddToUndeploy - should we add to undeploy collection
DeploymentException - for any error
public void deploy(Deployment... deployments)
throws DeploymentException
DeployerClient
deploy in interface DeployerClientdeployments - the deployments
DeploymentException - for any error
public void undeploy(Deployment... deployments)
throws DeploymentException
DeployerClient
undeploy in interface DeployerClientdeployments - the deployments
DeploymentException - for any error
public void undeploy(String... names)
throws DeploymentException
DeployerClient
undeploy in interface DeployerClientnames - the names of the deployments
DeploymentException - for any errorpublic void process()
DeployerClient
process in interface DeployerClient
public DeploymentStage getDeploymentStage(String deploymentName)
throws DeploymentException
DeployerClient
getDeploymentStage in interface DeployerClientdeploymentName - the deployment name
DeploymentException - for any error
public void change(String deploymentName,
DeploymentStage stage)
throws DeploymentException
DeployerClient
change in interface DeployerClientdeploymentName - the deployment namestage - the stage
DeploymentException - for any errorpublic void prepareShutdown()
MainDeployer
prepareShutdown in interface MainDeployerpublic void shutdown()
MainDeployer
shutdown in interface MainDeployer
public void checkComplete()
throws DeploymentException
DeployerClient
checkComplete in interface DeployerClientDeploymentException - when some deployment is not completeprotected static String[] getDeploymentNames(Deployment... deployments)
deployments - the deployments
protected DeploymentContext[] getDeploymentContexts(String... names)
throws DeploymentException
names - the deployment names
DeploymentException - if context is not found
public void checkComplete(Deployment... deployments)
throws DeploymentException
DeployerClient
checkComplete in interface DeployerClientdeployments - the deployment
DeploymentException - when some deployments are not complete
public void checkComplete(String... names)
throws DeploymentException
DeployerClient
checkComplete in interface DeployerClientnames - the deployment name
DeploymentException - when some deployments are not complete
public void checkStructureComplete(Deployment... deployments)
throws DeploymentException
DeployerClient
checkStructureComplete in interface DeployerClientdeployments - the deployments
DeploymentException - when some deployments are not recognized
public void checkStructureComplete(String... names)
throws DeploymentException
DeployerClient
checkStructureComplete in interface DeployerClientnames - the deployment names
DeploymentException - when some deployments are not recognizedpublic DeploymentState getDeploymentState(String name)
DeployerClient
getDeploymentState in interface DeployerClientname - the name of the deployment
public org.jboss.managed.api.ManagedDeployment getManagedDeployment(String name)
throws DeploymentException
DeployerClient
getManagedDeployment in interface DeployerClientname - the name of the deployment
DeploymentException - for any error
public Map<String,org.jboss.managed.api.ManagedObject> getManagedObjects(String name)
throws DeploymentException
DeployerClient
getManagedObjects in interface DeployerClientname - the name of the deployment
DeploymentException - for any error
public Map<String,org.jboss.managed.api.ManagedObject> getManagedObjects(DeploymentContext context)
throws DeploymentException
DeploymentException
public org.jboss.util.graph.Graph<Map<String,org.jboss.managed.api.ManagedObject>> getDeepManagedObjects(String name)
throws DeploymentException
DeployerClient
getDeepManagedObjects in interface DeployerClientname - - the name of the top-level DeploymentContext to process.
DeploymentException - for any error
protected void processManagedObjects(DeploymentContext context,
org.jboss.util.graph.Graph<Map<String,org.jboss.managed.api.ManagedObject>> graph,
org.jboss.util.graph.Vertex<Map<String,org.jboss.managed.api.ManagedObject>> parent)
throws DeploymentException
context - the contextgraph - the graphparent - the parent node
DeploymentException - for any problem
protected void processManagedDeployment(DeploymentContext context,
org.jboss.managed.api.ManagedDeployment parent)
throws DeploymentException
context - the contextparent - the parent
DeploymentException - for any errorprotected void lockRead()
protected void unlockRead()
protected void lockWrite()
protected void unlockWrite()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||