org.jboss.portal.test.framework.impl.jboss.agent
Class JBossTestAgent

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.portal.test.framework.impl.jboss.agent.JBossTestAgent
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, TestAgent, JBossTestAgentMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JBossTestAgent
extends org.jboss.system.ServiceMBeanSupport
implements JBossTestAgentMBean

Version:
$Revision: 5669 $
Author:
Julien Viet

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.portal.test.framework.agent.TestAgent
SERVICE_ID
 
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
JBossTestAgent()
           
 
Method Summary
 void deploy(java.net.URL url)
           
 org.jboss.deployment.MainDeployerMBean getMainDeployer()
           
static void record(org.jboss.deployment.DeploymentException e)
          Record the exception that will be reused later by the same agent to be aware of the recorded exception.
 void setMainDeployer(org.jboss.deployment.MainDeployerMBean mainDeployer)
           
 void undeploy(java.net.URL url)
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, 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
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.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

JBossTestAgent

public JBossTestAgent()
Method Detail

record

public static void record(org.jboss.deployment.DeploymentException e)
Record the exception that will be reused later by the same agent to be aware of the recorded exception.

Parameters:
e - the deployment exception to log.

getMainDeployer

public org.jboss.deployment.MainDeployerMBean getMainDeployer()
Specified by:
getMainDeployer in interface JBossTestAgentMBean

setMainDeployer

public void setMainDeployer(org.jboss.deployment.MainDeployerMBean mainDeployer)
Specified by:
setMainDeployer in interface JBossTestAgentMBean

deploy

public void deploy(java.net.URL url)
            throws java.lang.Exception
Specified by:
deploy in interface TestAgent
Throws:
java.lang.Exception

undeploy

public void undeploy(java.net.URL url)
              throws java.lang.Exception
Specified by:
undeploy in interface TestAgent
Throws:
java.lang.Exception