Package org.oddjob.jmx.server
Class ServerSideToolkitImpl
java.lang.Object
org.oddjob.jmx.server.ServerSideToolkitImpl
- All Implemented Interfaces:
ServerSideToolkit,NotificationNotifier
Main Implementation of an
ServerSideToolkit.-
Constructor Summary
ConstructorsConstructorDescriptionServerSideToolkitImpl(long objectId, NotificationControl dispatch, ServerSession serverSession, ServerContext serverContext, RemoteOddjobBean remoteBean) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSideToolkitcreate(long objectId, NotificationControl dispatch, ServerSession serverSession, ServerContext serverContext, RemoteOddjobBean remoteBean) <T> Notification<T> createNotification(NotificationType<T> type, T userData) Create a Notification.Gives handlers access to the server context.Get the remote controller bean.longGet the server session.voidrunSynchronized(Runnable runnable) Used by handlers to execute functionality while holding the resync lock.voidsendNotification(Notification<?> notification) Send a notification.<T> voidsetNotifierListener(NotificationType<T> type, NotifierListener<T> notifierListener) Sets anNotifierListener.
-
Constructor Details
-
ServerSideToolkitImpl
public ServerSideToolkitImpl(long objectId, NotificationControl dispatch, ServerSession serverSession, ServerContext serverContext, RemoteOddjobBean remoteBean)
-
-
Method Details
-
create
public static ServerSideToolkit create(long objectId, NotificationControl dispatch, ServerSession serverSession, ServerContext serverContext, RemoteOddjobBean remoteBean) -
getRemoteId
public long getRemoteId()- Specified by:
getRemoteIdin interfaceServerSideToolkit
-
sendNotification
Description copied from interface:ServerSideToolkitSend a notification. This can be provided by BroadcastNotificationSupport in the implementation.- Specified by:
sendNotificationin interfaceServerSideToolkit- Parameters:
notification- The notification.
-
setNotifierListener
Description copied from interface:NotificationNotifierSets anNotifierListener.- Specified by:
setNotifierListenerin interfaceNotificationNotifier- Type Parameters:
T- The type of the notification and listener.- Parameters:
type- The notification type.notifierListener- The listener.
-
createNotification
Description copied from interface:ServerSideToolkitCreate a Notification.- Specified by:
createNotificationin interfaceServerSideToolkit- Parameters:
type- The notification type.userData- Optional user data.- Returns:
- A new notification.
-
runSynchronized
Used by handlers to execute functionality while holding the resync lock.- Specified by:
runSynchronizedin interfaceServerSideToolkit- Parameters:
runnable- The functionality to run.
-
getContext
Gives handlers access to the server context.- Specified by:
getContextin interfaceServerSideToolkit- Returns:
- The server context for this MBean.
-
getRemoteBean
Description copied from interface:ServerSideToolkitGet the remote controller bean.- Specified by:
getRemoteBeanin interfaceServerSideToolkit- Returns:
-
getServerSession
Description copied from interface:ServerSideToolkitGet the server session.- Specified by:
getServerSessionin interfaceServerSideToolkit- Returns:
-