|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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, relativeOrder, suffixes, 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, 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 |
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)
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)
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)
Describe init method here. |
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, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes, 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 |
getRelativeOrder, getServiceName, getSuffixes, setRelativeOrder, setSuffixes |
Methods inherited from interface org.jboss.deployment.SubDeployerMBean |
getRelativeOrder, getSuffixes, setRelativeOrder, setSuffixes |
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 SARDeployerMBean
serviceName
- a service object name
public boolean accepts(DeploymentInfo di)
accepts
in interface SubDeployer
di
- a DeploymentInfo
value
public void init(DeploymentInfo di) throws DeploymentException
init
method here.
init
in interface SubDeployer
init
in class SubDeployerSupport
di
- a DeploymentInfo
value
DeploymentException
- if an error occurspublic void create(DeploymentInfo di) throws DeploymentException
create
method here.
create
in interface SubDeployer
create
in class SubDeployerSupport
di
- 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 SubDeployer
start
in class SubDeployerSupport
di
- a DeploymentInfo
value
DeploymentException
- if an error occurspublic void stop(DeploymentInfo di)
stop
in interface SubDeployer
stop
in class SubDeployerSupport
di
- the DeploymentInfo
value to stop.public void destroy(DeploymentInfo di)
destroy
in interface SubDeployer
destroy
in class SubDeployerSupport
di
- a DeploymentInfo
valueprotected File[] listFiles(String urlspec) throws Exception
Exception
protected void parseXMLClasspath(DeploymentInfo di) throws Exception
di
-
Exception
protected void startService() throws Exception
startService
in class SubDeployerSupport
Exception
- if an error occursprotected javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name) throws javax.management.MalformedObjectNameException
ServiceMBeanSupport
getObjectName
in class ServiceMBeanSupport
javax.management.MalformedObjectNameException
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 |