org.jboss.util
Class ServiceControl

java.lang.Object
  |
  +--org.jboss.util.ServiceControl
All Implemented Interfaces:
java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationListener, Service, ServiceControlMBean

public class ServiceControl
extends java.lang.Object
implements ServiceControlMBean, javax.management.MBeanRegistration, javax.management.NotificationListener

Version:
$Revision: 1.8 $
Author:
Rickard Öberg (rickard.oberg@telkel.com), Hugo Pinto (mailto:hugo@hugopinto.com)
See Also:

Field Summary
static java.lang.String OBJECT_NAME
           
 
Constructor Summary
ServiceControl()
           
 
Method Summary
 void destroy()
           
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
           
 void init()
           
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_NAME

public static final java.lang.String OBJECT_NAME
Constructor Detail

ServiceControl

public ServiceControl()
Method Detail

init

public void init()
          throws java.lang.Exception
Specified by:
init in interface Service

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Service

stop

public void stop()
Specified by:
stop in interface Service

destroy

public void destroy()
Specified by:
destroy in interface Service

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
Specified by:
preRegister in interface javax.management.MBeanRegistration

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Specified by:
postRegister in interface javax.management.MBeanRegistration

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Specified by:
preDeregister in interface javax.management.MBeanRegistration

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface javax.management.MBeanRegistration

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
Specified by:
handleNotification in interface javax.management.NotificationListener


Copyright © 2000 The JBoss Organization. All Rights Reserved.