|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
public class RmiEvent
An event class to use in RMI or Serializable context. Though the source field in the event object is transient this information is not serialized. This object simply provides an additional method, getSourceName() to allow the serialization of the sources name.
| Field Summary | |
|---|---|
protected InetAddress |
localHost
The IP address of the host where the event was generated. |
protected String |
sourceName
The string representation of the source. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
RmiEvent(Object source)
Constructs a new rmi event object with the specified source. |
|
| Method Summary | |
|---|---|
InetAddress |
getHost()
Returns the IP address of the originating host. |
String |
getSourceName()
Returns the name of the source. |
void |
setSourceName(String srcname)
Sets the name of the data event source. |
String |
toString()
Returns a string decription of this event. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String sourceName
protected InetAddress localHost
| Constructor Detail |
|---|
public RmiEvent(Object source)
sourceName
field to allow object serialization.
| Method Detail |
|---|
public InetAddress getHost()
public String getSourceName()
setSourceName(java.lang.String) method.
public void setSourceName(String srcname)
public String toString()
toString in class EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||