org.jboss.deployment
Interface MainDeployerMBean

All Superinterfaces:
DeployerMBean, MainDeployerConstants, Service, ServiceMBean
All Known Implementing Classes:
MainDeployer

public interface MainDeployerMBean
extends ServiceMBean, DeployerMBean, MainDeployerConstants

MainDeployer MBean interface

Version:
$Revision: 1.6.6.5 $

Field Summary
static javax.management.ObjectName OBJECT_NAME
          The default ObjectName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Fields inherited from interface org.jboss.deployment.MainDeployerConstants
ADD_DEPLOYER, REMOVE_DEPLOYER
 
Method Summary
 void addDeployer(SubDeployer deployer)
          The addDeployer method registers a deployer with the main deployer.
 void checkIncompleteDeployments()
          Check the current deployment states and generate an IncompleteDeploymentException if there are mbeans waiting for depedencies.
 void deploy(DeploymentInfo deployment)
          The deploy method deploys a package represented by a DeploymentInfo object.
 void deploy(String urlspec)
          The deploy method deploys a package identified by a string representation of a URL.
 void deploy(URL url)
          The deploy method deploys a package identified by a URL
 boolean getCopyFiles()
          Flag indicating whether directory content will be deployed.
 DeploymentInfo getDeployment(URL url)
          The getDeployment method returns the DeploymentInfo object for the URL supplied.
 String[] getEnhancedSuffixOrder()
          The enhanced suffix order
 String[] getSuffixOrder()
          The ordering of the deployment suffixes
 File getTempDir()
          The path to the local tmp directory
 String getTempDirString()
          The path to the local tmp directory in String form
 URL getWatchUrl(URL url)
          The getWatchUrl method returns the URL that, when modified, indicates that a redeploy is needed.
 boolean isDeployed(String url)
          The isDeployed method tells you if a package identified by a string representation of a URL is currently deployed.
 boolean isDeployed(URL url)
          The isDeployed method tells you if a packaged identified by a URL is deployed.
 Collection listDeployed()
          The listDeployed method returns a collection of DeploymemtInfo objects for the currently deployed packages.
 String listDeployedAsString()
          Describe listDeployedAsString method here.
 Collection listDeployedModules()
          The listDeployedModules method returns a collection of SerializableDeploymentInfo objects for the currently deployed packages.
 Collection listDeployers()
          The listDeployers method returns a collection of ObjectNames of deployers registered with the MainDeployer.
 Collection listIncompletelyDeployed()
          The listIncompletelyDeployed method returns a list of packages that have not deployed completely.
 Collection listWaitingForDeployer()
          The listWaitingForDeployer method returns a collection of the packages that currently have no identified deployer.
 void redeploy(DeploymentInfo sdi)
          Describe redeploy method here.
 void redeploy(String urlspec)
          Describe redeploy method here.
 void redeploy(URL url)
          Describe redeploy method here.
 void removeDeployer(SubDeployer deployer)
          The removeDeployer method unregisters a deployer with the MainDeployer.
 void setCopyFiles(boolean copyFiles)
           
 void setEnhancedSuffixOrder(String[] enhancedSuffixOrder)
           
 void setServiceController(javax.management.ObjectName serviceController)
          The ObjectName of the ServiceController
 void setTempDir(File tempDir)
           
 void shutdown()
          The shutdown method undeploys all deployed packages in reverse order of their deployement.
 void start(String urlspec)
          The start method starts a package identified by a URL
 void stop(String urlspec)
          The stop method stop a package identified by a URL
 void undeploy(DeploymentInfo di)
          The undeploy method undeploys a package represented by a DeploymentInfo object.
 void undeploy(String urlspec)
          The undeploy method undeploys a package identified by a string representation of a URL.
 void undeploy(URL url)
          The undeploy method undeploys a package identified by a URL
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

OBJECT_NAME

static final javax.management.ObjectName OBJECT_NAME
The default ObjectName

Method Detail

getCopyFiles

boolean getCopyFiles()
Flag indicating whether directory content will be deployed. The default value is taken from the jboss.deploy.localcopy system property.


setCopyFiles

void setCopyFiles(boolean copyFiles)

getTempDir

File getTempDir()
The path to the local tmp directory


setTempDir

void setTempDir(File tempDir)

getEnhancedSuffixOrder

String[] getEnhancedSuffixOrder()
The enhanced suffix order


setEnhancedSuffixOrder

void setEnhancedSuffixOrder(String[] enhancedSuffixOrder)

setServiceController

void setServiceController(javax.management.ObjectName serviceController)
The ObjectName of the ServiceController


getTempDirString

String getTempDirString()
The path to the local tmp directory in String form


getSuffixOrder

String[] getSuffixOrder()
The ordering of the deployment suffixes


listDeployed

Collection listDeployed()
The listDeployed method returns a collection of DeploymemtInfo objects for the currently deployed packages.

Returns:
a Collection value

listDeployedModules

Collection listDeployedModules()
The listDeployedModules method returns a collection of SerializableDeploymentInfo objects for the currently deployed packages.

Returns:
a Collection value

listDeployedAsString

String listDeployedAsString()
Describe listDeployedAsString method here.

Returns:
a String value

listIncompletelyDeployed

Collection listIncompletelyDeployed()
The listIncompletelyDeployed method returns a list of packages that have not deployed completely. The toString method will include any exception in the status field.

Returns:
a Collection value

listWaitingForDeployer

Collection listWaitingForDeployer()
The listWaitingForDeployer method returns a collection of the packages that currently have no identified deployer.

Returns:
a Collection value

addDeployer

void addDeployer(SubDeployer deployer)
The addDeployer method registers a deployer with the main deployer. Any waiting packages are tested to see if the new deployer will deploy them.

Parameters:
deployer - a SubDeployer value

removeDeployer

void removeDeployer(SubDeployer deployer)
The removeDeployer method unregisters a deployer with the MainDeployer. Deployed packages deployed with this deployer are undeployed.

Parameters:
deployer - a SubDeployer value

listDeployers

Collection listDeployers()
The listDeployers method returns a collection of ObjectNames of deployers registered with the MainDeployer.

Returns:
a Collection value

shutdown

void shutdown()
The shutdown method undeploys all deployed packages in reverse order of their deployement.


redeploy

void redeploy(String urlspec)
              throws DeploymentException,
                     MalformedURLException
Describe redeploy method here.

Parameters:
urlspec - a String value
Throws:
DeploymentException - if an error occurs
MalformedURLException - if an error occurs

redeploy

void redeploy(URL url)
              throws DeploymentException
Describe redeploy method here.

Parameters:
url - an URL value
Throws:
DeploymentException - if an error occurs

redeploy

void redeploy(DeploymentInfo sdi)
              throws DeploymentException
Describe redeploy method here.

Parameters:
sdi - a DeploymentInfo value
Throws:
DeploymentException - if an error occurs

undeploy

void undeploy(URL url)
              throws DeploymentException
The undeploy method undeploys a package identified by a URL

Specified by:
undeploy in interface DeployerMBean
Parameters:
url - an URL value
Throws:
DeploymentException - Failed to undeploy URL.

undeploy

void undeploy(String urlspec)
              throws DeploymentException,
                     MalformedURLException
The undeploy method undeploys a package identified by a string representation of a URL.

Parameters:
urlspec - a String value
Throws:
MalformedURLException - if an error occurs
DeploymentException

undeploy

void undeploy(DeploymentInfo di)
The undeploy method undeploys a package represented by a DeploymentInfo object.

Parameters:
di - a DeploymentInfo value

deploy

void deploy(String urlspec)
            throws DeploymentException,
                   MalformedURLException
The deploy method deploys a package identified by a string representation of a URL.

Parameters:
urlspec - a String value
Throws:
MalformedURLException - if an error occurs
DeploymentException

deploy

void deploy(URL url)
            throws DeploymentException
The deploy method deploys a package identified by a URL

Specified by:
deploy in interface DeployerMBean
Parameters:
url - an URL value
Throws:
DeploymentException - Failed to deploy URL.

deploy

void deploy(DeploymentInfo deployment)
            throws DeploymentException
The deploy method deploys a package represented by a DeploymentInfo object.

Parameters:
deployment - a DeploymentInfo value
Throws:
DeploymentException - if an error occurs

start

void start(String urlspec)
           throws DeploymentException,
                  MalformedURLException
The start method starts a package identified by a URL

Parameters:
urlspec - an URL string value
Throws:
DeploymentException
MalformedURLException

stop

void stop(String urlspec)
          throws DeploymentException,
                 MalformedURLException
The stop method stop a package identified by a URL

Parameters:
urlspec - an URL string value
Throws:
DeploymentException
MalformedURLException

isDeployed

boolean isDeployed(String url)
                   throws MalformedURLException
The isDeployed method tells you if a package identified by a string representation of a URL is currently deployed.

Parameters:
url - a String value
Returns:
a boolean value
Throws:
MalformedURLException - if an error occurs

isDeployed

boolean isDeployed(URL url)
The isDeployed method tells you if a packaged identified by a URL is deployed.

Specified by:
isDeployed in interface DeployerMBean
Parameters:
url - an URL value
Returns:
a boolean value

getDeployment

DeploymentInfo getDeployment(URL url)
The getDeployment method returns the DeploymentInfo object for the URL supplied.

Parameters:
url - an URL value
Returns:
a DeploymentInfo value

getWatchUrl

URL getWatchUrl(URL url)
The getWatchUrl method returns the URL that, when modified, indicates that a redeploy is needed.

Parameters:
url - an URL value
Returns:
a URL value

checkIncompleteDeployments

void checkIncompleteDeployments()
                                throws DeploymentException
Check the current deployment states and generate an IncompleteDeploymentException if there are mbeans waiting for depedencies.

Throws:
IncompleteDeploymentException
DeploymentException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.