|
|
|||||||||||
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.ExecutionCommandContext
public class ExecutionCommandContext
This class is used to give context to the command being executed. This class may be used in the more advanced form of the ExecutionSession.sendTaskCmd(...) call.
ExecutionSession.sendTaskCmd(String , ExecutionCommandContext)
Constructor Summary | |
---|---|
ExecutionCommandContext()
Constructor for the Execution Command 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 command. |
void |
setPostCommand(java.lang.String postCommand)
Sets the command string to be post-executed. |
void |
setPreCommand(java.lang.String preCommand)
Sets the command string to be pre-executed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecutionCommandContext()
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 prior to the
actual command. 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 after the
actual command. A null value will be treated as an empty string.
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 |