org.jboss.deployers.client.spi
Interface DeployerClient

All Known Subinterfaces:
MainDeployer

public interface DeployerClient

DeployerClient.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Method Summary
 void addDeployment(Deployment deployment)
          Add a deployment
 void checkComplete()
          Check all the deployments are complete
 void checkComplete(Deployment... deployment)
          Check if deployments are complete
 void checkComplete(String... names)
          Check if deployments are complete
 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
 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.
 Deployment getDeployment(String name)
          Get a deployment
 org.jboss.deployers.spi.DeploymentState getDeploymentState(String name)
          Get a the state of deployment
 org.jboss.managed.api.ManagedDeployment getManagedDeployment(String name)
          Get the managed deployment.
 Map<String,org.jboss.managed.api.ManagedObject> getManagedObjects(String name)
          Get the managed objects for a deployment context.
 Collection<Deployment> getTopLevel()
          Get the top level deployments
 void process()
          Process the outstanding deployments.
 boolean removeDeployment(Deployment deployment)
          Remove a deployment
 boolean removeDeployment(String name)
          Remove a deployment by name
 void undeploy(Deployment... deployments)
          Undeploy the deployments
 void undeploy(String... names)
          Undeploy a deployments by name
 

Method Detail

getTopLevel

Collection<Deployment> getTopLevel()
Get the top level deployments

Returns:
the top level deployments

getDeployment

Deployment getDeployment(String name)
Get a deployment

Parameters:
name - the name of the deployment
Returns:
the deployment or null if not found

addDeployment

void addDeployment(Deployment deployment)
                   throws org.jboss.deployers.spi.DeploymentException
Add a deployment

Parameters:
deployment - the deployment
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

removeDeployment

boolean removeDeployment(Deployment deployment)
                         throws org.jboss.deployers.spi.DeploymentException
Remove a deployment

Parameters:
deployment - the deployment to remove
Returns:
false when the context was previously unknown
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

removeDeployment

boolean removeDeployment(String name)
                         throws org.jboss.deployers.spi.DeploymentException
Remove a deployment by name

Parameters:
name - the name of the deployment
Returns:
false when the context was previously unknown
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

process

void process()
Process the outstanding deployments.


deploy

void deploy(Deployment... deployments)
            throws org.jboss.deployers.spi.DeploymentException
Deploy the deployments

Parameters:
deployments - the deployments
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

undeploy

void undeploy(Deployment... deployments)
              throws org.jboss.deployers.spi.DeploymentException
Undeploy the deployments

Parameters:
deployments - the deployments
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

checkComplete

void checkComplete()
                   throws org.jboss.deployers.spi.DeploymentException
Check all the deployments are complete

Throws:
org.jboss.deployers.spi.DeploymentException - when some deployment is not complete

checkComplete

void checkComplete(Deployment... deployment)
                   throws org.jboss.deployers.spi.DeploymentException
Check if deployments are complete

Parameters:
deployment - the deployment
Throws:
org.jboss.deployers.spi.DeploymentException - when some deployments are not complete

checkComplete

void checkComplete(String... names)
                   throws org.jboss.deployers.spi.DeploymentException
Check if deployments are complete

Parameters:
names - the deployment name
Throws:
org.jboss.deployers.spi.DeploymentException - when some deployments are not complete

checkStructureComplete

void checkStructureComplete(Deployment... deployments)
                            throws org.jboss.deployers.spi.DeploymentException
Check if deployments are recognized

Parameters:
deployments - the deployments
Throws:
org.jboss.deployers.spi.DeploymentException - when some deployments are not recognized

checkStructureComplete

void checkStructureComplete(String... names)
                            throws org.jboss.deployers.spi.DeploymentException
Check if deployments are recognized

Parameters:
names - the deployment names
Throws:
org.jboss.deployers.spi.DeploymentException - when some deployments are not recognized

undeploy

void undeploy(String... names)
              throws org.jboss.deployers.spi.DeploymentException
Undeploy a deployments by name

Parameters:
names - the names of the deployments
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

getDeploymentState

org.jboss.deployers.spi.DeploymentState getDeploymentState(String name)
Get a the state of deployment

Parameters:
name - the name of the deployment
Returns:
the deployment state

getManagedObjects

Map<String,org.jboss.managed.api.ManagedObject> getManagedObjects(String name)
                                                                  throws org.jboss.deployers.spi.DeploymentException
Get the managed objects for a deployment context. This is a mapping of the attachment names to the associated ManagedObject.

Parameters:
name - the name of the deployment
Returns:
the managed object map keyed by the attachment names.
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

getDeepManagedObjects

org.jboss.util.graph.Graph<Map<String,org.jboss.managed.api.ManagedObject>> getDeepManagedObjects(String name)
                                                                                                  throws org.jboss.deployers.spi.DeploymentException
Get the graph of managed objects starting with the top-level deployment associated with name.

Parameters:
name - - the name of the top-level DeploymentContext to process.
Returns:
the graph of managed objects for the top-level DeploymentContex and its children.
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

getManagedDeployment

org.jboss.managed.api.ManagedDeployment getManagedDeployment(String name)
                                                             throws org.jboss.deployers.spi.DeploymentException
Get the managed deployment.

Parameters:
name - the name of the deployment
Returns:
the managed deployment
Throws:
org.jboss.deployers.spi.DeploymentException - for any error


Copyright © 2008 JBoss Inc.. All Rights Reserved.