Class ServiceEvent
java.lang.Object
jadex.providedservice.impl.search.ServiceEvent
Service event used if the service registry is used in event mode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IServiceIdentifierThe service.static final intService was added event.static final intService changed.static final intService was removed event.protected intEvent type. -
Constructor Summary
ConstructorsConstructorDescriptionBean constructor.ServiceEvent(IServiceIdentifier service, int eventtype) Creates the service event. -
Method Summary
Modifier and TypeMethodDescriptionGets the service.intgetType()Gets the event type.voidsetService(IServiceIdentifier service) Sets the service.voidsetType(int type) Sets the event type.toString()Get the string representation.
-
Field Details
-
SERVICE_ADDED
public static final int SERVICE_ADDEDService was added event.- See Also:
-
SERVICE_REMOVED
public static final int SERVICE_REMOVEDService was removed event.- See Also:
-
SERVICE_CHANGED
public static final int SERVICE_CHANGEDService changed.- See Also:
-
type
protected int typeEvent type. -
service
The service.
-
-
Constructor Details
-
ServiceEvent
public ServiceEvent()Bean constructor. -
ServiceEvent
Creates the service event.- Parameters:
service- The affected service.eventtype- The event type.
-
-
Method Details
-
getType
public int getType()Gets the event type.- Returns:
- The event type.
-
setType
public void setType(int type) Sets the event type.- Parameters:
eventtype- The event type.
-
getService
Gets the service.- Returns:
- The service.
-
setService
Sets the service.- Parameters:
service- The service.
-
toString
Get the string representation.
-