|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object janus.web.config.PropertyConfig janus.web.service.Service janus.web.service.ServerLoopService
public abstract class ServerLoopService
Server-Dienst, der einen beliebigen ServerLoop
implementiert.
Dies ist eine Basisklasse.
Field Summary | |
---|---|
protected String |
address
Listener-Adresse (Interface) |
static String |
DEFAULT_ADDRESS
|
static int |
DEFAULT_PORT
|
protected ServerLoop |
loop
Der ServerLoop |
protected int |
port
Listener-Port |
protected Class |
serverClass
Die Server-Klasse |
Fields inherited from class janus.web.service.Service |
---|
active, debug, debugStream, DEFAULT_ACTIVE, DEFAULT_DEBUG, DEFAULT_PACKAGE, errorlog, log, status, toStringParameters, TRACE |
Fields inherited from class janus.web.config.PropertyConfig |
---|
prefix, props |
Constructor Summary | |
---|---|
ServerLoopService()
|
Method Summary | |
---|---|
String |
getAddress()
Ermittle die Listener-Adresse |
int |
getPort()
Ermittle den Listener-Port |
ServerLoop |
getServerLoop()
Ermittle den Timeout |
protected void |
init(Properties props,
Class clazz)
Initialisierung aus den Properties. |
protected void |
setToStringParameters(String param)
Setze die Paramter für Service.toString() |
void |
start(Object config)
Starte den Service. |
void |
stop()
Stoppe den Service |
Methods inherited from class janus.web.service.Service |
---|
create, getDebugStream, getName, getStatus, getTraceName, handleException, isActive, isDebug, setField, setTraceName, start, toString |
Methods inherited from class janus.web.config.PropertyConfig |
---|
convertProperties, getBooleanProperty, getBooleanProperty, getBooleanPropertyArray, getBooleanPropertyArray, getIntProperty, getIntProperty, getIntPropertyArray, getIntPropertyArray, getLogger, getPrefix, getProperties, getProperty, getProperty, getPropertyArray, getPropertyArray, init, readFile, setPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String address
public static final String DEFAULT_ADDRESS
public static final int DEFAULT_PORT
protected ServerLoop loop
protected int port
protected Class serverClass
Constructor Detail |
---|
public ServerLoopService()
Method Detail |
---|
public String getAddress()
public int getPort()
public ServerLoop getServerLoop()
protected void init(Properties props, Class clazz) throws IllegalAccessException
init
in class Service
props
- Konfigurationsdatenclazz
- die eigene Klasse
IllegalAccessException
protected void setToStringParameters(String param)
Service.toString()
setToStringParameters
in class Service
public void start(Object config) throws Throwable
config
- Konfigurationsobjekt des Servers
Throwable
public void stop() throws Throwable
stop
in class Service
Throwable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |