net.jetrix
Interface Service

All Known Subinterfaces:
Listener
All Known Implementing Classes:
AbstractService, ClientListener, CronService, GhostbusterService, HttpListener, IRCListener, PublishingService, ScheduledService, TetrinetListener, TSpecListener, VersionService

public interface Service

A service running in background.

Since:
0.2
Version:
$Revision: 545 $, $Date: 2005-01-05 18:16:04 +0100 (mer., 05 janv. 2005) $
Author:
Emmanuel Bourg

Method Summary
 String getName()
          Return the name of the service.
 boolean isAutoStart()
          Tell if the service is started automatically on server startup.
 boolean isRunning()
          Tell if the service is currently running.
 void setAutoStart(boolean autoStart)
          Set the auto start status.
 void start()
          Start the service.
 void stop()
          Stop the service.
 

Method Detail

getName

String getName()
Return the name of the service.


start

void start()
Start the service.


stop

void stop()
Stop the service.


isRunning

boolean isRunning()
Tell if the service is currently running.


isAutoStart

boolean isAutoStart()
Tell if the service is started automatically on server startup.


setAutoStart

void setAutoStart(boolean autoStart)
Set the auto start status.



Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.