Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.lucane.server
Class Service  view Service download Service.java

java.lang.Object
  extended byorg.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.


Constructor Summary
Service()
           
 
Method Summary
 java.lang.String getName()
          Get a service class name
 void init(Server parent)
          Initialize the service.
 void install()
          Install the service.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Method Detail

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.