org.tranche.server
Class GetActivityLogEntriesItem

java.lang.Object
  extended by org.tranche.server.ServerItem
      extended by org.tranche.server.GetActivityLogEntriesItem

public class GetActivityLogEntriesItem
extends ServerItem

Server item: get activity log entries within a time frame.

Author:
Bryan Smith - bryanesmith@gmail.com, James "Augie" Hill - augman85@gmail.com

Field Summary
 
Fields inherited from class org.tranche.server.ServerItem
commandName, server
 
Constructor Summary
GetActivityLogEntriesItem(Server server)
           
 
Method Summary
 void doAction(java.io.InputStream in, java.io.OutputStream out, java.lang.String clientIP)
          Handle the server's action.
static Activity[] readResponse(java.io.InputStream in)
           
static void writeRequest(boolean writeHeader, long startTimestamp, long endTimestamp, int limit, byte mask, java.io.OutputStream out)
           
 
Methods inherited from class org.tranche.server.ServerItem
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetActivityLogEntriesItem

public GetActivityLogEntriesItem(Server server)
Parameters:
server -
Method Detail

doAction

public final void doAction(java.io.InputStream in,
                           java.io.OutputStream out,
                           java.lang.String clientIP)
                    throws java.lang.Exception
Description copied from class: ServerItem

Handle the server's action.

Specified by:
doAction in class ServerItem
Parameters:
in - The input stream
out - The output stream
clientIP - So the transaction can be logged with client IP address.
Throws:
java.lang.Exception

writeRequest

public static final void writeRequest(boolean writeHeader,
                                      long startTimestamp,
                                      long endTimestamp,
                                      int limit,
                                      byte mask,
                                      java.io.OutputStream out)
                               throws java.lang.Exception
Parameters:
writeHeader -
startTimestamp -
endTimestamp -
limit -
mask -
out -
Throws:
java.lang.Exception

readResponse

public static final Activity[] readResponse(java.io.InputStream in)
                                     throws java.lang.Exception
Parameters:
in -
Returns:
Throws:
java.lang.Exception


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