Package com.sas.lsaf.execution.session
Class Session
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.execution.session.Session
- All Implemented Interfaces:
Identifiable,Serializable
The client representation of an execution session.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enumeration that describes the type of session.static enumThe session state enumeration that describes the state of a session.static enumThe enumeration that describes the source that started a session. -
Constructor Summary
ConstructorsConstructorDescriptionSession(String typeId, String id, Date started, Date ended, Session.SessionType type, Session.SessionState state, String userId, String submissionLabel, int clientId) The initializing constructor.Session(String typeId, String id, Date started, Date ended, Session.SessionType type, Session.SessionState state, String userId, String submissionLabel, int clientId, Session.SessionEngine engine, long logErrors, long logWarnings) The initializing constructor. -
Method Summary
Modifier and TypeMethodDescriptionintGets the incremental number that is assigned to a session.Gets the date on which the session was ended.Gets the date on which the session was started.Gets the engine of session.longGets the number of errors in the log.longGets the number of warnings in the log.getState()Gets the state of the session.Gets the label that describes what is executing in the session.getType()Gets the type of the session.Get the identifier of the user of who created the session.toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
equals, getId, getTypeId, hashCode
-
Constructor Details
-
Session
public Session(String typeId, String id, Date started, Date ended, Session.SessionType type, Session.SessionState state, String userId, String submissionLabel, int clientId) The initializing constructor.- Parameters:
typeId- The object type identifier of the session.id- The unique identifier of the session.started- The date on which the session was started.ended- The date on which the session was ended.type- The type of the session.state- The state of the session.userId- The identifier of the user who created the session.submissionLabel- The label that describes what is executing in the session.clientId- The incremental number that is assigned to the session.- Since:
- 1.8
-
Session
public Session(String typeId, String id, Date started, Date ended, Session.SessionType type, Session.SessionState state, String userId, String submissionLabel, int clientId, Session.SessionEngine engine, long logErrors, long logWarnings) The initializing constructor.- Parameters:
typeId- The object type identifier of the session.id- The unique identifier of the session.started- The date on which the session was started.ended- The date on which the session was ended.type- The type of the session.state- The state of the session.userId- The identifier of the user who created the session.submissionLabel- The label that describes what is executing in the session.clientId- The incremental number that is assigned to the session.engine- The engine of session.logErrors- The number of errors in the log.logWarnings- The number of warnings in the log.- Since:
- 2.4
-
-
Method Details
-
getDateStarted
Gets the date on which the session was started.- Returns:
- The date on which the session was started.
-
getDateEnded
Gets the date on which the session was ended.- Returns:
- The date on which the session was ended. Null, if it is not in an ended state.
-
getUserId
Get the identifier of the user of who created the session.- Returns:
- The identifier of the user who created the session.
-
getSubmissionLabel
Gets the label that describes what is executing in the session.- Returns:
- The label that describes what is executing in the session.
-
getEngine
Gets the engine of session.- Returns:
- The engine of session.
-
getLogErrors
public long getLogErrors()Gets the number of errors in the log.- Returns:
- The number of errors in the log.
-
getLogWarnings
public long getLogWarnings()Gets the number of warnings in the log.- Returns:
- The number of warnings in the log.
-
getType
Gets the type of the session.- Returns:
- The type of the session.
-
getState
Gets the state of the session.- Returns:
- The state of the session.
-
getClientId
public int getClientId()Gets the incremental number that is assigned to a session.- Returns:
- The incremental number that is assigned to a session.
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-