Package 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
Concrete implementation class for abstract ServiceEvent.
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectThe new state of the item, or null if the item has been deleted from the lookup service.protected ServiceIDThe service ID of the item that triggered the event.Fields inherited from class net.jini.core.lookup.ServiceEvent
serviceID, transitionFields inherited from class net.jini.core.event.RemoteEvent
eventID, handback, seqNum, source -
Constructor Summary
ConstructorsConstructorDescriptionRegistrarEvent(Object source, long eventID, long seqNo, MarshalledObject handback, ServiceID serviceID, int transition, Item item) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the serviceID of the item that triggered the event.Returns the new state of the item, or null if the item was deleted from the lookup service.voidsetTransition(int transition) Methods inherited from class net.jini.core.lookup.ServiceEvent
getTransition, toStringMethods inherited from class net.jini.core.event.RemoteEvent
getID, getRegistrationObject, getSequenceNumberMethods inherited from class java.util.EventObject
getSource
-
Field Details
-
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
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).
-
-
Constructor Details
-
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
-
-
Method Details
-
getServiceItem
Returns the new state of the item, or null if the item was deleted from the lookup service.- Specified by:
getServiceItemin classServiceEvent- Returns:
- a ServiceItem object representing the service item value
-
getServiceID
Description copied from class:ServiceEventReturns the serviceID of the item that triggered the event.- Overrides:
getServiceIDin classServiceEvent- Returns:
- a ServiceID object representing the service ID value
-
setTransition
public void setTransition(int transition)
-