org.tranche.servers
Class CommandLineServerListener

java.lang.Object
  extended by org.tranche.servers.CommandLineServerListener
All Implemented Interfaces:
RemoteTrancheServerListener

public class CommandLineServerListener
extends java.lang.Object
implements RemoteTrancheServerListener

Prints out all server communication to a given PrintStream.

Author:
James "Augie" Hill - augman85@gmail.com

Constructor Summary
CommandLineServerListener(java.io.PrintStream out)
           
 
Method Summary
 void downMessageCompleted(ServerMessageDownEvent smde)
          A notification that an inbound message has been completed.
 void downMessageFailed(ServerMessageDownEvent smde)
          A notification that an inbound message has failed.
 void downMessageProgress(ServerMessageDownEvent smde)
          A notification that an inbound message is being downloaded.
 void downMessageStarted(ServerMessageDownEvent smde)
          A notification that an inbound message has been started.
 void requestCreated(ServerCallbackEvent sce)
          A notification that a server request has been created.
 void requestFailed(ServerCallbackEvent sce)
          A notification that a server request has failed.
 void requestFulfilled(ServerCallbackEvent sce)
          A notification that a server request has been fulfilled by the server.
 void serverBanned(ServerEvent se)
          A notification that a server has been banned.
 void serverConnect(ServerEvent se)
          A notification that a server has been connected to.
 void serverUnbanned(ServerEvent se)
          A notification that a server has been unbanned.
 void upMessageCreated(ServerMessageUpEvent smue)
          A notification that an outbound message has been created.
 void upMessageFailed(ServerMessageUpEvent smue)
          A notification that an outbound message has failed.
 void upMessageSent(ServerMessageUpEvent smue)
          A notification that an outbound message has been sent.
 void upMessageStarted(ServerMessageUpEvent smue)
          A notification that an outbound message has started to be sent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineServerListener

public CommandLineServerListener(java.io.PrintStream out)
Parameters:
out -
Method Detail

serverConnect

public void serverConnect(ServerEvent se)

A notification that a server has been connected to.

Specified by:
serverConnect in interface RemoteTrancheServerListener
Parameters:
se -

serverBanned

public void serverBanned(ServerEvent se)

A notification that a server has been banned.

Specified by:
serverBanned in interface RemoteTrancheServerListener
Parameters:
se -

serverUnbanned

public void serverUnbanned(ServerEvent se)

A notification that a server has been unbanned.

Specified by:
serverUnbanned in interface RemoteTrancheServerListener
Parameters:
se -

upMessageCreated

public void upMessageCreated(ServerMessageUpEvent smue)

A notification that an outbound message has been created.

Specified by:
upMessageCreated in interface RemoteTrancheServerListener
Parameters:
smue -

upMessageStarted

public void upMessageStarted(ServerMessageUpEvent smue)

A notification that an outbound message has started to be sent.

Specified by:
upMessageStarted in interface RemoteTrancheServerListener
Parameters:
smue -

upMessageSent

public void upMessageSent(ServerMessageUpEvent smue)

A notification that an outbound message has been sent.

Specified by:
upMessageSent in interface RemoteTrancheServerListener
Parameters:
smue -

upMessageFailed

public void upMessageFailed(ServerMessageUpEvent smue)

A notification that an outbound message has failed.

Specified by:
upMessageFailed in interface RemoteTrancheServerListener
Parameters:
smue -

downMessageStarted

public void downMessageStarted(ServerMessageDownEvent smde)

A notification that an inbound message has been started.

Specified by:
downMessageStarted in interface RemoteTrancheServerListener
Parameters:
smde -

downMessageProgress

public void downMessageProgress(ServerMessageDownEvent smde)

A notification that an inbound message is being downloaded.

Specified by:
downMessageProgress in interface RemoteTrancheServerListener
Parameters:
smde -

downMessageCompleted

public void downMessageCompleted(ServerMessageDownEvent smde)

A notification that an inbound message has been completed.

Specified by:
downMessageCompleted in interface RemoteTrancheServerListener
Parameters:
smde -

downMessageFailed

public void downMessageFailed(ServerMessageDownEvent smde)

A notification that an inbound message has failed.

Specified by:
downMessageFailed in interface RemoteTrancheServerListener
Parameters:
smde -

requestCreated

public void requestCreated(ServerCallbackEvent sce)

A notification that a server request has been created.

Specified by:
requestCreated in interface RemoteTrancheServerListener
Parameters:
sce -

requestFulfilled

public void requestFulfilled(ServerCallbackEvent sce)

A notification that a server request has been fulfilled by the server.

Specified by:
requestFulfilled in interface RemoteTrancheServerListener
Parameters:
sce -

requestFailed

public void requestFailed(ServerCallbackEvent sce)

A notification that a server request has failed.

Specified by:
requestFailed in interface RemoteTrancheServerListener
Parameters:
sce -


This code is free for use both commercially and non-commercially as stated in the project's license