|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.essbase.eas.essbase.server.EssSession
public class EssSession
Implements the Essbase Session object. An instance of this object contains the following information.
EssSessionPrimitives, ISession| Field Summary | |
|---|---|
static short |
ESS_SESSION_ATTRIBUTE_COUNTThe number of attributes expected by this session type. |
static short |
ESS_SESSION_INVALID_IDEssbase session id |
static java.lang.String |
GET_ACTIVE_ESSBASE_NODE |
| Constructor Summary | |
|---|---|
EssSession()Creates an instance of a EssSession object. |
|
EssSession(EssSession session) |
|
| Method Summary | |
|---|---|
protected void |
addConnectionMessages() |
boolean |
connect()Implements the ISession connect method. |
ISession |
createNewSession()Creates a new session |
boolean |
disconnect()Implements the ISession disconnect method. |
boolean |
execute(java.lang.String cmd) |
protected void |
finalize()Finalizer to close the session when destroying |
java.lang.String |
getActiveEssbaseNode() |
long |
getAPICtx() |
long |
getAPIInst() |
java.util.ArrayList |
getAttributes()Implements the ISession getAttributes method. |
java.lang.String |
getClusterUrl()This is convenience method for getting either server or cluster url to connect to Essbase server |
com.essbase.maxl.MaxlConnection |
getConnection() |
protected java.util.List |
getConnectionMessages() |
ContextHandle |
getContextHandle() |
ContextHandle |
getContextHandle(boolean reconnect) |
java.util.ArrayList |
getErrorMessage()Returns a list of errors for the session |
InstanceHandle |
getInstanceHandle() |
com.essbase.maxl.Message |
getMessage() |
com.essbase.maxl.Message |
getNextMessage() |
java.lang.String |
getPassword()Gets the password used in this session. |
java.lang.String |
getServerName()Gets the server name this session was created for. |
Version |
getServerVersion() |
long |
getSessionId() |
java.lang.Object |
getSessionID()Implements the ISession getSessionID method. |
boolean |
getSetBusy()Returns true if the session is not busy and the busy flag is set |
java.lang.String |
getToken()The token is a users credentials when a session is externally authenticated This token is from the Hyperion Security SDK |
java.lang.String |
getUserName()Gets the user name this session was created for. |
void |
invalidateConnection()Ensures that the session id is an invalid value. |
boolean |
isBusy()Returns true if the session is busy |
boolean |
isConnected()Implements the ISession isConnected method. |
boolean |
isTemporary()Returns if the session is a temporary one |
boolean |
isValidConnection()Checks for a valid context handle |
boolean |
reconnect()Implements the ISession reconnect method. |
void |
resetValidationTimeStamp()Resets the validation time stamp. |
void |
setAttributes(java.util.ArrayList attributes)Implements the ISession setAttributes method. |
void |
setBusy(boolean busy)Sets/Reset the busy flag for the session |
void |
setClusterUrl(java.lang.String clusterUrl) |
void |
setConnection(com.essbase.maxl.MaxlConnection conn)Sets the sessionID for this Essbase session. |
void |
setPassword(java.lang.String pwd)Sets the password used in this session. |
void |
setServerName(java.lang.String server)Sets the server name this session was created for. |
void |
setServerVersion(Version version) |
void |
setSessionId(long id) |
void |
setSessionID(java.lang.Object conn)Implements the ISession setSessionID method. |
void |
setTemporary()Sets the session to be a temporary one which may not have a long life span. |
void |
setToken(java.lang.String tokenString)Set a token when a user is externally authenticated |
void |
setUserName(java.lang.String user)Sets the user name this session was created for. |
boolean |
useToken()A token is used when a user is externally authenticated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static short ESS_SESSION_INVALID_ID
public static final short ESS_SESSION_ATTRIBUTE_COUNT
public static final java.lang.String GET_ACTIVE_ESSBASE_NODE
| Constructor Detail |
|---|
public EssSession()
public EssSession(EssSession session)
| Method Detail |
|---|
public boolean connect()
throws java.lang.Exception
connect in interface ISessiontrue if the session connectedjava.lang.Exception - for an error while connecting
public boolean reconnect()
throws java.lang.Exception
reconnect in interface ISessiontrue if reconnect was successfuljava.lang.Exception - for an error while reconnectingpublic boolean disconnect()
disconnect in interface ISessiontrue if disconnectedpublic boolean isConnected()
isConnected in interface ISessiontrue if session is connectedpublic boolean isValidConnection()
isValidConnection in interface ISessiontrue if connection is validpublic void resetValidationTimeStamp()
public java.util.ArrayList getAttributes()
getAttributes in interface ISessionpublic void setAttributes(java.util.ArrayList attributes)
setAttributes in interface ISessionattributes - - ArrayList containing attributes for this session. WARNING: This method should throw an exception if the attributes aren't as specified of the correct type and in the correct number.public java.lang.Object getSessionID()
getSessionID in interface ISessionpublic com.essbase.maxl.MaxlConnection getConnection()
public long getAPICtx()
public long getAPIInst()
public ContextHandle getContextHandle()
public ContextHandle getContextHandle(boolean reconnect)
public InstanceHandle getInstanceHandle()
public void setSessionID(java.lang.Object conn)
setSessionID in interface ISessionpublic void setConnection(com.essbase.maxl.MaxlConnection conn)
id - - the new session id returned from MaxL.public void invalidateConnection()
public java.lang.String getServerName()
getServerName in interface ISessionpublic void setServerName(java.lang.String server)
server - - String representing the server name.public final java.lang.String getClusterUrl()
public final void setClusterUrl(java.lang.String clusterUrl)
public java.lang.String getActiveEssbaseNode()
public java.lang.String getUserName()
getUserName in interface ISessionpublic void setUserName(java.lang.String user)
user - - String representing the user name.public java.lang.String getPassword()
getPassword in interface ISessionpublic void setPassword(java.lang.String pwd)
pwd - - String representing the new password.public java.lang.String getToken()
public void setToken(java.lang.String tokenString)
tokenString - the tokenpublic boolean useToken()
true if a token should be used
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic java.util.ArrayList getErrorMessage()
ISessiongetErrorMessage in interface ISessionpublic boolean execute(java.lang.String cmd)
public com.essbase.maxl.Message getMessage()
public com.essbase.maxl.Message getNextMessage()
public void setServerVersion(Version version)
public Version getServerVersion()
public boolean isBusy()
isBusy in interface ISessionpublic boolean getSetBusy()
ISessiongetSetBusy in interface ISessionpublic void setBusy(boolean busy)
setBusy in interface ISessionbusy -public boolean isTemporary()
ISessionisTemporary in interface ISessionpublic void setTemporary()
setTemporary in interface ISessionpublic ISession createNewSession()
ISessioncreateNewSession in interface ISessionpublic void setSessionId(long id)
public long getSessionId()
protected void addConnectionMessages()
protected java.util.List getConnectionMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||