com.sun.jini.reggie
Class RegistrarEvent
java.lang.Object
java.util.EventObject
net.jini.core.event.RemoteEvent
net.jini.core.lookup.ServiceEvent
com.sun.jini.reggie.RegistrarEvent
- All Implemented Interfaces:
- Serializable
public class RegistrarEvent
- extends ServiceEvent
Concrete implementation class for abstract ServiceEvent.
- Author:
- Sun Microsystems, Inc.
- See Also:
- Serialized Form
Field Summary |
protected Object |
item
The new state of the item, or null if the item has been deleted from the
lookup service. |
protected ServiceID |
servID
The service ID of the item that triggered the event. |
item
protected Object item
- The new state of the item, or null if the item has been deleted from the
lookup service. This is either a ServiceItem or an Item (to be converted
to a ServiceItem when unmarshalled).
servID
protected transient ServiceID servID
- The service ID of the item that triggered the event. This field is used
instead of the inherited serviceID field (which is set to null) and is
written directly as a 128-bit value in order to avoid potential codebase
annotation loss (see bug 4745728).
RegistrarEvent
public RegistrarEvent(Object source,
long eventID,
long seqNo,
MarshalledObject handback,
ServiceID serviceID,
int transition,
Item item)
- Simple constructor.
- Parameters:
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 deleted
getServiceItem
public ServiceItem getServiceItem()
- Returns the new state of the item, or null if the item was deleted from
the lookup service.
- Specified by:
getServiceItem
in class ServiceEvent
- Returns:
- a ServiceItem object representing the service item value
getServiceID
public ServiceID getServiceID()
- Description copied from class:
ServiceEvent
- Returns the serviceID of the item that triggered the event.
- Overrides:
getServiceID
in class ServiceEvent
- Returns:
- a ServiceID object representing the service ID value
Copyright © GigaSpaces.