An interface that should be implemented by classes that are intended to be Node level JCSP.NET services.
Services should be initialized, then started and then stopped.
Type | Name and description |
---|---|
ServiceUserObject |
getUserObject() Obtains a ServiceUserObject from a Service.
|
boolean |
init(ServiceSettings settings) Initialize the service with the specified service settings. |
boolean |
isRunning() Indicates whether or not a service is running. |
boolean |
start() This should start the service when called and return. |
boolean |
stop() Should stop the service and then return. |
Obtains a ServiceUserObject
from a Service.
This allows Services to expose functionality to users that
it does not want to be able to access admin features.
ServiceUserObject
.Initialize the service with the specified service settings.
true
iff the service has been initialized.settings
- The settings used by the service.Indicates whether or not a service is running.
true
iff the service is currently running.This should start the service when called and return.
true
iff the service has successfully started.Should stop the service and then return.
true
iff the service has successfully stopped.