|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addAttribute(String name,
Object value)
Adds a tasklet attribute value. |
void |
addGroup(Group group)
Adds a group to the tasklet's VDB. |
void |
addParam(String name,
Object value)
Adds a tasklet parameter value. |
Object |
getAttribute(String name)
Returns the value of a tasklet attribute. |
Object |
getAttribute(String name,
Object deflt)
Returns the value of a tasklet attribute. |
Enumeration |
getAttributeNames()
Returns the names of all tasklet attributes currently defined. |
IeCollection |
getContext()
Returns the context collection associated with this tasklet. |
Group |
getGroup(String name)
Returns a group from the tasklet's VDB. |
Object |
getParam(String name)
Returns the value of a tasklet parameter. |
Object |
getParam(String name,
Object deflt)
Returns the value of a tasklet parameter. |
Enumeration |
getParamNames()
Returns the names of all tasklet parameters currently defined. |
Vector |
getParams(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. |
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(String name)
Removes a tasklet attribute. |
void |
setAttribute(String name,
Object value)
Sets the value of a tasklet attribute. |
void |
setCheckpointProcessor(String uniqueIdentifier,
CheckpointProcessor checkpointProcessor)
Sets the checkpoint processor associated with the tasklet. |
void |
setContext(IeCollection collection)
Sets the context groups associated with this tasklet. |
void |
setParam(String name,
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(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. |
String |
toString()
Returns a string containing the output currently associated with this tasklet. |
void |
write(String s)
Writes a string to the output stream associated with this tasklet. |
void |
write(String s,
String encoding)
Writes a string to the output stream associated with this tasklet. |
Method Detail |
public int getVersion()
public void initialize() throws IEException
IEException
- if the tasklet is not initialized successfully.public void invoke() throws IEException, IOException
IEException
- if the tasklet is not executed successfully.
IOException
- if an I/O error occurs.public void setCheckpointProcessor(String uniqueIdentifier, 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.public void setTaskletInputStream(IeMultipartInputStream is)
is
- The Info*Engine multipart input stream from which the tasklet
can read BLOB data.public IeMultipartInputStream getTaskletInputStream()
public void setTaskletOutputStream(OutputStream os)
os
- The new output stream.public OutputStream getTaskletOutputStream()
public void write(String s) throws IOException
s
- The string to write.
IOException
- if an I/O error occurs.public void write(String s, String encoding) throws IOException
s
- The string to write.encoding
- The character encoding to use.
IOException
- if an I/O error occurs.public String toString()
public int getTaskType()
public void setTaskType(int taskType)
taskType
- The new task type, usually one of Task.TYPE_NORMAL
or Task.TYPE_CREDENTIALS_MAPPERpublic IeService getService()
public void setService(IeService service)
service
- The new server context.public IeCollection getVdb()
public void setVdb(IeCollection collection)
collection
- The new collection of VDB groups.public IeCollection getContext()
public void setContext(IeCollection collection)
collection
- The new collection of context groups.public void addGroup(Group group)
group
- the group to be addedpublic Group getGroup(String name)
name
- the name of the group to be returned
public void setParam(String name, Object value)
name
- The name of the parameter to set.value
- The value to be set.public void addParam(String name, Object value)
name
- The name of the parameter to add.value
- The value to associate with the name.public Object getParam(String name)
name
- The name of the parameter to return.
public Object getParam(String name, Object deflt)
name
- The name of the parameter to return.deflt
- The default value.
public Vector getParams(String name)
name
- The name of the tasklet parameter.
public Enumeration getParamNames()
public void setAttribute(String name, Object value)
name
- The name of the attribute to set.value
- The value to be set.public void addAttribute(String name, Object value)
name
- The name of the attribute to add.value
- The value to associate with the name.public Object getAttribute(String name)
name
- The name of the attribute to return.
public Object getAttribute(String name, Object deflt)
name
- The name of the attribute to return.deflt
- The default value.
public Enumeration getAttributeNames()
public void removeAttribute(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 |