org.apache.jetspeed.statistics.impl
Class UserStatsImpl

java.lang.Object
  extended by org.apache.jetspeed.statistics.impl.UserStatsImpl
All Implemented Interfaces:
Serializable, org.apache.jetspeed.statistics.UserStats

public class UserStatsImpl
extends Object
implements org.apache.jetspeed.statistics.UserStats

UserStatsImpl

Version:
$Id: $
Author:
Chris Schaefer , David Sean Taylor
See Also:
Serialized Form

Field Summary
private  InetAddress inetAddress
           
private  int numberOfSessions
           
private  String username
           
 
Constructor Summary
UserStatsImpl()
           
 
Method Summary
 boolean equals(Object obj)
          Checks whether these two object match.
 InetAddress getInetAddress()
           
 int getNumberOfSessions()
           
 String getUsername()
           
 void setInetAddress(InetAddress inetAddress)
           
 void setInetAddressFromIp(String ip)
           
 void setNumberOfSession(int number)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

private String username

numberOfSessions

private int numberOfSessions

inetAddress

private InetAddress inetAddress
Constructor Detail

UserStatsImpl

public UserStatsImpl()
Method Detail

getNumberOfSessions

public int getNumberOfSessions()
Specified by:
getNumberOfSessions in interface org.apache.jetspeed.statistics.UserStats

getUsername

public String getUsername()
Specified by:
getUsername in interface org.apache.jetspeed.statistics.UserStats

setNumberOfSession

public void setNumberOfSession(int number)
Specified by:
setNumberOfSession in interface org.apache.jetspeed.statistics.UserStats

setUsername

public void setUsername(String username)
Specified by:
setUsername in interface org.apache.jetspeed.statistics.UserStats

getInetAddress

public InetAddress getInetAddress()
Specified by:
getInetAddress in interface org.apache.jetspeed.statistics.UserStats

setInetAddress

public void setInetAddress(InetAddress inetAddress)
Specified by:
setInetAddress in interface org.apache.jetspeed.statistics.UserStats

setInetAddressFromIp

public void setInetAddressFromIp(String ip)
                          throws UnknownHostException
Specified by:
setInetAddressFromIp in interface org.apache.jetspeed.statistics.UserStats
Throws:
UnknownHostException

equals

public boolean equals(Object obj)
Checks whether these two object match. Simple check for just the ipaddresse and username.

Overrides:
equals in class Object
Parameters:
Object - instanceof UserStats


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