|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.engine.ActivityContext
The ActivityContext provides a view of the context of a request
suitable for activity implementations. Various get methods are provided for
accessing objects such as the inputs and output block readers and block
writers, as well as the connection manager. Along with the
RequestContext class, this class provides an extension point for
users wishing to store additional objects within the request context.
| Constructor Summary | |
ActivityContext(EngineConfiguration engineConfiguration,
RequestContext context)
Constructs an internal request context. |
|
| Method Summary | |
ConnectionManager |
getConnectionManager()
Gets the DataResource implementation providing access to
the underlying data resource associated with the grid data service. |
BlockReader |
getExternalInput(java.lang.String name)
Gets the BlockReader for an external input to the activity. |
BlockWriter |
getExternalOutput(java.lang.String name)
Gets the BlockWriter for an external output to the activity. |
BlockReader |
getInput(java.lang.String name)
Gets the BlockReader for an internal input to the activity. |
BlockWriter |
getOutput(java.lang.String name)
Gets the BlockWriter for an internal output to the activity. |
SecurityContext |
getSecurityContext()
Gets the security context associated with the request containing the activity. |
java.lang.String |
getURL()
Returns the URL associated with the Request |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ActivityContext(EngineConfiguration engineConfiguration,
RequestContext context)
context - The RequestContext containing the
security settings.| Method Detail |
public final ConnectionManager getConnectionManager()
DataResource implementation providing access to
the underlying data resource associated with the grid data service.
DataResource the concrete type of which depends
on the grid data service configuration
public final BlockReader getExternalInput(java.lang.String name)
throws CommonUserException
BlockReader for an external input to the activity.
name - The name of the input.
BlockReader from which the input
data can be read.
CommonUserException - If the specified input is not contained in the
context.
public final BlockWriter getExternalOutput(java.lang.String name)
throws CommonUserException
BlockWriter for an external output to the activity.
name - The name of the output
BlockWriter in to which output data
can be written.
CommonUserException - If the specified output is not contained in the
context.
public final BlockReader getInput(java.lang.String name)
throws CommonUserException
BlockReader for an internal input to the activity.
name - The name of the input.
BlockReader from which the input
data can be read.
CommonUserException - If the specified input is not contained in the
context.
public final BlockWriter getOutput(java.lang.String name)
throws CommonUserException
BlockWriter for an internal output to the activity.
name - The name of the output.
BlockWriter in to which output data
can be written.
CommonUserException - If the specified output is not contained in the
context.public final SecurityContext getSecurityContext()
SecurityContext instancepublic java.lang.String getURL()
String object or null if the Engine is
not running within a grid service.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||