|
|||||||||||
| 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
This is the main Service Deployer API.
Service| Nested Class Summary |
| Nested classes inherited from class org.jboss.deployment.SubDeployerSupport |
SubDeployerSupport.ClassConfiguration |
| Field Summary |
| Fields inherited from class org.jboss.deployment.SubDeployerSupport |
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, tempDeployDir |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.deployment.SubDeployer |
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, START_NOTIFICATION, STOP_NOTIFICATION |
| 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 |
| Constructor Summary | |
SARDeployer()
|
|
| Method Summary | |
boolean |
accepts(DeploymentInfo di)
Returns true if this deployer can deploy the given DeploymentInfo. |
void |
create(DeploymentInfo di)
The create method creates the MBeans associated with the deployment. |
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)
The destroy method invokes destroy on the mbeans associated with the deployment in reverse order relative to create. |
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)
The init method parses the jboss-service.xml descriptor for the service. |
protected File[] |
listFiles(String urlspec)
|
protected void |
parseDocument(DeploymentInfo di)
Parse the META-INF/jboss-service.xml descriptor |
protected void |
parseXMLClasspath(DeploymentInfo di)
|
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. |
| Methods inherited from class org.jboss.deployment.SubDeployerSupport |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, isDeployable, processNestedDeployments, stopService |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, 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, 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.SubDeployer |
getServiceName |
| Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
| Constructor Detail |
public SARDeployer()
| Method Detail |
public DeploymentInfo getService(javax.management.ObjectName serviceName)
getService in interface SARDeployerMBeanpublic boolean accepts(DeploymentInfo di)
accepts in interface SubDeployerdi - a DeploymentInfo value
public void init(DeploymentInfo di) throws DeploymentException
init in interface SubDeployerinit in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurspublic void create(DeploymentInfo di) throws DeploymentException
create in interface SubDeployercreate in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurspublic void start(DeploymentInfo di) throws DeploymentException
start method starts all the mbeans in this DeploymentInfo..
start in interface SubDeployerstart in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurspublic void stop(DeploymentInfo di)
stop in interface SubDeployerstop in class SubDeployerSupportdi - the DeploymentInfo value to stop.public void destroy(DeploymentInfo di)
destroy in interface SubDeployerdestroy in class SubDeployerSupportdi - a DeploymentInfo valueprotected File[] listFiles(String urlspec) throws Exception
Exceptionprotected void parseXMLClasspath(DeploymentInfo di) throws Exception
di -
Exception
protected void startService()
throws Exception
startService in class SubDeployerSupportException - if an error occurs
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
ServiceMBeanSupport
getObjectName in class ServiceMBeanSupportjavax.management.MalformedObjectNameExceptionprotected void parseDocument(DeploymentInfo di) throws Exception
Exceptionprotected 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 | ||||||||||