All Packages This Package Class Hierarchy Class Search Index
Class com.syncbuilder.service.ServiceStateEvent
java.lang.Object
|
+----java.util.EventObject
|
+----com.syncbuilder.service.ServiceStateEvent
public class ServiceStateEvent
extends java.util.EventObject
{
// Fields 3
public static final int RUNNING;
public static final int STOPPED;
public static final int SUSPENDED;
// Constructors 1
public ServiceStateEvent(Object, Object, int, ServiceMessage);
// Methods 5
public ServiceMessage getMessage();
public Object getParent();
public int getState();
public String getStateName();
public String toString();
}
Events of this kind are used by a service to report its state.
They should be sent out when the state changes, or when the service
is asked to report its state.
ServiceStateEvents are required to contain their source, and they
may also contain a parent. The parent is used in a hierarchy
of services, where a sub-service wants to express that it belongs to
a super-service, by specifying the super-service as its parent.
This should make it easier to develop a hierarchical listing of
service states.
Last but not least, ServiceStateEvents may contain a message, which
describes the circumstances more closely.
As you can tell from the choice of available methods, ServiceStateEvents
are immutable.
public static final int RUNNING
public static final int STOPPED
public static final int SUSPENDED
public ServiceStateEvent(Object source,
Object parent,
int state,
ServiceMessage msg)
Construct an event with the specified parent (super-service), and the
specified ServiceMessage.
public Object getParent()
public int getState()
public String getStateName()
public ServiceMessage getMessage()
public String toString()
- Overrides:
- toString in class EventObject
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7