| java.lang.Object com.sun.jbi.management.system.ModelSystemService
All known Subclasses: com.sun.jbi.internal.security.SecurityService, com.sun.jbi.management.system.DeploymentService, com.sun.jbi.messaging.MessageService, com.sun.jbi.management.system.LoggingService, com.sun.jbi.management.system.ConfigurationService, com.sun.jbi.management.system.InstallationService, com.sun.jbi.management.system.AdminService,
ModelSystemService | abstract public class ModelSystemService implements LifeCycleMBean,NotificationEmitter(Code) | | The ModelSystemService implements the management controls for a standard
JBI Framework system service.
author: Sun Microsystems, Inc. |
Method Summary | |
public void | addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Adds a listener to this MBean.
Parameters: listener - The listener object which will handle thenotifications emitted by the broadcaster. Parameters: filter - The filter object. | protected void | bootstrap() | protected com.sun.jbi.ComponentQuery | getComponentQuery() Get a reference to ComponentQuery. | public String | getCurrentState() Get the current state of this managed compononent. | public NotificationBroadcasterSupport | getNotificationBroadcaster() Getter for local NotificationBroadcaster. | public MBeanNotificationInfo[] | getNotificationInfo() Returns an array indicating, for each notification this
MBean may send, the name of the Java class of the notification
and the notification type.
It is not illegal for the MBean to send notifications not
described in this array. | protected Registry | getRegistry() Get a reference to the JBI registry. | protected void | initModelSystemService(com.sun.jbi.EnvironmentContext anEnv, JbiNameInfo aJbiName) allocate a logger, and then initialize the ModelSystemService. | protected void | initModelSystemService(com.sun.jbi.EnvironmentContext anEnv, Logger aLogger, JbiNameInfo aJbiName) Initialize the ModelSystemService. | public void | removeNotificationListener(NotificationListener listener) Removes a listener from this MBean. | public void | removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Removes a listener from this MBean. | public void | shutDown() Shut down the item. | public void | start() Start the item. | public void | stop() Stop the item. |
mAdminServiceMBeanName | protected ObjectName mAdminServiceMBeanName(Code) | | JMX object names for all JBI system "service" mbeans:
|
mConfigMBeanName | protected ObjectName mConfigMBeanName(Code) | | JMX object names for standard mbeans:
|
mDisplayName | protected String mDisplayName(Code) | | User-friendly display name to be used by ModelSystemService methods:
|
mInitialMBeansmStartMBeans | protected MBeanSet mInitialMBeansmStartMBeans(Code) | | |
mJbiNameInfo | protected JbiNameInfo mJbiNameInfo(Code) | | handle to jbi system or installed component identification:
|
mLogger | protected Logger mLogger(Code) | | Logger to be used by ModelSystemService methods:
|
mLoggerImpl | protected LoggerMBean mLoggerImpl(Code) | | The default logger implementation, all logger tasks are delegated to
this MBean
|
addNotificationListener | public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws java.lang.IllegalArgumentException(Code) | | Adds a listener to this MBean.
Parameters: listener - The listener object which will handle thenotifications emitted by the broadcaster. Parameters: filter - The filter object. If filter is null, nofiltering will be performed before handling notifications. Parameters: handback - An opaque object to be sent back to thelistener when a notification is emitted. This object cannot beused by the Notification broadcaster object. It should beresent unchanged with the notification to the listener. exception: IllegalArgumentException - Listener parameter is null. See Also: ModelSystemService.removeNotificationListener |
bootstrap | protected void bootstrap()(Code) | | perform one-time startup tasks for this model
|
getCurrentState | public String getCurrentState()(Code) | | Get the current state of this managed compononent.
the current state of this managed component (must be one of the string constants defined by this interface) |
getNotificationInfo | public MBeanNotificationInfo[] getNotificationInfo()(Code) | | Returns an array indicating, for each notification this
MBean may send, the name of the Java class of the notification
and the notification type.
It is not illegal for the MBean to send notifications not
described in this array. However, some clients of the MBean
server may depend on the array being complete for their correct
functioning.
the array of possible notifications. |
getRegistry | protected Registry getRegistry()(Code) | | Get a reference to the JBI registry.
|
removeNotificationListener | public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code) | | Removes a listener from this MBean. The MBean must have a
listener that exactly matches the given listener ,
filter , and handback parameters. If
there is more than one such listener, only one is removed.
The filter and handback parameters
may be null if and only if they are null in a listener to be
removed.
Parameters: listener - A listener that was previously added to thisMBean. Parameters: filter - The filter that was specified when the listenerwas added. Parameters: handback - The handback that was specified when the listener wasadded. exception: ListenerNotFoundException - The listener is notregistered with the MBean, or it is not registered with thegiven filter and handback. |
|
|