Package com.appliedolap.essbase.impl
Class EssSessionImpl
java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssSessionImpl
- All Implemented Interfaces:
EssObject,EssSession
Models a session (connection) on the server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.Type -
Field Summary
Fields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Constructor Summary
ConstructorsConstructorDescriptionEssSessionImpl(ApiContext api, com.appliedolap.essbase.client.model.SessionAttributes sessionAttributes) -
Method Summary
Modifier and TypeMethodDescriptionGet the connection source (not sure what this signifies, but it's in the source JSON...)longNumber of seconds session has been createdgetName()Standard implementation.Gets the ID of this session.getType()Gets the type of this object.Get the user for the session.voidkill(boolean logoff) Kill the session.
-
Constructor Details
-
EssSessionImpl
public EssSessionImpl(ApiContext api, com.appliedolap.essbase.client.model.SessionAttributes sessionAttributes)
-
-
Method Details
-
getSessionId
Description copied from interface:EssSessionGets the ID of this session.- Specified by:
getSessionIdin interfaceEssSession- Returns:
- the session ID
-
getUserId
Description copied from interface:EssSessionGet the user for the session.- Specified by:
getUserIdin interfaceEssSession- Returns:
- the user ID
-
getLoginTimeInSeconds
public long getLoginTimeInSeconds()Description copied from interface:EssSessionNumber of seconds session has been created- Specified by:
getLoginTimeInSecondsin interfaceEssSession- Returns:
- the number of seconds the session has been created
-
getConnectionSource
Description copied from interface:EssSessionGet the connection source (not sure what this signifies, but it's in the source JSON...)- Specified by:
getConnectionSourcein interfaceEssSession- Returns:
- the connection source
-
kill
public void kill(boolean logoff) Description copied from interface:EssSessionKill the session.- Specified by:
killin interfaceEssSession- Parameters:
logoff- true to also log it off (e.g., it'll disappear from the list of sessions)
-
getName
Description copied from interface:EssSessionStandard implementation.- Specified by:
getNamein interfaceEssObject- Specified by:
getNamein interfaceEssSession- Returns:
- the name of session (the ID)
-
getType
Description copied from interface:EssObjectGets the type of this object.- Specified by:
getTypein interfaceEssObject- Specified by:
getTypein interfaceEssSession- Returns:
- the object type
-