public class SchedulerSession
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static long |
serialVersionUID |
| Constructor and Description |
|---|
SchedulerSession(Context.UserType userType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name in this session, or null if no object is bound
under the name.
|
java.util.Enumeration<java.lang.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.
|
java.lang.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.
|
java.lang.Object |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this session.
|
void |
setAttribute(java.lang.String name,
java.lang.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 java.lang.String getId()
public boolean isLocalAuth()
true if this session belongs to a local Scheduler user; false
otherwise.java.lang.IllegalStateException - if this method is called on an invalidated sessionpublic Context.UserType getUserType()
public long getCreationTime()
java.lang.IllegalStateException - if this method is called on an invalidated sessionpublic java.util.Enumeration<java.lang.String> getAttributeNames()
java.lang.IllegalStateException - if this method is called on an invalidated sessionpublic java.lang.Object getAttribute(java.lang.String name)
name - a string specifying the name of the objectjava.lang.IllegalStateException - if this method is called on an invalidated sessionpublic void setAttribute(java.lang.String name,
java.lang.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 boundjava.lang.IllegalStateException - if this method is called on an invalidated sessionpublic java.lang.Object removeAttribute(java.lang.String name)
name - the name of the object to remove from this sessionjava.lang.IllegalStateException - if this method is called on an invalidated sessionpublic void invalidate()
java.lang.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()
Copyright © 2024 Denodo Technologies. All rights reserved.