Open SiteSearch 4.1.1
Final

ORG.oclc.jassi
Class UserHistory

java.lang.Object
  |
  +--ORG.oclc.jassi.UserHistory
Direct Known Subclasses:
JaSSIUserHistory, WebZUserHistory

public abstract class UserHistory
extends Object

The UserHistory class is an abstract class that maintains information about user actions within the system. UserHistory can be extended to provide user specific statistics information.

See Also:
WebZUserHistory

Field Summary
 int action
          The type of action.
protected static String[] defaultActions
          Textual names for the actions are the offsets into the array that matches the action integer code.
 long endtime
          End time of the action.
 String peerHostAddress
          The user's Peer-Host address.
static int SHUTDOWN
          Shutdown of a user (1).
static int START
          New user (0).
 int status
          The Status of the action.
protected  String threadId
          String data type containing the threadId that the transaction was issued on.
 long timestamp
          Start time of the action.
 
Constructor Summary
UserHistory(int activity)
          Constructs a UserHistory object using the input action type.
 
Method Summary
 int action()
          Returns the type of action.
abstract  String decodeAction(int action)
          Decodes the action using the input action integer value.
 long endtime()
          Returns the end time.
 int status()
          Returns the status of the action.
 String threadId()
          Returns the threadId of for the history object.
 long timestamp()
          Returns the start time.
 String toString()
          Generate a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultActions

protected static final String[] defaultActions
Textual names for the actions are the offsets into the array that matches the action integer code.

START

public static final int START
New user (0).

SHUTDOWN

public static final int SHUTDOWN
Shutdown of a user (1).

action

public int action
The type of action.

timestamp

public long timestamp
Start time of the action.

endtime

public long endtime
End time of the action.

status

public int status
The Status of the action.

peerHostAddress

public String peerHostAddress
The user's Peer-Host address.

threadId

protected String threadId
String data type containing the threadId that the transaction was issued on.
Constructor Detail

UserHistory

public UserHistory(int activity)
Constructs a UserHistory object using the input action type.
Method Detail

decodeAction

public abstract String decodeAction(int action)
Decodes the action using the input action integer value.
Parameters:
action - the interger value of the action.
Returns:
a String of text associated with the action integer value.

action

public int action()
Returns the type of action.
Returns:
the integer value of the action.

threadId

public String threadId()
Returns the threadId of for the history object.
Returns:
String the threadId value.

timestamp

public long timestamp()
Returns the start time.
Returns:
the start time in milliseconds.

status

public int status()
Returns the status of the action.
Returns:
the integer value of the status.

endtime

public long endtime()
Returns the end time.
Returns:
the end time in milliseconds.

toString

public String toString()
Generate a String representation of this object.
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final