|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.symphony.soam.Message
com.platform.symphony.symexec.ExecutionSessionContext
public class ExecutionSessionContext
This class is used to give context to all the commands being executed within an ExecutionSession. This class may be used in one of the more advanced forms of the ExecutionSession(...) constructor.
ExecutionSession
Constructor Summary | |
---|---|
ExecutionSessionContext()
Constructor for the Execution Session Context object. |
Method Summary | |
---|---|
void |
onDeserialize(InputStream stream)
Invoked when this Message object needs to be deserialized. |
void |
onSerialize(OutputStream stream)
Invoked when this Message object needs to be serialized. |
void |
setEnvironment(java.lang.String name,
java.lang.String value)
Sets an environment variable (i.e a name/value string pair) within the context of a session. |
void |
setPostCommand(java.lang.String postCommand)
Sets the command string to be post-executed at the session level. |
void |
setPreCommand(java.lang.String preCommand)
Sets the command string to be pre-executed at the session level. |
void |
setSessionType(java.lang.String type)
Sets the execution session type The session type argument tells Symphony which type of session to create. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecutionSessionContext()
Method Detail |
---|
public void setEnvironment(java.lang.String name, java.lang.String value) throws SoamException
name
- The name of the environment variable being set.value
- The value to be assigned to this environment variable.
SoamException
public void setPreCommand(java.lang.String preCommand)
preCommand
- The command string to be executed at the session
level when the session is being bound.
A null value will be treated as an empty string.
SoamException
public void setPostCommand(java.lang.String postCommand)
postCommand
- The command string to be executed at the session
level when the session is being un-bound.
A null value will be treated as an empty string.
SoamException
public void setSessionType(java.lang.String type)
type
- The type of execution session set before creating a session.
SoamException
public void onSerialize(OutputStream stream) throws SoamException
Message
Message
object needs to be serialized.
This method is to be implemented by the application developer, such that. Its
implementation should serialize the content of this Message
to the stream object provided.
onSerialize
in class Message
stream
- The output stream to be written
SoamException
public void onDeserialize(InputStream stream) throws SoamException
Message
Message
object needs to be deserialized.
This method is to be implemented by the application developer. Its
implementation should read the contents of the provided stream and
populate this Message
object.
onDeserialize
in class Message
stream
- The input stream to be read
SoamException
|
Version 5.0 Date Modified: -DREL_DATE=Nov 11 2009 Platform Computing. Accelerating Intelligence(TM). Copyright (C) 2001-2009 Platform Computing Corporation. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |