forward.server
Interface IServerManager

All Known Implementing Classes:
LocalForwarder, ServerSocketManager, SkypeServerManager

public interface IServerManager

This interface defines the methods for a ServerManager. A ServerManager manages the server part of the forwarding code, e.g. a ServerSocket where clients can connect to.


Method Summary
 java.lang.Object getId()
          Returns the ID of this ServerManager.
 void shutdown()
          This method must be called, if the ServerManager shall come to an end.
 void startServerManager(ForwardScheduler a_parentScheduler)
          This starts the ServerManager.
 

Method Detail

getId

java.lang.Object getId()
Returns the ID of this ServerManager. This ID must be unique for the instance of ServerManager within all possible ServerManagers, e.g. a String of the type "CLASSNAME%INSTANCE_ID" would be possible.

Returns:
A unique identifier Object for the ServerManager.

startServerManager

void startServerManager(ForwardScheduler a_parentScheduler)
                        throws java.lang.Exception
This starts the ServerManager.

Parameters:
a_parentScheduler - The ForwardScheduler where all new connections are reported to.
Throws:
java.lang.Exception

shutdown

void shutdown()
This method must be called, if the ServerManager shall come to an end. This method should block until everything is down (e.g. open sockets, internal threads, ...).