|
||||||||||
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
net.jini.core.lookup.ServiceEvent
com.sun.jini.reggie.RegistrarEvent
class RegistrarEvent
Concrete implementation class for abstract ServiceEvent.
Field Summary | |
---|---|
protected Object |
item
The new state of the item, or null if the item has been deleted from the lookup service. |
private static long |
serialVersionUID
|
protected ServiceID |
servID
The service ID of the item that triggered the event. |
Fields inherited from class net.jini.core.lookup.ServiceEvent |
---|
serviceID, transition |
Fields inherited from class net.jini.core.event.RemoteEvent |
---|
eventID, handback, seqNum, source |
Constructor Summary | |
---|---|
RegistrarEvent(Object source,
long eventID,
long seqNo,
MarshalledObject handback,
ServiceID serviceID,
int transition,
Item item)
Simple constructor. |
Method Summary | |
---|---|
ServiceID |
getServiceID()
Returns the serviceID of the item that triggered the event. |
ServiceItem |
getServiceItem()
Returns the new state of the item, or null if the item was deleted from the lookup service. |
private void |
readObject(ObjectInputStream in)
Reads the default serializable field value for this instance, followed by the item's service ID encoded as specified by the ServiceID.writeBytes method. |
private void |
writeObject(ObjectOutputStream out)
Writes the default serializable field value for this instance, followed by the item's service ID encoded as specified by the ServiceID.writeBytes method. |
Methods inherited from class net.jini.core.lookup.ServiceEvent |
---|
getTransition, toString |
Methods inherited from class net.jini.core.event.RemoteEvent |
---|
getID, getRegistrationObject, getSequenceNumber |
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 |
---|
private static final long serialVersionUID
protected Object item
protected transient ServiceID servID
Constructor Detail |
---|
public RegistrarEvent(Object source, long eventID, long seqNo, MarshalledObject handback, ServiceID serviceID, int transition, Item item)
source
- the ServiceRegistrar that generated the eventeventID
- the registration eventIDseqNo
- the sequence number of this eventhandback
- the client handbackserviceID
- the serviceID of the item that triggered the eventtransition
- the transition that triggered the eventitem
- the new state of the item, or null if deletedMethod Detail |
---|
public ServiceItem getServiceItem()
getServiceItem
in class ServiceEvent
public ServiceID getServiceID()
ServiceEvent
getServiceID
in class ServiceEvent
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |