|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.event.RMIPushEventForwarder
public class RMIPushEventForwarder extends Object implements EventForwarder
This class is used by RMIPushEventRelay. When
RMIPushEventRelay calls EventClientDelegateMBean.addClient(String, Object[], String[]) to get a new
client identifier, it uses this class name as the
first argument to ask EventClientDelegateMBean to create an object of
this class.
Then EventClientDelegateMBean forwards client notifications
to this object. This object then continues forwarding the notifications
to the RMIPushEventRelay.
| Constructor and Description |
|---|
RMIPushEventForwarder(RMIPushServer receiver,
int bufferSize)
Creates a new instance of RMIPushEventForwarder. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Informs the EventForwarder to shut down. |
void |
forward(Notification n,
Integer listenerId)
Forwards a notification. |
void |
setClientId(String clientId)
Sets an event client identifier created by EventClientDelegateMBean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RMIPushEventForwarder(RMIPushServer receiver,
int bufferSize)
RMIPushEventForwarder.
receiver - An RMI stub exported to receive notifications
from this object for its RMIPushEventRelay.bufferSize - The maximum number of notifications to store
while waiting for the last remote send to complete.| Method Detail |
|---|
public void forward(Notification n,
Integer listenerId)
EventForwarder
forward in interface EventForwardern - The notification to be forwarded to a remote listener.listenerId - The identifier of the listener to receive the notification.public void close()
EventForwarderEventForwarder to shut down.
After this method is called, any call to the method
forward(Notification, Integer) may get an IOException.
close in interface EventForwarderpublic void setClientId(String clientId)
EventForwarderEventClientDelegateMBean.
This method will be called just after this EventForwarder
is constructed and before calling the forward method to forward any
notifications.
setClientId in interface EventForwarder
|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.