Class GetSessionInfoResponseData
java.lang.Object
org.metricshub.ipmi.core.coding.commands.session.GetSessionInfoResponseData
- All Implemented Interfaces:
ResponseData
The reply to Get Session Info (IPMI 2.0 table 22-26): the session counts of the BMC, and the user ID, privilege
level and channel of the session looked up when the BMC has it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintintintbooleanvoidsetActiveSessions(int activeSessions) voidsetChannel(int channel) voidsetMaxSessions(int maxSessions) voidsetPrivilegeLevel(int privilegeLevel) voidsetSessionFound(boolean sessionFound) voidsetSessionHandle(int sessionHandle) voidsetUserId(int userId) toString()
-
Constructor Details
-
GetSessionInfoResponseData
public GetSessionInfoResponseData()
-
-
Method Details
-
getSessionHandle
public int getSessionHandle()- Returns:
- the session handle of the session looked up, 0 when the BMC has no such session
-
setSessionHandle
public void setSessionHandle(int sessionHandle) - Parameters:
sessionHandle- the session handle
-
getMaxSessions
public int getMaxSessions()- Returns:
- how many sessions the BMC can have at once
-
setMaxSessions
public void setMaxSessions(int maxSessions) - Parameters:
maxSessions- how many sessions the BMC can have at once
-
getActiveSessions
public int getActiveSessions()- Returns:
- how many sessions the BMC has now
-
setActiveSessions
public void setActiveSessions(int activeSessions) - Parameters:
activeSessions- how many sessions the BMC has now
-
isSessionFound
public boolean isSessionFound()- Returns:
- whether the BMC has the session looked up: the reply then carries its user ID, privilege and channel
-
setSessionFound
public void setSessionFound(boolean sessionFound) - Parameters:
sessionFound- whether the BMC has the session looked up
-
getUserId
public int getUserId()- Returns:
- the user ID of the session, when found
-
setUserId
public void setUserId(int userId) - Parameters:
userId- the user ID of the session
-
getPrivilegeLevel
public int getPrivilegeLevel()- Returns:
- the privilege level of the session (2 User, 3 Operator, 4 Administrator), when found
-
setPrivilegeLevel
public void setPrivilegeLevel(int privilegeLevel) - Parameters:
privilegeLevel- the privilege level of the session
-
getChannel
public int getChannel()- Returns:
- the channel of the session, when found
-
setChannel
public void setChannel(int channel) - Parameters:
channel- the channel of the session
-
toString
-