org.jboss.test.jmx.deployer
Class BrokenDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.test.jmx.deployer.BrokenDeployer
- All Implemented Interfaces:
- MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)
- public class BrokenDeployer
- extends ServiceMBeanSupport (src)
This is a test of many possible problems with deployments.
.xaa DeploymentException in init
.xbb NPE in init
.xcc DeploymentException in deploy
.xdd NPE in deploy
.xee DeploymentException in undeploy
.xff NPE in undeploy
.xgg deployment with a non-existent watch. (caused looping in bug 515537)
The build script creates a BrokenDeployer.sar, which should be deployed before any
of the test files as noted above are deployed.
Created: Sun Feb 10 20:41:29 2002
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 |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrokenDeployer
public BrokenDeployer()
getName
public java.lang.String getName()
- Description copied from class:
ServiceMBeanSupport (src)
- Use the short class name as the default for the service name.
- Specified by:
getName
in interface ServiceMBean (src)
- Overrides:
getName
in class ServiceMBeanSupport (src)
startService
protected void startService()
throws java.lang.Exception
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'start' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
startService
in class ServiceMBeanSupport (src)
- Throws:
java.lang.Exception
stopService
protected void stopService()
- undeploys all deployments
- Overrides:
stopService
in class ServiceMBeanSupport (src)
accepts
public boolean accepts(DeploymentInfo (src) sdi)
init
public void init(DeploymentInfo (src) sdi)
throws DeploymentException (src)
- Throws:
DeploymentException (src)
deploy
public void deploy(DeploymentInfo (src) sdi)
throws DeploymentException (src)
- Throws:
DeploymentException (src)
undeploy
public void undeploy(DeploymentInfo (src) sdi)
throws DeploymentException (src)
- Throws:
DeploymentException (src)