public class RemoteBridge extends java.lang.Object implements RemoteConnection
| Constructor and Description |
|---|
RemoteBridge(javax.management.MBeanServerConnection mbsc) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
static javax.management.NotificationFilter |
createTypeFilterFor(NotificationType<?> type)
Create a JMX filter for Notification Type.
|
void |
destroy(long remoteId)
Allows an implementations to clear up resources after a node has been destroyed.
|
<T> T |
invoke(long remoteId,
OperationType<T> operationType,
java.lang.Object... args) |
static boolean |
isFilterForType(javax.management.NotificationFilter filter,
NotificationType<?> notificationType)
Is a Filter for a given type.
|
<T> void |
removeNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
static <T> javax.management.NotificationListener |
toJmxListener(long remoteId,
NotificationListener<T> remoteListener,
java.lang.Class<T> dataType)
Convert a Remote listener to an JMX Listener.
|
static javax.management.Notification |
toJmxNotification(javax.management.ObjectName objectName,
Notification<?> notification)
Convert a Remote Notification into a JMX Notification.
|
static javax.management.MBeanNotificationInfo |
toMBeanNotification(NotificationType<?> notificationType)
Convert an
NotificationType to MBeanNotificationInfo. |
static <T> NotificationListener<T> |
toRemoteListener(javax.management.ObjectName objectName,
javax.management.NotificationListener jmxListener)
Convert an JMX Listener to a Remote Listener.
|
static <T> Notification<T> |
toRemoteNotification(long remoteId,
java.lang.Class<T> dataType,
javax.management.Notification notification)
Convert a JMX Notification into a Remote Notification.
|
public <T> void addNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener)
throws RemoteException
addNotificationListener in interface RemoteNotifierRemoteExceptionpublic <T> void removeNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener)
throws RemoteException
removeNotificationListener in interface RemoteNotifierRemoteExceptionpublic <T> T invoke(long remoteId,
OperationType<T> operationType,
java.lang.Object... args)
throws RemoteException
invoke in interface RemoteInvokerRemoteExceptionpublic void destroy(long remoteId)
throws RemoteException
RemoteConnectiondestroy in interface RemoteConnectionremoteId - The remote id of the node destroyed.RemoteExceptionpublic static javax.management.NotificationFilter createTypeFilterFor(NotificationType<?> type)
isFilterForType(NotificationFilter, NotificationType)type - Notification Type.public static <T> Notification<T> toRemoteNotification(long remoteId, java.lang.Class<T> dataType, javax.management.Notification notification)
T - The type of the Notification.remoteId - The Remote id this is a Notification for.dataType - The type of the Notification.notification - The Notification.public static javax.management.Notification toJmxNotification(javax.management.ObjectName objectName,
Notification<?> notification)
objectName - The Object Name this is a Notification for.notification - The Remote Notification.public static <T> NotificationListener<T> toRemoteListener(javax.management.ObjectName objectName, javax.management.NotificationListener jmxListener)
JmxListenerAdaptor.T - The type of the Notification.objectName - The object name the JMX Listener is for.jmxListener - The JMX Listenerpublic static <T> javax.management.NotificationListener toJmxListener(long remoteId,
NotificationListener<T> remoteListener,
java.lang.Class<T> dataType)
RemoteListenerAdaptor.T - The type The Notification Type.remoteId - The id this remote listener is for.remoteListener - The Remote Listener.dataType - The class name of the Notification type.public static boolean isFilterForType(javax.management.NotificationFilter filter,
NotificationType<?> notificationType)
FilterAdaptor.filter - The filter.notificationType - The Notification Type.public static javax.management.MBeanNotificationInfo toMBeanNotification(NotificationType<?> notificationType)
NotificationType to MBeanNotificationInfo.notificationType - The notification type.