|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.symphony.symexec.ExecutionSession
public class ExecutionSession
Acts as a conduit for commands sent to the middleware.
This object can be used to send commands that will be executed
and managed on the grid by Symphony.
All ExecutionSession objects require a connection to Symphony.
You can create your own Connection to any Binary Execution
Application and pass it to the appropriate constructor, or
use the implicit Connection to connect to the default Binary Execution
Application.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_SYMEXEC_APP
The default application name to be used by clients wishing to connect to the default instance of the Binary Execution Application. |
static java.lang.String |
DEFAULT_SYMEXEC_PASSWORD
The default password for clients wishing to connect to the default instance of the Binary Execution Application. |
static java.lang.String |
DEFAULT_SYMEXEC_USERNAME
The default username for clients wishing to connect to the default instance of the Binary Execution Application. |
static java.lang.String |
DETACHABLE_SYMEXEC_SESSION
Executable session of this type will remain in open state and all started task will continue to run when the session's object is destructed or Symphony client process is terminated. |
static java.lang.String |
UNDETACHABLE_SYMEXEC_SESSION
Executable session of this type will be aborted when the session's object is destructed or Symphony client process is terminated. |
Constructor Summary | |
---|---|
ExecutionSession()
Default constructor for a new ExecutionSession. |
|
ExecutionSession(Connection connection)
Constructor to create a new ExecutionSession using a connection that already exists. |
|
ExecutionSession(ExecutionSessionContext context)
Constructor to create a new ExecutionSession using the default connection and a context. |
|
ExecutionSession(ExecutionSessionContext context,
Connection connection)
Constructor to create a new ExecutionSession using a connection that already exists and a context. |
|
ExecutionSession(java.lang.String sessionId)
Constructor to attach to an existing ExecutionSession using the default connection. |
|
ExecutionSession(java.lang.String sessionId,
Connection connection)
Constructor to attach to an existing ExecutionSession using a connection that already exists. |
Method Summary | |
---|---|
void |
close()
Closes the ExecutionSession object. |
void |
detach()
Detaches the ExecutionSession object from the Connection. |
ExecutionEnumItems |
fetchTaskStatus()
Waits for the completion of the next available result from the session. |
ExecutionEnumItems |
fetchTaskStatus(long countMax)
Waits for the completion of the next countMax results from the session. |
ExecutionEnumItems |
fetchTaskStatus(long countMax,
int timeoutInSeconds)
Waits for the completion of the next countMax results from the session
for up to timeoutInSeconds seconds. |
java.lang.String |
getId()
Returns the identifier of the ExecutionSession. |
java.lang.String |
sendTaskCmd(java.lang.String command)
Sends a command. |
java.lang.String |
sendTaskCmd(java.lang.String command,
ExecutionCommandContext context)
Sends a command. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String DEFAULT_SYMEXEC_APP
public static java.lang.String DEFAULT_SYMEXEC_USERNAME
public static java.lang.String DEFAULT_SYMEXEC_PASSWORD
public static java.lang.String DETACHABLE_SYMEXEC_SESSION
public static java.lang.String UNDETACHABLE_SYMEXEC_SESSION
Constructor Detail |
---|
public ExecutionSession() throws SoamException
SoamException
public ExecutionSession(Connection connection) throws SoamException
connection
- A connection to a specific Binary Execution Application.
SoamException
Connection
public ExecutionSession(ExecutionSessionContext context) throws SoamException
context
- A context that will take effect at the session level for this
ExecutionSession.
SoamException
ExecutionSessionContext
public ExecutionSession(ExecutionSessionContext context, Connection connection) throws SoamException
context
- A context that will take effect at the session level for this
ExecutionSession.connection
- A connection to a specific Binary Execution Application.
SoamException
ExecutionSessionContext
,
Connection
public ExecutionSession(java.lang.String sessionId) throws SoamException
sessionId
- The identifier of the session to be attached.
SoamException
public ExecutionSession(java.lang.String sessionId, Connection connection) throws SoamException
sessionId
- The identifier of the session to be attached.connection
- A connection to a specific Binary Execution Application.
SoamException
Method Detail |
---|
public java.lang.String getId() throws SoamException
SoamException
public java.lang.String sendTaskCmd(java.lang.String command) throws SoamException
command
- The command string to be executed.
SoamException
public java.lang.String sendTaskCmd(java.lang.String command, ExecutionCommandContext context) throws SoamException
command
- The command string to be executed.context
- The context to be associated with the command.
SoamException
ExecutionCommandContext
public ExecutionEnumItems fetchTaskStatus() throws SoamException
SoamException
public ExecutionEnumItems fetchTaskStatus(long countMax) throws SoamException
countMax
results from the session.
countMax
- Number of results to wait for.
SoamException
public ExecutionEnumItems fetchTaskStatus(long countMax, int timeoutInSeconds) throws SoamException
countMax
results from the session
for up to timeoutInSeconds
seconds.
countMax
- Number of results to wait for.timeoutInSeconds
- Maximum time to wait, in seconds, for the next
countMax
results.
SoamException
public void close() throws SoamException
SoamException
public void detach() throws SoamException
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 |