org.apache.jetspeed.statistics.impl
Class UserStatsImpl
java.lang.Object
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
username
private String username
numberOfSessions
private int numberOfSessions
inetAddress
private InetAddress inetAddress
UserStatsImpl
public UserStatsImpl()
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.