|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.rmi.RmiSystemOutListener
public class RmiSystemOutListener
A very easy implementation of a 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.
DataEvent,
RmiDataListener| Field Summary | |
|---|---|
private static int |
EXPORTPORT
The port where we want to export. |
| Constructor Summary | |
|---|---|
RmiSystemOutListener()
Constructs a new system out listener that listens to a remote process. |
|
| Method Summary | |
|---|---|
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 |
rmiDataAvailable(DataEvent de)
Processes the data event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int EXPORTPORT
| Constructor Detail |
|---|
public RmiSystemOutListener()
throws RemoteException
RemoteException| Method Detail |
|---|
public void rmiDataAvailable(DataEvent de)
throws RemoteException
rmiDataAvailable in interface RmiDataListenerde - The data event describing the data occured.
RemoteException
public InetAddress getIP()
throws RemoteException
RemoteException
public boolean isConnected()
throws RemoteException
isConnected in interface RmiListenerRemoteException
public void rebind(RmiCaster name,
long timeout)
throws RemoteException
RemoteException
public void disconnect(RmiCaster name)
throws RemoteException
disconnect in interface RmiListenerRemoteException
public String getListenerName()
throws RemoteException
getListenerName in interface RmiEventListenerRemoteException
public static void main(String[] arg)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||