public class SchedulerSession extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static long |
serialVersionUID |
Constructor and Description |
---|
SchedulerSession(Context.UserType userType) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Returns the object bound with the specified name in this session, or null if no object is bound
under the name.
|
Enumeration<String> |
getAttributeNames()
Returns an Enumeration of String objects containing the names of all the objects bound to this
session.
|
long |
getCreationTime()
Returns the time when this session was created, measured in milliseconds since midnight January
1, 1970 GMT.
|
String |
getId()
Returns a string containing the unique identifier assigned to this session.
|
Context.UserType |
getUserType() |
void |
invalidate()
Invalidates this session and unbinds any objects bound to it.
|
boolean |
isBatchedMode()
Returns if the session mode is batched.
|
boolean |
isLocalAuth()
Returns
true if this session belongs to a local Scheduler user; false
otherwise. |
boolean |
isNormalMode()
Returns if the session mode is normal.
|
boolean |
isValid() |
Object |
removeAttribute(String name)
Removes the object bound with the specified name from this session.
|
void |
setAttribute(String name,
Object value)
Binds an object to this session, using the name specified.
|
void |
setBatchedMode() |
void |
setNormalMode() |
protected static final long serialVersionUID
public SchedulerSession(Context.UserType userType)
public String getId()
public boolean isLocalAuth()
true
if this session belongs to a local Scheduler user; false
otherwise.IllegalStateException
- if this method is called on an invalidated sessionpublic Context.UserType getUserType()
public long getCreationTime()
IllegalStateException
- if this method is called on an invalidated sessionpublic Enumeration<String> getAttributeNames()
IllegalStateException
- if this method is called on an invalidated sessionpublic Object getAttribute(String name)
name
- a string specifying the name of the objectIllegalStateException
- if this method is called on an invalidated sessionpublic void setAttribute(String name, Object value)
null
, this has the same effect as calling removeAttribute(String)
.name
- the name to which the object is bound; cannot be nullvalue
- the object to be boundIllegalStateException
- if this method is called on an invalidated sessionpublic Object removeAttribute(String name)
name
- the name of the object to remove from this sessionIllegalStateException
- if this method is called on an invalidated sessionpublic void invalidate()
IllegalStateException
- if this method is called on an already invalidated sessionpublic boolean isBatchedMode()
true
when the session is batched.public boolean isNormalMode()
true
when the session is not batched.public void setBatchedMode()
public void setNormalMode()
public boolean isValid()
Copyright © 2025 Denodo Technologies. All rights reserved.