org.jboss.portal.server.util
Class Service

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.portal.server.util.Service
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
Direct Known Subclasses:
AbstractMetaDataBuilder, AbstractModule, AbstractModule, AbstractTransformer, ServerManagerImpl, SimpleConfigurator, SimpleDeploymentReactor, WebAppIntercepter

public class Service
extends org.jboss.system.ServiceMBeanSupport

Base service class


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
Service()
           
Service(java.lang.Class type)
           
Service(org.jboss.logging.Logger log)
           
Service(java.lang.String category)
           
 
Method Summary
 void create()
           
 void destroy()
           
 int getState()
           
 java.lang.String getStateString()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()

Service

public Service(java.lang.Class type)

Service

public Service(java.lang.String category)

Service

public Service(org.jboss.logging.Logger log)
Method Detail

getState

public int getState()
Specified by:
getState in interface org.jboss.system.ServiceMBean
Overrides:
getState in class org.jboss.system.ServiceMBeanSupport

getStateString

public java.lang.String getStateString()
Specified by:
getStateString in interface org.jboss.system.ServiceMBean
Overrides:
getStateString in class org.jboss.system.ServiceMBeanSupport

create

public void create()
            throws java.lang.Exception
Specified by:
create in interface org.jboss.system.Service
Overrides:
create in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface org.jboss.system.Service
Overrides:
start in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface org.jboss.system.Service
Overrides:
stop in class org.jboss.system.ServiceMBeanSupport

destroy

public void destroy()
Specified by:
destroy in interface org.jboss.system.Service
Overrides:
destroy in class org.jboss.system.ServiceMBeanSupport