org.apache.jetspeed.statistics.impl
Class LogRecord

java.lang.Object
  extended by org.apache.jetspeed.statistics.impl.LogRecord
Direct Known Subclasses:
PageLogRecord, PortletLogRecord, UserLogRecord

public abstract class LogRecord
extends Object

LogRecord

Abstract class that holds the fields of a log entry generated by implementations of the PortalStatistics interface.

Some of the fields are common to all types of log entries; those fields are implemented in LogRecord. The fields that are specific to a particular type of log entry need to be implemented in a class that extends LogRecord.

Version:
$Id: LogRecord.java 188420 2005-03-23 22:25:50Z rdk $
Author:
Richard D. Klein

Field Summary
protected  String ipAddress
           
protected  String logType
           
protected  long msElapsedTime
           
protected  int status
           
protected  Timestamp timeStamp
           
static String TYPE_PAGE
           
static String TYPE_PORTLET
           
static String TYPE_USER
           
protected  String userName
           
 
Constructor Summary
LogRecord(String logType)
           
 
Method Summary
 String getIpAddress()
           
 String getLogType()
           
 long getMsElapsedTime()
           
 int getStatus()
           
 Timestamp getTimeStamp()
           
 String getUserName()
           
 void setIpAddress(String ipAddress)
           
 void setLogType(String logType)
           
 void setMsElapsedTime(long msElapsedTime)
           
 void setStatus(int status)
           
 void setTimeStamp(Timestamp timeStamp)
           
 void setUserName(String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_PORTLET

public static final String TYPE_PORTLET
See Also:
Constant Field Values

TYPE_PAGE

public static final String TYPE_PAGE
See Also:
Constant Field Values

TYPE_USER

public static final String TYPE_USER
See Also:
Constant Field Values

ipAddress

protected String ipAddress

logType

protected String logType

msElapsedTime

protected long msElapsedTime

status

protected int status

timeStamp

protected Timestamp timeStamp

userName

protected String userName
Constructor Detail

LogRecord

public LogRecord(String logType)
Method Detail

getIpAddress

public String getIpAddress()
Returns:
Returns the ipAddress.

setIpAddress

public void setIpAddress(String ipAddress)
Parameters:
ipAddress - The ipAddress to set.

getLogType

public String getLogType()
Returns:
Returns the logType.

setLogType

public void setLogType(String logType)
Parameters:
logType - The logType to set.

getMsElapsedTime

public long getMsElapsedTime()
Returns:
Returns the msElapsedTime.

setMsElapsedTime

public void setMsElapsedTime(long msElapsedTime)
Parameters:
msElapsedTime - The msElapsedTime to set.

getStatus

public int getStatus()
Returns:
Returns the status.

setStatus

public void setStatus(int status)
Parameters:
status - The status to set.

getTimeStamp

public Timestamp getTimeStamp()
Returns:
Returns the timeStamp.

setTimeStamp

public void setTimeStamp(Timestamp timeStamp)
Parameters:
timeStamp - The timeStamp to set.

getUserName

public String getUserName()
Returns:
Returns the userName.

setUserName

public void setUserName(String userName)
Parameters:
userName - The userName to set.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.