|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ActivityOutput
Client-side representation of 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 the first output occurrence. |
DataValueIterator |
getDataValueIterator(int index)
Gets a DataValueIterator |
int |
getNumberOfOutputs()
Gets the number of output occurrences |
java.lang.String |
getOutputName()
Gets the name of the output. |
java.lang.String |
getPipeName()
Gets the name of the pipe associated with the first output occurrence. |
java.lang.String |
getPipeName(int index)
Gets the pipe name that the occurrence at the specified index is connected to. |
SingleActivityOutput[] |
getSingleActivityOutputs()
Gets an array of SingleActivityOutput |
boolean |
hasData()
Gets whether data is available for the first output occurrence. |
boolean |
hasData(int index)
Indicates whether occurrence at the specified index has more data |
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 |
setDataSourceResource(int index,
DataSourceResource dataSourceResource)
Deprecated. this method is equivalent to calling setDataValueIterator
with argument
new DataSourceDataValueIterator(dataSourceResource) for the
same index. 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 |
setDataSourceResourceBlocksSize(int index,
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 input. |
void |
setDataValueIterator(int index,
DataValueIterator dataValueIterator)
Sets the data value iterator to use when reading data from this output. |
void |
setNumberOfOutputs(int count)
Sets the occurrences of this output. |
void |
validateState()
Validates the state of the output by validating all the occurtences of the output. |
| Method Detail |
|---|
java.lang.String getOutputName()
java.lang.String getPipeName()
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 validateState()
throws ActivityIOIllegalStateException
ActivityIOIllegalStateException - if the output is in an illegal state.void setNumberOfOutputs(int count)
count - the count of output occurrencesint getNumberOfOutputs()
SingleActivityOutput[] getSingleActivityOutputs()
SingleActivityOutput
SingleActivityOutputboolean hasData(int index)
index - the index of the output occurrence
java.lang.String getPipeName(int index)
index - the index of the output occurrence
DataValueIterator getDataValueIterator(int index)
throws ActivityOutputUnreadableException,
java.lang.ArrayIndexOutOfBoundsException
DataValueIterator. It can be iterated to get
DataValue objects
- Parameters:
index - the index of the output occurrence
- Returns:
- a
DataValueIterator
- Throws:
ActivityOutputUnreadableException - if the activity output cannot be read because the final request
status has yet to be received data from server.
java.lang.ArrayIndexOutOfBoundsException - if index is out of bounds
void setDataValueIterator(DataValueIterator dataValueIterator)
dataValueIterator - data value iterator that gives access to the data the output
produced.
void setDataValueIterator(int index,
DataValueIterator dataValueIterator)
index - the index of the output occurrencedataValueIterator - data value iterator that gives access to the data the output
produced.void setDataSourceResource(DataSourceResource dataSourceResource)
setDataValueIterator
with argument
new DataSourceDataValueIterator(dataSourceResource). That
is now the recommended means of providing this functionality.
dataSourceResource - data source resource.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.
numBlocks - maximum number of blocks to receive each call.
void setDataSourceResource(int index,
DataSourceResource dataSourceResource)
setDataValueIterator
with argument
new DataSourceDataValueIterator(dataSourceResource) for the
same index. That is now the recommended means of providing this
functionality.
index - the index of the output occurrencedataSourceResource - data source resource.
void setDataSourceResourceBlocksSize(int index,
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.
index - index of the output occurrencenumBlocks - maximum number of blocks to receive each call.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||