com.admc.jamama
Interface Server

All Superinterfaces:
Configurable, java.lang.Runnable
All Known Subinterfaces:
Director
All Known Implementing Classes:
JamamaDirector, MX4JHttpAdaptorConfiguror, Server, TCPProxyServer

public interface Server
extends Configurable, java.lang.Runnable

Jamama Configurable objects which can run. The main Jamama class can manage startup/shutdown of Server objects.

Version:
$Revision: 1.5 $
Author:
Blaine Simpson

Method Summary
 boolean getRun()
          Say whether main thread of this Server is running.
 void restoreRunState()
          Start up server iff server is configured to start automatically.
 void setRun(boolean inRun)
          Start or stop the main thread in this object.
 
Methods inherited from interface com.admc.jamama.Configurable
configure, getConfig, getName
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setRun

public void setRun(boolean inRun)
Start or stop the main thread in this object.

Parameters:
inRun - true to start up thread; false to stop it

getRun

public boolean getRun()
Say whether main thread of this Server is running.

Returns:
Indication of whether Server main thread is running.

restoreRunState

public void restoreRunState()
Start up server iff server is configured to start automatically.