Class JDPJaggUser

java.lang.Object
   |
   +----JDPJaggUser

public class JDPJaggUser
extends Object
Class JDPJaggUser represents a user making request to JaggServer.


Variable Index

 o ACTIVE
User connected and active Status.
 o DISCONNECTED
User disconnected Status.
 o FAIL
Last request failed.
 o IDLE
User connected and idle Status.
 o SUCCESS
Last request successful.
 o UNKNOWN
Last request failed.

Constructor Index

 o JDPJaggUser(InetAddress, int, String)
Creates a Jagg User with the specified InetAddress and JDP userid.

Method Index

 o addActiveRequest(JaggServerCxn)
Add the active request to the list of active requests.
 o getActiveRequests()
Get the handles to the active request for this user.
 o getBytesReceived()
Get the total number of bytes received.
 o getBytesTransmitted()
Get the total number of bytes transmitted.
 o getIdleFor()
Get the amount of time the user has been idle.
 o getInetAddress()
Get the InetAddress to the user.
 o getJDPSystem()
Get the JDP system that the user is logged in to.
 o getJDPUser()
Get the JDP userid of this user.
 o getLastConnectionDuration()
Get the last connection duration of this user.
 o getLastConnectionEnd()
Get the last connection end date/time of this user.
 o getLastConnectionStart()
Get the last connection start date/time of this user.
 o getTotalRequests()
Get the total number of requests.
 o getUserStatus()
Get the status of this user.
 o incrementBytesReceived(long)
Increment the total number of bytes received.
 o incrementBytesTransmitted(long)
Increment the total number of bytes transmitted.
 o incrementTotalRequest()
Increment the total number of requests.
 o removeActiveRequest(JaggServerCxn)
Remove the active request from the list of active requests.
 o setInetAddress(InetAddress)
Set the InetAddress to the user.
 o setJDPSystem(String)
Set the JDP system that the user is logged in to.
 o setJDPUser(int)
Set the JDP userid of this user.
 o setLastConnectionDuration(long)
Set the last connection duration of this user.
 o setLastConnectionEnd(Date)
Set the last connection end date/time of this user.
 o setLastConnectionStart(Date)
Set the last connection start date/time of this user.
 o setUserStatus(int)
Set the status of this user.

Variables

 o ACTIVE
 public static final int ACTIVE
User connected and active Status.

 o IDLE
 public static final int IDLE
User connected and idle Status.

 o DISCONNECTED
 public static final int DISCONNECTED
User disconnected Status.

 o SUCCESS
 public static final int SUCCESS
Last request successful.

 o FAIL
 public static final int FAIL
Last request failed.

 o UNKNOWN
 public static final int UNKNOWN
Last request failed.

Constructors

 o 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.

Methods

 o getInetAddress
 public InetAddress getInetAddress()
Get the InetAddress to the user.

Returns:
the InetAddress to the user.
 o setInetAddress
 public void setInetAddress(InetAddress address)
Set the InetAddress to the user.

Parameters:
address - the InetAddress to the user.
 o getActiveRequests
 public Vector getActiveRequests()
Get the handles to the active request for this user.

Returns:
the handles to the active request for this user.
 o addActiveRequest
 public void addActiveRequest(JaggServerCxn request)
Add the active request to the list of active requests.

Parameters:
request - the JaggServer request.
 o removeActiveRequest
 public void removeActiveRequest(JaggServerCxn request)
Remove the active request from the list of active requests.

Parameters:
request - the JaggServer request.
 o getUserStatus
 public int getUserStatus()
Get the status of this user.

Returns:
the status of this user.
 o setUserStatus
 public void setUserStatus(int status)
Set the status of this user.

Parameters:
status - the status of this user.
 o getJDPUser
 public int getJDPUser()
Get the JDP userid of this user.

Returns:
the JDP userid of this user.
 o setJDPUser
 public void setJDPUser(int userid)
Set the JDP userid of this user.

Parameters:
userid - the JDP userid of this user.
 o 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.
 o 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.
 o getLastConnectionStart
 public Date getLastConnectionStart()
Get the last connection start date/time of this user.

Returns:
the last connection start date/time of this user.
 o 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.
 o getLastConnectionEnd
 public Date getLastConnectionEnd()
Get the last connection end date/time of this user.

Returns:
the last connection end date/time of this user.
 o 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.
 o getLastConnectionDuration
 public long getLastConnectionDuration()
Get the last connection duration of this user.

Returns:
the last connection duration of this user.
 o setLastConnectionDuration
 public void setLastConnectionDuration(long lastConnectionDuration)
Set the last connection duration of this user.

Parameters:
lastConnectionDuration - the last connection duration of this user.
 o getIdleFor
 public long getIdleFor()
Get the amount of time the user has been idle.

Returns:
the amount of time the user has been idle.
 o incrementTotalRequest
 public synchronized void incrementTotalRequest()
Increment the total number of requests.

 o getTotalRequests
 public int getTotalRequests()
Get the total number of requests.

Returns:
the total number of requests.
 o incrementBytesReceived
 public synchronized void incrementBytesReceived(long bytesReceived)
Increment the total number of bytes received.

Parameters:
bytesReceived - the total number of bytes received.
 o getBytesReceived
 public long getBytesReceived()
Get the total number of bytes received.

Returns:
the total number of bytes received.
 o incrementBytesTransmitted
 public synchronized void incrementBytesTransmitted(long bytesTransmitted)
Increment the total number of bytes transmitted.

Parameters:
bytesTransmitted - the total number of bytes transmitted.
 o getBytesTransmitted
 public long getBytesTransmitted()
Get the total number of bytes transmitted.

Returns:
the total number of bytes transmitted.