|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.MainDeployer
The main/primary component for deployment.
MainDeployerMBean is generated by xdoclet.
| Field Summary |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
MainDeployer()
Explict no-args contsructor for JMX. |
|
| Method Summary | |
void |
addDeployer(SubDeployer (src) deployer)
The addDeployer method registers a deployer with the main deployer. |
void |
checkIncompleteDeployments()
Check the current deployment states and generate a IncompleteDeploymentException if there are mbeans waiting for depedencies. |
protected void |
copy(java.net.URL src,
java.io.File dest)
|
protected void |
createService()
The createService method is one of the ServiceMBean lifecyle operations. |
void |
deploy(DeploymentInfo (src) deployment)
The deploy method deploys a package represented by a DeploymentInfo object. |
void |
deploy(java.lang.String urlspec)
The deploy method deploys a package identified by a
string representation of a URL. |
void |
deploy(java.net.URL url)
The deploy method deploys a package identified by a URL |
boolean |
getCopyFiles()
Get the flag indicating whether directory content will be deployed |
DeploymentInfo (src) |
getDeployment(java.net.URL url)
The getDeployment method returns the DeploymentInfo
object for the URL supplied. |
java.lang.String[] |
getEnhancedSuffixOrder()
Get the enhanced suffix order |
protected ObjectName (src) |
getObjectName(MBeanServer (src) server,
ObjectName (src) name)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration. |
java.lang.String[] |
getSuffixOrder()
Get the ordering of the deployment suffixes |
java.io.File |
getTempDir()
Get the temp directory |
java.lang.String |
getTempDirString()
Get the temp directory |
java.net.URL |
getWatchUrl(java.net.URL url)
The getWatchUrl method returns the URL that, when modified,
indicates that a redeploy is needed. |
boolean |
isDeployed(java.lang.String url)
The isDeployed method tells you if a package identified by a string
representation of a URL is currently deployed. |
boolean |
isDeployed(java.net.URL url)
The isDeployed method tells you if a packaged identified by
a URL is deployed. |
java.util.Collection |
listDeployed()
The listDeployed method returns a collection of DeploymemtInfo
objects for the currently deployed packages. |
java.lang.String |
listDeployedAsString()
Describe listDeployedAsString method here. |
java.util.Collection |
listDeployedModules()
The listDeployedModules method returns a collection of SerializableDeploymentInfo
objects for the currently deployed packages. |
java.util.Collection |
listDeployers()
The listDeployers method returns a collection of ObjectNames of
deployers registered with the MainDeployer. |
java.util.Collection |
listIncompletelyDeployed()
The listIncompletelyDeployed method returns a list of packages that have
not deployed completely. |
java.util.Collection |
listWaitingForDeployer()
The listWaitingForDeployer method returns a collection
of the packages that currently have no identified deployer. |
void |
redeploy(DeploymentInfo (src) sdi)
Describe redeploy method here. |
void |
redeploy(java.lang.String urlspec)
Describe redeploy method here. |
void |
redeploy(java.net.URL url)
Describe redeploy method here. |
void |
removeDeployer(SubDeployer (src) deployer)
The removeDeployer method unregisters a deployer with the MainDeployer. |
void |
setCopyFiles(boolean copyFiles)
Set the flag indicating whether directory content will be deployed. |
void |
setEnhancedSuffixOrder(java.lang.String[] enhancedSuffixOrder)
Set the enhanced suffix order |
void |
setServiceController(ObjectName (src) serviceController)
Describe setServiceController method here. |
void |
setTempDir(java.io.File tempDir)
Set the temp directory |
void |
shutdown()
The shutdown method undeploys all deployed packages in
reverse order of their deployement. |
void |
undeploy(DeploymentInfo (src) di)
The undeploy method undeploys a package represented by a
DeploymentInfo object. |
protected void |
undeploy(DeploymentInfo (src) di,
boolean isShutdown)
|
void |
undeploy(java.lang.String urlspec)
The undeploy method undeploys a package identified by a string
representation of a URL. |
void |
undeploy(java.net.URL url)
The undeploy method undeploys a package identified by a URL |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MainDeployer()
| Method Detail |
public boolean getCopyFiles()
public void setCopyFiles(boolean copyFiles)
copyFiles - the local copy flag valuepublic java.io.File getTempDir()
public void setTempDir(java.io.File tempDir)
tempDir - the path to the local tmp directorypublic java.lang.String getTempDirString()
public java.lang.String[] getSuffixOrder()
public java.lang.String[] getEnhancedSuffixOrder()
public void setEnhancedSuffixOrder(java.lang.String[] enhancedSuffixOrder)
enhancedSuffixOrder - the enhanced suffix orderpublic void setServiceController(ObjectName (src) serviceController)
setServiceController method here.
serviceController - an ObjectName valuepublic java.util.Collection listDeployed()
listDeployed method returns a collection of DeploymemtInfo
objects for the currently deployed packages.
Collection valuepublic java.util.Collection listDeployedModules()
listDeployedModules method returns a collection of SerializableDeploymentInfo
objects for the currently deployed packages.
Collection valuepublic java.lang.String listDeployedAsString()
listDeployedAsString method here.
String valuepublic java.util.Collection listIncompletelyDeployed()
listIncompletelyDeployed method returns a list of packages that have
not deployed completely. The toString method will include any exception in the status
field.
Collection valuepublic java.util.Collection listWaitingForDeployer()
listWaitingForDeployer method returns a collection
of the packages that currently have no identified deployer.
Collection valuepublic void addDeployer(SubDeployer (src) deployer)
addDeployer method registers a deployer with the main deployer.
Any waiting packages are tested to see if the new deployer will deploy them.
deployer - a SubDeployer valuepublic void removeDeployer(SubDeployer (src) deployer)
removeDeployer method unregisters a deployer with the MainDeployer.
Deployed packages deployed with this deployer are undeployed.
deployer - a SubDeployer valuepublic java.util.Collection listDeployers()
listDeployers method returns a collection of ObjectNames of
deployers registered with the MainDeployer.
Collection value
protected ObjectName (src) getObjectName(MBeanServer (src) server,
ObjectName (src) name)
throws MalformedObjectNameException (src)
ServiceMBeanSupport (src)
getObjectName in class ServiceMBeanSupport (src) MalformedObjectNameException (src)
protected void createService()
throws java.lang.Exception
createService method is one of the ServiceMBean lifecyle operations.
(no jmx tag needed from superinterface)
createService in class ServiceMBeanSupport (src) java.lang.Exception - if an error occurspublic void shutdown()
shutdown method undeploys all deployed packages in
reverse order of their deployement.
public void redeploy(java.lang.String urlspec)
throws DeploymentException (src) ,
java.net.MalformedURLException
redeploy method here.
urlspec - a String value
DeploymentException (src) - if an error occurs
java.net.MalformedURLException - if an error occurs
public void redeploy(java.net.URL url)
throws DeploymentException (src)
redeploy method here.
url - an URL value
DeploymentException (src) - if an error occurs
public void redeploy(DeploymentInfo (src) sdi)
throws DeploymentException (src)
redeploy method here.
sdi - a DeploymentInfo value
DeploymentException (src) - if an error occurs
public void undeploy(java.net.URL url)
throws DeploymentException (src)
undeploy method undeploys a package identified by a URL
undeploy in interface Deployer (src) url - an URL value
DeploymentException (src) - Failed to undeploy URL.
public void undeploy(java.lang.String urlspec)
throws DeploymentException (src) ,
java.net.MalformedURLException
undeploy method undeploys a package identified by a string
representation of a URL.
urlspec - a String value
java.net.MalformedURLException - if an error occurs
DeploymentException (src) public void undeploy(DeploymentInfo (src) di)
undeploy method undeploys a package represented by a
DeploymentInfo object.
di - a DeploymentInfo value
protected void undeploy(DeploymentInfo (src) di,
boolean isShutdown)
public void deploy(java.lang.String urlspec)
throws DeploymentException (src) ,
java.net.MalformedURLException
deploy method deploys a package identified by a
string representation of a URL.
urlspec - a String value
java.net.MalformedURLException - if an error occurs
DeploymentException (src)
public void deploy(java.net.URL url)
throws DeploymentException (src)
deploy method deploys a package identified by a URL
deploy in interface Deployer (src) url - an URL value
DeploymentException (src) - Failed to deploy URL.
public void deploy(DeploymentInfo (src) deployment)
throws DeploymentException (src)
deploy method deploys a package represented by a DeploymentInfo object.
deployment - a DeploymentInfo value
DeploymentException (src) - if an error occurs
protected void copy(java.net.URL src,
java.io.File dest)
throws java.io.IOException
java.io.IOException
public boolean isDeployed(java.lang.String url)
throws java.net.MalformedURLException
isDeployed method tells you if a package identified by a string
representation of a URL is currently deployed.
url - a String value
boolean value
java.net.MalformedURLException - if an error occurspublic boolean isDeployed(java.net.URL url)
isDeployed method tells you if a packaged identified by
a URL is deployed.
isDeployed in interface Deployer (src) url - an URL value
boolean valuepublic DeploymentInfo (src) getDeployment(java.net.URL url)
getDeployment method returns the DeploymentInfo
object for the URL supplied.
url - an URL value
DeploymentInfo valuepublic java.net.URL getWatchUrl(java.net.URL url)
getWatchUrl method returns the URL that, when modified,
indicates that a redeploy is needed.
url - an URL value
URL value
public void checkIncompleteDeployments()
throws DeploymentException (src)
IncompleteDeploymentException (src)
DeploymentException (src)
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||