net.sf.infrared.agent.setup.jboss
Class InfraREDService

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended bynet.sf.infrared.agent.setup.jboss.InfraREDService
All Implemented Interfaces:
InfraREDServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class InfraREDService
extends org.jboss.system.ServiceMBeanSupport
implements InfraREDServiceMBean

Implementation of the ServiceMBeanSupport interface. This contains the callback methods that are called when an application is deployed on JBoss


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
InfraREDService()
           
 
Method Summary
 String getApplicatonName()
          Gets the Application Name
 String getPortNo()
          Gets the Port No.
 void setApplicatonName(String applicatonName)
          Sets the Application Name
 void setPortNo(String portNo)
          sets the Port No.
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, 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

InfraREDService

public InfraREDService()
Method Detail

getApplicatonName

public String getApplicatonName()
Gets the Application Name

Specified by:
getApplicatonName in interface InfraREDServiceMBean
Returns:
applicatonName

setApplicatonName

public void setApplicatonName(String applicatonName)
Sets the Application Name

Specified by:
setApplicatonName in interface InfraREDServiceMBean
Parameters:
applicatonName -

getPortNo

public String getPortNo()
Gets the Port No.

Specified by:
getPortNo in interface InfraREDServiceMBean
Returns:
portNo

setPortNo

public void setPortNo(String portNo)
sets the Port No.

Specified by:
setPortNo in interface InfraREDServiceMBean
Parameters:
portNo -

startService

protected void startService()
                     throws Exception
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Throws:
Exception