|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.SARDeployer
public class SARDeployer
This is the main Service Deployer API.
Service| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.deployment.SubDeployerSupport |
|---|
SubDeployerSupport.ClassConfiguration |
| Field Summary |
|---|
| Fields inherited from class org.jboss.deployment.SubDeployerSupport |
|---|
CONFIGURATION, enhancedSuffixes, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.deployment.SARDeployerMBean |
|---|
OBJECT_NAME |
| 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.SubDeployer |
|---|
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION |
| Constructor Summary | |
|---|---|
SARDeployer()
Default CTOR |
|
| Method Summary | |
|---|---|
void |
create(DeploymentInfo di)
Describe create method here. |
void |
destroy(DeploymentInfo di)
The destroy method invokes destroy on the mbeans associated with the deployment in reverse order relative to create. |
protected javax.management.ObjectName |
getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration. |
DeploymentInfo |
getService(javax.management.ObjectName serviceName)
Get the associated service DeploymentInfo if found, null otherwise |
protected void |
inflateJar(URL url,
File destDir,
String path)
The inflateJar copies the jar entries
from the jar url jarUrl to the directory destDir. |
void |
init(DeploymentInfo di)
Describe init method here. |
boolean |
isUseNamespaceAwareParser()
|
protected File[] |
listFiles(String urlspec)
|
protected void |
parseDocument(DeploymentInfo di)
Parse the META-INF/jboss-service.xml descriptor |
protected void |
parseXMLClasspath(DeploymentInfo di)
|
void |
setUseNamespaceAwareParser(boolean useNamespaceAwareParser)
|
void |
start(DeploymentInfo di)
The start method starts all the mbeans in this DeploymentInfo.. |
protected void |
startService()
The startService method gets the mbeanProxies for MainDeployer and ServiceController, used elsewhere. |
void |
stop(DeploymentInfo di)
The stop method invokes stop on the mbeans associatedw ith the deployment in reverse order relative to create. |
protected void |
stopService()
This method stops all the applications in this server. |
| Methods inherited from class org.jboss.deployment.SubDeployerSupport |
|---|
accepts, addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setEnhancedSuffixes, setRelativeOrder, setSuffixes |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.deployment.SubDeployerExtMBean |
|---|
getEnhancedSuffixes, setEnhancedSuffixes |
| Methods inherited from interface org.jboss.deployment.SubDeployerMBean |
|---|
accepts, getRelativeOrder, getServiceName, getSuffixes |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Methods inherited from interface org.jboss.deployment.SubDeployer |
|---|
getServiceName |
| Constructor Detail |
|---|
public SARDeployer()
| Method Detail |
|---|
public boolean isUseNamespaceAwareParser()
public void setUseNamespaceAwareParser(boolean useNamespaceAwareParser)
public DeploymentInfo getService(javax.management.ObjectName serviceName)
getService in interface SARDeployerMBeanserviceName - a service object name
public void init(DeploymentInfo di)
throws DeploymentException
init method here.
init in interface SubDeployerinit in interface SubDeployerMBeaninit in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurs
public void create(DeploymentInfo di)
throws DeploymentException
create method here.
create in interface SubDeployercreate in interface SubDeployerMBeancreate in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurs
public void start(DeploymentInfo di)
throws DeploymentException
start method starts all the mbeans in this DeploymentInfo..
start in interface SubDeployerstart in interface SubDeployerMBeanstart in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurspublic void stop(DeploymentInfo di)
stop in interface SubDeployerstop in interface SubDeployerMBeanstop in class SubDeployerSupportdi - the DeploymentInfo value to stop.public void destroy(DeploymentInfo di)
destroy in interface SubDeployerdestroy in interface SubDeployerMBeandestroy in class SubDeployerSupportdi - a DeploymentInfo value
protected void startService()
throws Exception
startService in class SubDeployerSupportException - if an error occurs
protected void stopService()
throws Exception
stopService in class SubDeployerSupportException
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
ServiceMBeanSupport
getObjectName in class ServiceMBeanSupportjavax.management.MalformedObjectNameException
protected File[] listFiles(String urlspec)
throws Exception
Exception
protected void parseXMLClasspath(DeploymentInfo di)
throws Exception
di -
Exception
protected void parseDocument(DeploymentInfo di)
throws Exception
Exception
protected void inflateJar(URL url,
File destDir,
String path)
throws DeploymentException,
IOException
inflateJar copies the jar entries
from the jar url jarUrl to the directory destDir.
It can be used on the whole jar, a directory, or
a specific file in the jar.
url - the URL if the directory or entry to copy.destDir - the File value of the directory in which to
place the inflated copies.
DeploymentException - if an error occurs
IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||