jrunx.kernel
Interface ServiceMBean

All Superinterfaces:
java.io.Serializable, Service
All Known Subinterfaces:
ApplicationContainerFactoryMBean, ApplicationContainerMBean, AxisServiceMBean, ClusterableServiceAdapterMBean, ClusterDeployerServiceMBean, ClusterManagerMBean, ConfigurableServicePartitionMBean, ConfigurationManager, ConfigurationManagerServiceMBean, ContainerManagedTransactionInterceptorMBean, ContainerMBean, CustomInstrumentorMBean, DataSourceServiceMBean, DeployerServiceMBean, DeploymentServiceMBean, EJBContainerFactoryMBean, EJBContainerFactoryMBean, EJBContainerFactoryMBean, EJBContainerMBean, EJBSecurityInterceptorMBean, EnterpriseApplicationFactoryMBean, EnterpriseApplicationFactoryMBean, EnterpriseApplicationFactoryMBean, EnterpriseApplicationMBean, EntityInstanceInterceptorMBean, EntitySynchronizationInterceptorMBean, FileLogEventHandlerMBean, GarbageCollectionServiceMBean, HtmlAgentServiceMBean, InstrumentationServiceMBean, Interceptor, InterceptorMBean, InvokerInterceptorMBean, J2EEConnectorFactoryMBean, J2EEConnectorMBean, J2EEModuleFactoryMBean, J2EEModuleMBean, JMSAdapter, JMSCore, JMSCoreServiceMBean, JMSScheduler, JMSSchedulerServiceMBean, JMSSecurityManagerItf, JMSSecurityManagerMBean, JMSServiceAdapterMBean, JMSServicePartitionMBean, JMSServiceWrapperMBean, JMSWrapper, JRunAdminServiceMBean, JRunJMSAdapterMBean, JRunJMSMBean, JRunProxyClusterHelperMBean, JRunProxyServiceMBean, JRunSecurityManager, JRunSecurityManagerServiceMBean, JRunServerMBean, JRunServiceDeployerMBean, JRunTransactionServiceMBean, JRunUserManager, JRunUserManagerServiceMBean, JRunUserTransactionMBean, LicenseServiceMBean, LogEventHandlerMBean, Logger, LoggerInterceptorMBean, LoggerServiceMBean, MailServiceMBean, MessageDrivenInstanceInterceptorMBean, MessageManager, MessageManagerServiceMBean, MethodInstrumentorMBean, Metrics, MetricsServiceMBean, NamingServiceMBean, NetworkServiceMBean, ObjectPoolServiceMBean, OTSTransactionInterceptorMBean, PersistenceManagerServiceMBean, ReplicationIdServiceMBean, ResourceDeployerMBean, ResourceServiceInterface, ResourceServiceMBean, RMIBrokerMBean, Scheduler, SchedulerServiceMBean, ServerSessionPoolFactory, ServerSessionPoolServiceMBean, ServiceFactoryMBean, ServicePartitionMBean, ServletEngine, ServletEngineServiceMBean, ServletUsers, ServletUsersServiceMBean, Session, SessionIdGenerator, SessionIdGeneratorServiceMBean, SessionReplicationServiceMBean, SessionServiceMBean, SonicMQAdapterMBean, SSL, SSLServiceMBean, StatefulClusterInterceptorMBean, StatefulSessionInstanceInterceptorMBean, StatelessSessionInstanceInterceptorMBean, ThreadedLogEventHandlerMBean, ThreadPoolManager, ThreadPoolManagerServiceMBean, ThreadPoolServiceMBean, TransactionInterceptorMBean, TXDomainServiceMBean, WatcherMBean, WebApplication, WebApplicationFactoryMBean, WebApplicationFactoryMBean, WebApplicationFactoryMBean, WebApplicationServiceMBean, WebAppSecurity, WebAppSecurityServiceMBean, WebServiceMBean, XDocletServiceMBean
All Known Implementing Classes:
ServiceAdapter

public interface ServiceMBean
extends Service

While Service is designed to be a generic interface, ServiceMBean extends it in order to provide JMX-specific functionality.

Author:
PS Neville

Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 void bind()
          Bind the service to the JNDI tree.
 boolean getBindToJNDI()
           
 boolean getDeactivated()
          Check if the service is deactivated and should not be started
 java.lang.String getDomainName()
          Retrieve the domain name of this service.
 java.lang.Object getJRunService()
           
 Logger getLogger()
           
 java.lang.String getName()
          Request the name by which the server refers to this service.
 ServiceMBean getParentService()
          Gets the parent service of this service, or null if not part of a ConfigurableServicePartition
 java.lang.String getServerName()
           
 javax.management.MBeanServer requestServer()
          Every service may report its server by reference.
 void setBindToJNDI(boolean b)
           
 void setDeactivated(boolean deactivated)
          Deactivate the service to prevent it from being started
 void setDomainName(java.lang.String n)
          Set the domain to which this Service belongs.
 void setName(java.lang.String n)
          Set the Service Name.
 void setParentService(ServiceMBean parent)
          Sets the parent service of this service.
 void unbind()
          Unbind the service form the JNDI tree.
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Method Detail

getName

public java.lang.String getName()
Request the name by which the server refers to this service.

setName

public void setName(java.lang.String n)
Set the Service Name.

setDomainName

public void setDomainName(java.lang.String n)
                   throws ServiceException
Set the domain to which this Service belongs.

getDomainName

public java.lang.String getDomainName()
                               throws ServiceException
Retrieve the domain name of this service.

getServerName

public java.lang.String getServerName()

requestServer

public javax.management.MBeanServer requestServer()
Every service may report its server by reference. It is not a 'get' method in order to avoid automatic exposure of the method as an attribute accessor method instead of as an operation.

bind

public void bind()
          throws javax.naming.NamingException
Bind the service to the JNDI tree.

unbind

public void unbind()
            throws javax.naming.NamingException
Unbind the service form the JNDI tree.

getBindToJNDI

public boolean getBindToJNDI()

setBindToJNDI

public void setBindToJNDI(boolean b)

getDeactivated

public boolean getDeactivated()
Check if the service is deactivated and should not be started

setDeactivated

public void setDeactivated(boolean deactivated)
Deactivate the service to prevent it from being started

setParentService

public void setParentService(ServiceMBean parent)
Sets the parent service of this service. This is automatically set when a service is part of a ConfigurableServicePartition
Parameters:
parent - The parent service

getParentService

public ServiceMBean getParentService()
Gets the parent service of this service, or null if not part of a ConfigurableServicePartition
Returns:
The parent service or null if none

getLogger

public Logger getLogger()

getJRunService

public java.lang.Object getJRunService()


Copyright � 2002 Macromedia Corporation. All Rights Reserved.