| |
|
| java.lang.Object java.lang.Thread com.tagtraum.framework.server.Handler
All known Subclasses: com.tagtraum.framework.server.UDPHandler, com.tagtraum.framework.server.TCPHandler,
Field Summary | |
Log | log Log that belongs to this Handler . | boolean | ready Flag that indicates whether the Handler is ready for connections. | protected I_Service | service Service that belongs to this Handler . | long | serviceStart Time the service-method was entered, or -1 if the service method
is not executed at the moment. | protected boolean | stopped Flag that indicates whether the Handler was stopped. | public static String | vcid |
log | Log log(Code) | | Log that belongs to this Handler .
|
ready | boolean ready(Code) | | Flag that indicates whether the Handler is ready for connections.
|
service | protected I_Service service(Code) | | Service that belongs to this Handler .
|
serviceStart | long serviceStart(Code) | | Time the service-method was entered, or -1 if the service method
is not executed at the moment.
|
stopped | protected boolean stopped(Code) | | Flag that indicates whether the Handler was stopped.
|
destroy | public synchronized void destroy()(Code) | | Stops this Handler and frees all used resources.
|
getServiceAttribute | public Object getServiceAttribute(String key)(Code) | | Proxy-method that enables the easier access to service attributes.
Parameters: key - key of the wanted attribute the attribute or null |
init | public void init(I_Service aService) throws HandlerException(Code) | | Initializes this Handler . After calling this
method the Handler has to be in a state that
is "ready to use".
When this methos is overridden super.init(I_Service)
should be called.
Parameters: aService - Service, that this Handler belongs to. exception: HandlerException - if something goes wrong |
service | abstract public void service()(Code) | | This is the central method that should be overridden
in order to implement a real service.
It is called after the socket was set.
|
setServiceAttribute | public void setServiceAttribute(String key, Object value)(Code) | | Proxy-method that enables the easier access to service attributes.
Attribute erm�glicht.
Parameters: key - key of the wanted attribute Parameters: value - the attribute |
|
|
|