public interface DisconnectMonitor
DisconnectEvent
s. The DisconnectMonitor
can be obtained by looking up
java:comp/weblogic/DisconnectMonitor
name in the local
JNDI tree. Every time the server, on which the remote object is
hosted, is disconnected, a DisconnectEvent
is delivered
using the DisconnectListener.onDisconnect(weblogic.rmi.extensions.DisconnectEvent)
method on the
registered DisconnectListener
.DisconnectListener
,
DisconnectEvent
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
JNDI_NAME |
A symbolic reference to "weblogic.DisconnectMonitor"
|
Modifier and Type | Method | Description |
---|---|---|
void |
addDisconnectListener(java.rmi.Remote remoteObject,
DisconnectListener listener) |
Registers
DisconnectListener with the
DisconnectMonitor which will monitor when the remote
server hosting the remoteObject is disconnected. |
void |
removeDisconnectListener(java.rmi.Remote remoteObject,
DisconnectListener listener) |
Removes the
DisconnectListener registered on the
remoteObject. |
static final java.lang.String JNDI_NAME
void addDisconnectListener(java.rmi.Remote remoteObject, DisconnectListener listener) throws DisconnectMonitorUnavailableException
DisconnectListener
with the
DisconnectMonitor
which will monitor when the remote
server hosting the remoteObject is disconnected. A DisconnectEvent
is delivered to the DisconnectListener
.remoteObject
- listener
- Object implementing DisconnectListener
DisconnectMonitorUnavailableException
- Throws an exception
if it was unable to find a suitable
DisconnectMonitor
for this remoteObject.void removeDisconnectListener(java.rmi.Remote remoteObject, DisconnectListener listener) throws DisconnectMonitorUnavailableException
DisconnectListener
registered on the
remoteObject.remoteObject
- listener
- DisconnectMonitorUnavailableException
- Throws an exception
if it was unable to find a suitable
DisconnectMonitor
for this remoteObject.