rl.servermanager
Class ServerManager
java.lang.Object
rl.servermanager.ServerManager
- All Implemented Interfaces:
- CommandProcessorListener
public class ServerManager
- extends java.lang.Object
- implements CommandProcessorListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServerManager
public ServerManager()
main
public static void main(java.lang.String[] args)
- Parameters:
args -
Connect
public void Connect(java.lang.String ServerName,
int ServerPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
addConnectionListener
public void addConnectionListener(ConnectionListener l)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeConnectionListener
public void removeConnectionListener(ConnectionListener l)
throws java.lang.Exception
- Throws:
java.lang.Exception
disconnect
public void disconnect()
setParticipant
public void setParticipant(Participant p)
getParticipant
public Participant getParticipant()
disconnected
public void disconnected(Connection c)
- Specified by:
disconnected in interface CommandProcessorListener
addListener
public void addListener(ServerManagerListener l)
removeListener
public void removeListener(ServerManagerListener l)
updateServerStatus
public void updateServerStatus(Command c)
askAvailableGameTypes
public void askAvailableGameTypes()
askAvailableGames
public void askAvailableGames()
askServerStatus
public void askServerStatus()
shutdownServer
public void shutdownServer()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
registerHandler
public void registerHandler(int command,
CommandHandler ch)