Package org.oddjob.jmx.server
Interface ServerSideToolkit
- All Superinterfaces:
NotificationNotifier
- All Known Implementing Classes:
ServerSideToolkitImpl
A Toolkit for
ServerInterfaceHandlers to help them do their job.- Author:
- Rob Gordon.
-
Method Summary
Modifier and TypeMethodDescription<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.Methods inherited from interface org.oddjob.remote.util.NotificationNotifier
setNotifierListener
-
Method Details
-
getRemoteId
long getRemoteId() -
sendNotification
Send a notification. This can be provided by BroadcastNotificationSupport in the implementation.- Parameters:
notification- The notification.
-
createNotification
Create a Notification.- 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.- Parameters:
runnable- The functionality to run.
-
getContext
ServerContext getContext()Gives handlers access to the server context.- Returns:
- The server context for this MBean.
-
getRemoteBean
RemoteOddjobBean getRemoteBean()Get the remote controller bean.- Returns:
-
getServerSession
ServerSession getServerSession()Get the server session.- Returns:
-