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 IServiceIdentifier
The service.static final int
Service was added event.static final int
Service changed.static final int
Service was removed event.protected int
Event type. -
Constructor Summary
ConstructorsConstructorDescriptionBean constructor.ServiceEvent
(IServiceIdentifier service, int eventtype) Creates the service event. -
Method Summary
Modifier and TypeMethodDescriptionGets the service.int
getType()
Gets the event type.void
setService
(IServiceIdentifier service) Sets the service.void
setType
(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.
-