Package org.netxms.client
Class UserSession
java.lang.Object
org.netxms.client.UserSession
User session (as reported by agent)
-
Constructor Summary
ModifierConstructorDescriptionprotected
UserSession
(NXCPMessage msg, long baseId) Create session information object from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionlong
int
int
Get textual representation of display parameters (WxHxC)int
int
int
getId()
int
boolean
-
Constructor Details
-
UserSession
Create session information object from NXCP message.- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
-
Method Details
-
getId
public int getId()- Returns:
- the id
-
getLoginName
- Returns:
- the loginName
-
getTerminal
- Returns:
- the terminal
-
isConnected
public boolean isConnected()- Returns:
- the connected
-
getClientName
- Returns:
- the clientName
-
getClientAddress
- Returns:
- the clientAddress
-
getDisplayWidth
public int getDisplayWidth()- Returns:
- the displayWidth
-
getDisplayHeight
public int getDisplayHeight()- Returns:
- the displayHeight
-
getDisplayColorDepth
public int getDisplayColorDepth()- Returns:
- the displayColorDepth
-
getDisplayDescription
Get textual representation of display parameters (WxHxC)- Returns:
- textual representation of display parameters (WxHxC) or empty string
-
getConnectTime
- Returns:
- the connectTime
-
getLoginTime
- Returns:
- the loginTime
-
getIdleTime
public int getIdleTime()- Returns:
- the idleTime
-
getAgentPID
public long getAgentPID()- Returns:
- the agentPID
-
getAgentType
public int getAgentType()- Returns:
- the agentType
-