|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SingleActivityOutput
Client-side representation of single activity output.
Provides a means of connecting activities in a request and also of accessing the data output by an activity when the request is executed by a service.
| Method Summary | |
|---|---|
DataValueIterator |
getDataValueIterator()
Gets an iterator to the data values written to this output. |
boolean |
getIsConnected()
Gets whether the output has been connected to an input. |
java.lang.String |
getOutputName()
Gets the name of the output. |
java.lang.String |
getPipeName()
Gets the name of the pipe associated with this output. |
ActivityOutputRequestStatusHandler |
getRequestStatusHandler()
Gives access to the methods required process a request status. |
boolean |
hasData()
Gets whether data is available for this output. |
void |
setDataSourceResource(DataSourceResource dataSourceResource)
Deprecated. this method is equivalent to calling setDataValueIterator
with argument
new DataSourceDataValueIterator(dataSourceResource). That
is now the recommended means of providing this functionality. |
void |
setDataSourceResourceBlocksSize(int numBlocks)
Deprecated. this method simply calls the setNumBlocksPerCall method
of the DataSourceResource object given to this object
by the setDataSourceResource call, assuming that object
implements the DataSourceDataValueIterator interface.
The recommended approach is to call that method directly on the
DataSourceDataValueIterator object and pass it to this
object using the setDataValueIterator method. |
void |
setDataValueIterator(DataValueIterator dataValueIterator)
Sets the data value iterator to use when reading data from this output. |
void |
setDeliverToRequestStatusActivity(DeliverToRequestStatus deliverToRequestStatus)
Deprecated. Use setResultActivity(uk.org.ogsadai.client.toolkit.ResultActivity). |
void |
setIsConnected()
Sets that the output has been connected to an input. |
void |
setResultActivity(ResultActivity activity)
Sets the activity that was used to write data to the request status. |
void |
validateState()
Validates the state of the output. |
| Method Detail |
|---|
java.lang.String getOutputName()
java.lang.String getPipeName()
void setIsConnected()
boolean getIsConnected()
true if the output has been connected,
false otherwise.boolean hasData()
true if data is available, false
otherwise.
DataValueIterator getDataValueIterator()
throws ActivityOutputUnreadableException
ActivityOutputUnreadableException - if the activity output cannot be read because the final request
status has yet to be received data from server.void setDataSourceResource(DataSourceResource dataSourceResource)
setDataValueIterator
with argument
new DataSourceDataValueIterator(dataSourceResource). That
is now the recommended means of providing this functionality.
dataSourceResource - client proxy for the data source resource to which the output has
been written.void setDataSourceResourceBlocksSize(int numBlocks)
setNumBlocksPerCall method
of the DataSourceResource object given to this object
by the setDataSourceResource call, assuming that object
implements the DataSourceDataValueIterator interface.
The recommended approach is to call that method directly on the
DataSourceDataValueIterator object and pass it to this
object using the setDataValueIterator method.
setDataSourceResource method.
numBlocks - maximum number of blocks to receive each call.void setDataValueIterator(DataValueIterator dataValueIterator)
dataValueIterator - data value iterator that gives access to the data the output
produced.void setDeliverToRequestStatusActivity(DeliverToRequestStatus deliverToRequestStatus)
setResultActivity(uk.org.ogsadai.client.toolkit.ResultActivity).
If this output is written directly to a DeliverToRequestStatus activity then the client toolkit framework will automatically associate the output with that activity. This method is only required when the output is not connected directly to the DeliverToRequestStaus activity, for example when there is a Tee activity, or some other activity, between this output and the DeliverToRequestStatus activity.
deliverToRequestStatus - activity used to write this data to the request status.void setResultActivity(ResultActivity activity)
If this output is written directly to a ResultActivity e.g.
DeliverToRequestStatus then the client toolkit will automatically
associate the output with that activity. This method is only required
when the output is not connected directly to a
ResultActivity activity, for example when there is a Tee
activity, or some other activity, between this output and the
DeliverToRequestStatus activity.
activity - Activity used to write this data to the request status.ActivityOutputRequestStatusHandler getRequestStatusHandler()
void validateState()
throws ActivityIOIllegalStateException
ActivityIOIllegalStateException - if the output is in an illegal state.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||