|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventRelay
This interface is used to specify a way to receive
notifications from a remote MBean server and then to forward the notifications
to an EventClient.
| Modifier and Type | Method and Description |
|---|---|
String |
getClientId()
Returns an identifier that is used by this EventRelay to identify
the client when communicating with the EventClientDelegateMBean. |
void |
setEventReceiver(EventReceiver eventReceiver)
This method is called by EventClient to register a callback
to receive notifications from an EventClientDelegateMBean object. |
void |
stop()
Stops receiving and forwarding notifications and performs any necessary cleanup. |
| Method Detail |
|---|
String getClientId()
throws IOException
EventRelay to identify
the client when communicating with the EventClientDelegateMBean.
This identifier is obtained by calling
EventClientDelegateMBean.addClient.
It is the EventRelay that calls EventClientDelegateMBean to obtain
the client identifier because it is the EventRelay that decides
how to get notifications from the EventClientDelegateMBean,
by creating the appropriate EventForwarder.
IOException - If an I/O error occurs when communicating with
the EventClientDelegateMBean.void setEventReceiver(EventReceiver eventReceiver)
EventClient to register a callback
to receive notifications from an EventClientDelegateMBean object.
A null value is allowed, which means that the EventClient suspends
reception of notifications, so that the EventRelay can decide to stop receiving
notifications from its EventForwarder.
eventReceiver - An EventClient callback to receive
events.
void stop()
throws IOException
EventClient will never
call any other methods of this object.
IOException - If an I/O exception appears.EventClient.close()
|
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.