QuickServer
v1.4.7

org.quickserver.net
Interface Service

All Known Implementing Classes:
QuickServer

public interface Service

This interface is for any class that would like to follow Service Configurator Pattern.

Thanks to Markus Elfring for his email.

Since:
1.2
Author:
Akshathkumar Shetty

Field Summary
static int INIT
           
static int RUNNING
           
static int STOPPED
           
static int SUSPENDED
           
static int UNKNOWN
          Un initialised or unknown
 
Method Summary
 java.lang.Throwable getServiceError()
          Returns service error if any.
 int getServiceState()
          Returns the state of the process As any constant of Service interface.
 java.lang.String info()
          Information about the service, recommended format given below.
 boolean initService(java.lang.Object[] config)
          Initialise and create the service
 boolean resumeService()
          Resume the service
 boolean startService()
          Start the service
 boolean stopService()
          Stop the service
 boolean suspendService()
          Suspend the service
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Un initialised or unknown

See Also:
Constant Field Values

STOPPED

public static final int STOPPED
See Also:
Constant Field Values

INIT

public static final int INIT
See Also:
Constant Field Values

SUSPENDED

public static final int SUSPENDED
See Also:
Constant Field Values

RUNNING

public static final int RUNNING
See Also:
Constant Field Values
Method Detail

initService

public boolean initService(java.lang.Object[] config)
Initialise and create the service


startService

public boolean startService()
Start the service


stopService

public boolean stopService()
Stop the service


suspendService

public boolean suspendService()
Suspend the service


resumeService

public boolean resumeService()
Resume the service


info

public java.lang.String info()
Information about the service, recommended format given below.

<<ServiceName>> v<<Version_No>>\n
<<IP_ADDRESS>> <<PORT_NO>>\n
<<ANY OTHET INFORMATION>>


getServiceState

public int getServiceState()
Returns the state of the process As any constant of Service interface.


getServiceError

public java.lang.Throwable getServiceError()
Returns service error if any.

Since:
1.4.7

QuickServer
v1.4.7

Copyright © 2003-2006 QuickServer.org