|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Tasklet
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.Object value)
Adds a tasklet attribute value. |
void |
addGroup(Group group)
Adds a group to the tasklet's VDB. |
void |
addParam(java.lang.String name,
java.lang.Object value)
Adds a tasklet parameter value. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of a tasklet attribute. |
java.lang.Object |
getAttribute(java.lang.String name,
java.lang.Object deflt)
Returns the value of a tasklet attribute. |
java.util.Enumeration |
getAttributeNames()
Returns the names of all tasklet attributes currently defined. |
IeCollection |
getContext()
Returns the context collection associated with this tasklet. |
Group |
getGroup(java.lang.String name)
Returns a group from the tasklet's VDB. |
java.lang.Object |
getParam(java.lang.String name)
Returns the value of a tasklet parameter. |
java.lang.Object |
getParam(java.lang.String name,
java.lang.Object deflt)
Returns the value of a tasklet parameter. |
java.util.Enumeration |
getParamNames()
Returns the names of all tasklet parameters currently defined. |
java.util.Vector |
getParams(java.lang.String name)
Returns all of the values of a possibly multivalued tasklet parameter. |
IeService |
getService()
Returns the server context associated with this tasklet. |
IeMultipartInputStream |
getTaskletInputStream()
Returns the input stream from which the tasklet can read BLOB data. |
java.io.OutputStream |
getTaskletOutputStream()
Returns the output stream associated with this tasklet. |
int |
getTaskType()
Returns the task type currently associated with this tasklet. |
IeCollection |
getVdb()
Returns the VDB collection associated with this tasklet. |
int |
getVersion()
Returns the version number of the task compiler that compiled the task most recently. |
void |
initialize()
Initializes the tasklet. |
void |
invoke()
Executes the tasklet. |
void |
removeAttribute(java.lang.String name)
Removes a tasklet attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the value of a tasklet attribute. |
void |
setCheckpointProcessor(java.lang.String uniqueIdentifier,
com.infoengine.SAK.CheckpointProcessor checkpointProcessor)
Sets the checkpoint processor associated with the tasklet. |
void |
setContext(IeCollection collection)
Sets the context groups associated with this tasklet. |
void |
setParam(java.lang.String name,
java.lang.Object value)
Sets the value of a tasklet parameter. |
void |
setService(IeService service)
Sets the server context associated with this tasklet. |
void |
setTaskletInputStream(IeMultipartInputStream is)
Sets the input stream from which the tasklet can read BLOB data. |
void |
setTaskletOutputStream(java.io.OutputStream os)
Sets the output stream associated with this tasklet. |
void |
setTaskType(int taskType)
Sets the task type context associated with this tasklet. |
void |
setVdb(IeCollection collection)
Sets the VDB associated with this tasklet. |
java.lang.String |
toString()
Returns a string containing the output currently associated with this tasklet. |
void |
write(java.lang.String s)
Writes a string to the output stream associated with this tasklet. |
void |
write(java.lang.String s,
java.lang.String encoding)
Writes a string to the output stream associated with this tasklet. |
| Method Detail |
|---|
int getVersion()
void initialize()
throws IEException
IEException - if the tasklet is not initialized successfully.
void invoke()
throws IEException,
java.io.IOException
IEException - if the tasklet is not executed successfully.
java.io.IOException - if an I/O error occurs.
void setCheckpointProcessor(java.lang.String uniqueIdentifier,
com.infoengine.SAK.CheckpointProcessor checkpointProcessor)
uniqueIdentifier - The unique identifier assigned to the tasklet
instance. This will be passed to the
checkpoint processor object to aid it in
associating saved state with a specific
tasklet instance over time.checkpointProcessor - The object that can be called to save
a tasklet's state. If null, state information
will not be saved for the tasklet.void setTaskletInputStream(IeMultipartInputStream is)
is - The Info*Engine multipart input stream from which the tasklet
can read BLOB data.IeMultipartInputStream getTaskletInputStream()
void setTaskletOutputStream(java.io.OutputStream os)
os - The new output stream.java.io.OutputStream getTaskletOutputStream()
void write(java.lang.String s)
throws java.io.IOException
s - The string to write.
java.io.IOException - if an I/O error occurs.
void write(java.lang.String s,
java.lang.String encoding)
throws java.io.IOException
s - The string to write.encoding - The character encoding to use.
java.io.IOException - if an I/O error occurs.java.lang.String toString()
toString in class java.lang.Objectint getTaskType()
void setTaskType(int taskType)
taskType - The new task type, usually one of Task.TYPE_NORMAL
or Task.TYPE_CREDENTIALS_MAPPERIeService getService()
void setService(IeService service)
service - The new server context.IeCollection getVdb()
void setVdb(IeCollection collection)
collection - The new collection of VDB groups.IeCollection getContext()
void setContext(IeCollection collection)
collection - The new collection of context groups.void addGroup(Group group)
group - the group to be addedGroup getGroup(java.lang.String name)
name - the name of the group to be returned
void setParam(java.lang.String name,
java.lang.Object value)
name - The name of the parameter to set.value - The value to be set.
void addParam(java.lang.String name,
java.lang.Object value)
name - The name of the parameter to add.value - The value to associate with the name.java.lang.Object getParam(java.lang.String name)
name - The name of the parameter to return.
java.lang.Object getParam(java.lang.String name,
java.lang.Object deflt)
name - The name of the parameter to return.deflt - The default value.
java.util.Vector getParams(java.lang.String name)
name - The name of the tasklet parameter.
java.util.Enumeration getParamNames()
void setAttribute(java.lang.String name,
java.lang.Object value)
name - The name of the attribute to set.value - The value to be set.
void addAttribute(java.lang.String name,
java.lang.Object value)
name - The name of the attribute to add.value - The value to associate with the name.java.lang.Object getAttribute(java.lang.String name)
name - The name of the attribute to return.
java.lang.Object getAttribute(java.lang.String name,
java.lang.Object deflt)
name - The name of the attribute to return.deflt - The default value.
java.util.Enumeration getAttributeNames()
void removeAttribute(java.lang.String name)
name - The name of the attribute to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||