public abstract class SubsystemServer
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected SessionChannelServer |
session |
Constructor and Description |
---|
SubsystemServer()
Creates a new SubsystemServer object.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
StartStopState |
getState() |
protected abstract void |
onMessageReceived(SubsystemMessage msg) |
protected void |
registerMessage(int messageId,
java.lang.Class implementor) |
void |
run() |
protected void |
sendMessage(SubsystemMessage msg) |
void |
setSession(SessionChannelServer session) |
void |
start() |
void |
stop() |
protected SessionChannelServer session
public void setSession(SessionChannelServer session)
session
- public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public void run()
run
in interface java.lang.Runnable
public void start()
public void stop()
public StartStopState getState()
protected abstract void onMessageReceived(SubsystemMessage msg)
msg
- protected void registerMessage(int messageId, java.lang.Class implementor)
messageId
- implementor
- protected void sendMessage(SubsystemMessage msg)
msg
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.