Class JDPJaggUser
java.lang.Object
|
+----JDPJaggUser
- public class JDPJaggUser
- extends Object
Class JDPJaggUser represents a user making request to JaggServer.
-
ACTIVE
- User connected and active Status.
-
DISCONNECTED
- User disconnected Status.
-
FAIL
- Last request failed.
-
IDLE
- User connected and idle Status.
-
SUCCESS
- Last request successful.
-
UNKNOWN
- Last request failed.
-
JDPJaggUser(InetAddress, int, String)
- Creates a Jagg User with the specified InetAddress and JDP userid.
-
addActiveRequest(JaggServerCxn)
- Add the active request to the list of active requests.
-
getActiveRequests()
- Get the handles to the active request for this user.
-
getBytesReceived()
- Get the total number of bytes received.
-
getBytesTransmitted()
- Get the total number of bytes transmitted.
-
getIdleFor()
- Get the amount of time the user has been idle.
-
getInetAddress()
- Get the InetAddress to the user.
-
getJDPSystem()
- Get the JDP system that the user is logged in to.
-
getJDPUser()
- Get the JDP userid of this user.
-
getLastConnectionDuration()
- Get the last connection duration of this user.
-
getLastConnectionEnd()
- Get the last connection end date/time of this user.
-
getLastConnectionStart()
- Get the last connection start date/time of this user.
-
getTotalRequests()
- Get the total number of requests.
-
getUserStatus()
- Get the status of this user.
-
incrementBytesReceived(long)
- Increment the total number of bytes received.
-
incrementBytesTransmitted(long)
- Increment the total number of bytes transmitted.
-
incrementTotalRequest()
- Increment the total number of requests.
-
removeActiveRequest(JaggServerCxn)
- Remove the active request from the list of active requests.
-
setInetAddress(InetAddress)
- Set the InetAddress to the user.
-
setJDPSystem(String)
- Set the JDP system that the user is logged in to.
-
setJDPUser(int)
- Set the JDP userid of this user.
-
setLastConnectionDuration(long)
- Set the last connection duration of this user.
-
setLastConnectionEnd(Date)
- Set the last connection end date/time of this user.
-
setLastConnectionStart(Date)
- Set the last connection start date/time of this user.
-
setUserStatus(int)
- Set the status of this user.
ACTIVE
public static final int ACTIVE
- User connected and active Status.
IDLE
public static final int IDLE
- User connected and idle Status.
DISCONNECTED
public static final int DISCONNECTED
- User disconnected Status.
SUCCESS
public static final int SUCCESS
- Last request successful.
FAIL
public static final int FAIL
- Last request failed.
UNKNOWN
public static final int UNKNOWN
- Last request failed.
JDPJaggUser
public JDPJaggUser(InetAddress address,
int userid,
String jdpSystem)
- Creates a Jagg User with the specified InetAddress and JDP userid.
- Parameters:
- address - the InetAddress of the user.
- userid - the JDP userid.
- jdpSystem - the JDP system that the user is logged in to.
getInetAddress
public InetAddress getInetAddress()
- Get the InetAddress to the user.
- Returns:
- the InetAddress to the user.
setInetAddress
public void setInetAddress(InetAddress address)
- Set the InetAddress to the user.
- Parameters:
- address - the InetAddress to the user.
getActiveRequests
public Vector getActiveRequests()
- Get the handles to the active request for this user.
- Returns:
- the handles to the active request for this user.
addActiveRequest
public void addActiveRequest(JaggServerCxn request)
- Add the active request to the list of active requests.
- Parameters:
- request - the JaggServer request.
removeActiveRequest
public void removeActiveRequest(JaggServerCxn request)
- Remove the active request from the list of active requests.
- Parameters:
- request - the JaggServer request.
getUserStatus
public int getUserStatus()
- Get the status of this user.
- Returns:
- the status of this user.
setUserStatus
public void setUserStatus(int status)
- Set the status of this user.
- Parameters:
- status - the status of this user.
getJDPUser
public int getJDPUser()
- Get the JDP userid of this user.
- Returns:
- the JDP userid of this user.
setJDPUser
public void setJDPUser(int userid)
- Set the JDP userid of this user.
- Parameters:
- userid - the JDP userid of this user.
getJDPSystem
public String getJDPSystem()
- Get the JDP system that the user is logged in to.
- Returns:
- the JDP system that the user is logged in to.
setJDPSystem
public void setJDPSystem(String jdpSystem)
- Set the JDP system that the user is logged in to.
- Parameters:
- jdpSystem - the JDP system that the user is logged in to.
getLastConnectionStart
public Date getLastConnectionStart()
- Get the last connection start date/time of this user.
- Returns:
- the last connection start date/time of this user.
setLastConnectionStart
public void setLastConnectionStart(Date lastConnectionStart)
- Set the last connection start date/time of this user.
- Parameters:
- lastConnectionStart - the last connection start date/time of this user.
getLastConnectionEnd
public Date getLastConnectionEnd()
- Get the last connection end date/time of this user.
- Returns:
- the last connection end date/time of this user.
setLastConnectionEnd
public void setLastConnectionEnd(Date lastConnectionEnd)
- Set the last connection end date/time of this user.
- Parameters:
- lastConnectionEnd - the last connection end date/time of this user.
getLastConnectionDuration
public long getLastConnectionDuration()
- Get the last connection duration of this user.
- Returns:
- the last connection duration of this user.
setLastConnectionDuration
public void setLastConnectionDuration(long lastConnectionDuration)
- Set the last connection duration of this user.
- Parameters:
- lastConnectionDuration - the last connection duration of this user.
getIdleFor
public long getIdleFor()
- Get the amount of time the user has been idle.
- Returns:
- the amount of time the user has been idle.
incrementTotalRequest
public synchronized void incrementTotalRequest()
- Increment the total number of requests.
getTotalRequests
public int getTotalRequests()
- Get the total number of requests.
- Returns:
- the total number of requests.
incrementBytesReceived
public synchronized void incrementBytesReceived(long bytesReceived)
- Increment the total number of bytes received.
- Parameters:
- bytesReceived - the total number of bytes received.
getBytesReceived
public long getBytesReceived()
- Get the total number of bytes received.
- Returns:
- the total number of bytes received.
incrementBytesTransmitted
public synchronized void incrementBytesTransmitted(long bytesTransmitted)
- Increment the total number of bytes transmitted.
- Parameters:
- bytesTransmitted - the total number of bytes transmitted.
getBytesTransmitted
public long getBytesTransmitted()
- Get the total number of bytes transmitted.
- Returns:
- the total number of bytes transmitted.