|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
net.jini.core.event.RemoteEvent
org.rioproject.event.RemoteServiceEvent
public class RemoteServiceEvent
Wrapper around RemoteEvent to allow user defined event objects.
Since RemoteEvent requires certain parameters to be set in its
constructor this class provides set methods for those parameters. The
user can extend this class, creating their own event.
Developers of service events will extend this class, creating their own event. When the event handler for an event is invoked to fire the event it will fill in the required parameters.
| Field Summary | |
|---|---|
protected Date |
date
The time this event was fired |
| Fields inherited from class net.jini.core.event.RemoteEvent |
|---|
eventID, handback, seqNum, source |
| Constructor Summary | |
|---|---|
RemoteServiceEvent(Object source)
Create a new RemoteServiceEvent. |
|
| Method Summary | |
|---|---|
Date |
getDate()
Get the Date object that represents the time of the event |
void |
setEventID(long eventID)
Set the eventID |
void |
setHandback(MarshalledObject handback)
Set the Handback Object |
void |
setSequenceNumber(long seqNum)
Set the sequence number |
| Methods inherited from class net.jini.core.event.RemoteEvent |
|---|
getID, getRegistrationObject, getSequenceNumber |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Date date
| Constructor Detail |
|---|
public RemoteServiceEvent(Object source)
RemoteServiceEvent. This creates
a remote event with the eventID, seqNum
and handback parameters uninitialized. They are
filled in latter by an EventHandler when the event
is actually sent.
source - event source| Method Detail |
|---|
public void setEventID(long eventID)
eventID - The eventID for the RemoteEventpublic void setSequenceNumber(long seqNum)
seqNum - The sequence number of the RemoteEventpublic void setHandback(MarshalledObject handback)
handback - A MarshalledObject providing a handback mechanism
for the RemoteEventpublic Date getDate()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||