public class RmiSystemErrListener extends Object implements RmiErrorListener
RmiDataListener that can run on a
different host than the data source. Any error event this
listener receives is stripped from its machine sense and the remaining
human-readable part of the error event is piped to System.err.
Note that any RMI process requires on the server side that the rmi-registry is up and running.
ErrorEvent,
RmiErrorListener| Modifier and Type | Field and Description |
|---|---|
private static int |
EXPORTPORT
The port where we want to export.
|
| Constructor and Description |
|---|
RmiSystemErrListener()
Constructs a new system out listener that listens to a remote
process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect(RmiCaster name)
Disconnects the listener.
|
InetAddress |
getIP()
Gets the local host IP-address.
|
String |
getListenerName()
Returns the name of this stream.
|
boolean |
isConnected()
Returns true.
|
static void |
main(String[] arg)
Test purpose only.
|
void |
rebind(RmiCaster name,
long timeout)
Rebinds the listener.
|
void |
rmiErrorOccured(ErrorEvent de)
Processes the data event.
|
private static final int EXPORTPORT
public RmiSystemErrListener()
throws RemoteException
RemoteExceptionpublic void rmiErrorOccured(ErrorEvent de) throws RemoteException
rmiErrorOccured in interface RmiErrorListenerde - The data event describing the data occured.RemoteExceptionpublic InetAddress getIP() throws RemoteException
RemoteExceptionpublic boolean isConnected()
throws RemoteException
isConnected in interface RmiListenerRemoteExceptionpublic void rebind(RmiCaster name, long timeout) throws RemoteException
RemoteExceptionpublic void disconnect(RmiCaster name) throws RemoteException
disconnect in interface RmiListenerRemoteExceptionpublic String getListenerName() throws RemoteException
getListenerName in interface RmiEventListenerRemoteException