java.lang.Object
org.lucane.server.Service
- public abstract class Service
- extends java.lang.Object
This interface has to be implemented by a service in order to run
inside the server as an internal service and not requiring opening a new port
and running a distinct processus.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Service
public Service()
getName
public java.lang.String getName()
- Get a service class name
process
public abstract void process(org.lucane.common.ObjectConnection oc,
org.lucane.common.Message message)
- Called each time a request for this service has to be treated.
init
public void init(Server parent)
- Initialize the service.
Called every time the server is started.
install
public void install()
- Install the service.
Only called the first time a service is initialized.