public class Session extends AbstractIdentifiable
Modifier and Type | Class and Description |
---|---|
static class |
Session.SessionEngine
The enumeration that describes the type of session.
|
static class |
Session.SessionState
The session state enumeration that describes the state of a session.
|
static class |
Session.SessionType
The enumeration that describes the source that started a session.
|
Constructor and Description |
---|
Session(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.
|
Modifier and Type | Method and Description |
---|---|
int |
getClientId()
Gets the incremental number that is assigned to a session.
|
Date |
getDateEnded()
Gets the date on which the session was ended.
|
Date |
getDateStarted()
Gets the date on which the session was started.
|
Session.SessionEngine |
getEngine()
Gets the engine of session.
|
long |
getLogErrors()
Gets the number of errors in the log.
|
long |
getLogWarnings()
Gets the number of warnings in the log.
|
Session.SessionState |
getState()
Gets the state of the session.
|
String |
getSubmissionLabel()
Gets the label that describes what is executing in the session.
|
Session.SessionType |
getType()
Gets the type of the session.
|
String |
getUserId()
Get the identifier of the user of who created the session.
|
String |
toString() |
equals, getId, getTypeId, hashCode
public Session(String typeId, String id, Date started, Date ended, Session.SessionType type, Session.SessionState state, String userId, String submissionLabel, int clientId)
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.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)
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.public Date getDateStarted()
public Date getDateEnded()
public String getUserId()
public String getSubmissionLabel()
public Session.SessionEngine getEngine()
public long getLogErrors()
public long getLogWarnings()
public Session.SessionType getType()
public Session.SessionState getState()
public int getClientId()
public String toString()
toString
in class AbstractIdentifiable
<i>Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA</i>