| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | beingReconnected
This variable is used to tell whether a connector (RMIConnector or ClientIntermediary) is doing reconnection. |
| private long | |
| private Thread | |
| private final ClassLoader | |
| private Executor | |
| private final Map | |
| private static final ClassLogger | |
| private final int | |
| private Integer | |
| private static final int | STARTED
This state tells that a thread has been started for fetching and forwarding notifications. |
| private static final int | STARTING
This state means that a thread is being created for fetching and forwarding notifications. |
| private int | |
| private static final int | STOPPED
This state means that the fetching thread is already stopped. |
| private static final int | STOPPING
This state means that the fetching thread is informed to stop. |
| private static final int | TERMINATED
This state means that this object is terminated and no more thread will be created for fetching notifications. |
| private static int | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Integer | |
| public synchronized void | addNotificationListener(Integer listenerID, ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
|
| private synchronized void | beforeRemove()
Import: should not remove a listener during reconnection, the reconnection needs to change the listener list and that will possibly make removal fail. |
| protected abstract NotificationResult | fetchNotifs(long clientSequenceNumber, int maxNotifications, long timeout)
Called to fetch notifications from a server. |
| public synchronized Integer | getListenerId(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
|
| public synchronized Integer[] | |
| private synchronized void | |
| protected abstract void | |
| public synchronized void | |
| public synchronized ClientListenerInfo[] | |
| protected abstract void | |
| public synchronized Integer[] | |
| public synchronized Integer | removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
|
| public synchronized Integer[] | |
| private synchronized void | |
| public synchronized void |
| beingReconnected | back to summary |
|---|---|
| private boolean beingReconnected This variable is used to tell whether a connector (RMIConnector or ClientIntermediary)
is doing reconnection.
This variable will be set to true by the method | |
| clientSequenceNumber | back to summary |
|---|---|
| private long clientSequenceNumber | |
| currentFetchThread | back to summary |
|---|---|
| private Thread currentFetchThread | |
| defaultClassLoader | back to summary |
|---|---|
| private final ClassLoader defaultClassLoader | |
| executor | back to summary |
|---|---|
| private Executor executor | |
| infoList | back to summary |
|---|---|
| private final Map<Integer, ClientListenerInfo> infoList | |
| logger | back to summary |
|---|---|
| private static final ClassLogger logger | |
| maxNotifications | back to summary |
|---|---|
| private final int maxNotifications | |
| mbeanRemovedNotifID | back to summary |
|---|---|
| private Integer mbeanRemovedNotifID | |
| STARTED | back to summary |
|---|---|
| private static final int STARTED This state tells that a thread has been started for fetching and forwarding notifications. | |
| STARTING | back to summary |
|---|---|
| private static final int STARTING This state means that a thread is being created for fetching and forwarding notifications. | |
| state | back to summary |
|---|---|
| private int state | |
| STOPPED | back to summary |
|---|---|
| private static final int STOPPED This state means that the fetching thread is already stopped. | |
| STOPPING | back to summary |
|---|---|
| private static final int STOPPING This state means that the fetching thread is informed to stop. | |
| TERMINATED | back to summary |
|---|---|
| private static final int TERMINATED This state means that this object is terminated and no more thread will be created for fetching notifications. | |
| threadId | back to summary |
|---|---|
| private static int threadId | |
| timeout | back to summary |
|---|---|
| private final long timeout | |
| ClientNotifForwarder | back to summary |
|---|---|
| public ClientNotifForwarder(Map<String, ?> env) | |
| ClientNotifForwarder | back to summary |
|---|---|
public ClientNotifForwarder(ClassLoader defaultClassLoader, Map<String, ?> env)
| |
| addListenerForMBeanRemovedNotif | back to summary |
|---|---|
| protected abstract Integer addListenerForMBeanRemovedNotif() throws IOException, InstanceNotFoundException | |
| addNotificationListener | back to summary |
|---|---|
| public synchronized void addNotificationListener(Integer listenerID, ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws IOException, InstanceNotFoundException | |
| beforeRemove | back to summary |
|---|---|
| private synchronized void beforeRemove() throws IOException Import: should not remove a listener during reconnection, the reconnection needs to change the listener list and that will possibly make removal fail. | |
| fetchNotifs | back to summary |
|---|---|
| protected abstract NotificationResult fetchNotifs(long clientSequenceNumber, int maxNotifications, long timeout) throws IOException, ClassNotFoundException Called to fetch notifications from a server. | |
| getListenerId | back to summary |
|---|---|
| public synchronized Integer getListenerId(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException, IOException | |
| getListenerIds | back to summary |
|---|---|
| public synchronized Integer[] getListenerIds(ObjectName name, NotificationListener listener) throws ListenerNotFoundException, IOException | |
| init | back to summary |
|---|---|
| private synchronized void init(boolean reconnected) throws IOException | |
| lostNotifs | back to summary |
|---|---|
| protected abstract void lostNotifs(String message, long number) Used to send out a notification about lost notifs | |
| postReconnection | back to summary |
|---|---|
| public synchronized void postReconnection(ClientListenerInfo[] listenerInfos) throws IOException Called after reconnection is finished.
This method is intended to be called only by a client connector:
| |
| preReconnection | back to summary |
|---|---|
| public synchronized ClientListenerInfo[] preReconnection() throws IOException | |
| removeListenerForMBeanRemovedNotif | back to summary |
|---|---|
| protected abstract void removeListenerForMBeanRemovedNotif(Integer id) throws IOException, InstanceNotFoundException, ListenerNotFoundException | |
| removeNotificationListener | back to summary |
|---|---|
| public synchronized Integer[] removeNotificationListener(ObjectName name, NotificationListener listener) throws ListenerNotFoundException, IOException | |
| removeNotificationListener | back to summary |
|---|---|
| public synchronized Integer removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException, IOException | |
| removeNotificationListener | back to summary |
|---|---|
| public synchronized Integer[] removeNotificationListener(ObjectName name) | |
| setState | back to summary |
|---|---|
| private synchronized void setState(int newState) | |
| terminate | back to summary |
|---|---|
| public synchronized void terminate() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | execute(Runnable command)
Implements java. Executes the given command at some time in the future. |
| command | back to summary |
|---|---|
| private Runnable command | |
| thread | back to summary |
|---|---|
| private Thread thread | |
| LinearExecutor | back to summary |
|---|---|
| private LinearExecutor() | |
| execute | back to summary |
|---|---|
| public synchronized void execute(Runnable command) Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the | |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | dispatchNotification(TargetedNotification tn, Integer myListenerID, Map<Integer, ClientListenerInfo> listeners)
|
| private void | |
| private NotificationResult | |
| private NotificationResult | |
| private boolean | |
| private void | |
| public void | |
| private final ClassLoader | |
| private boolean |
| alreadyLogged | back to summary |
|---|---|
| private volatile boolean alreadyLogged | |
| NotifFetcher | back to summary |
|---|---|
| private NotifFetcher() | |
| dispatchNotification | back to summary |
|---|---|
| pack-priv void dispatchNotification(TargetedNotification tn, Integer myListenerID, Map<Integer, ClientListenerInfo> listeners) | |
| doRun | back to summary |
|---|---|
| private void doRun() | |
| fetchNotifs | back to summary |
|---|---|
| private NotificationResult fetchNotifs() | |
| fetchOneNotif | back to summary |
|---|---|
| private NotificationResult fetchOneNotif() | |
| isRejectedExecutionException | back to summary |
|---|---|
| private boolean isRejectedExecutionException(Exception e) | |
| logOnce | back to summary |
|---|---|
| private void logOnce(String msg, SecurityException x) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| setContextClassLoader | back to summary |
|---|---|
| private final ClassLoader setContextClassLoader(final ClassLoader loader) | |
| shouldStop | back to summary |
|---|---|
| private boolean shouldStop() | |