|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The OutputAdapter is responsible for taking a completed work set and storing it.
Field Summary | |
static java.lang.String |
DEFAULT_THREAD_MODE
DEFAULT_THREAD_MODE is multi-threaded |
static java.lang.String |
RUN_AS_THREAD
RUN_AS_THREAD = 'Y' means multi-threaded. |
static java.lang.String |
RUN_AS_THREAD_KEY
key in configuration that can be used to set the thread mode for the output adapter. |
Method Summary | |
void |
cleanup()
Perform any cleanup. |
void |
close()
Close is called outside of the strategy to allow the output adapter to commit any work that should only be done once per interface run. |
void |
init(java.util.Properties props)
Initialization. |
void |
markComplete()
Mark output adapter complete |
void |
run()
Processing method for the output adapter. |
void |
setErrorChannel(Channel ch)
Set error record channel |
void |
setExceptionHandler(ExceptionHandler h)
Set the handler used for reporting fatal errors during Filter processing. |
void |
setValidChannel(Channel ch)
Set valid record channel |
Methods inherited from interface com.rhi.architecture.parc.Adapter |
getAuditAgent, setAuditAgent |
Field Detail |
public static final java.lang.String RUN_AS_THREAD_KEY
public static final java.lang.String RUN_AS_THREAD
public static final java.lang.String DEFAULT_THREAD_MODE
Method Detail |
public void init(java.util.Properties props) throws InitializationException
init
in interface Adapter
props
-
InitializationException
- - an error occured while
configuring the output adapter. This will cause the
application to shutdown.public void run()
run
in interface java.lang.Runnable
Runnable.run()
public void markComplete()
public void close() throws ProcessingException
ProcessingException
- Signals a fatal error. The
application will shutdown if this exception is thrown.public void cleanup()
flush()
. Since the application
is shutting down when cleanup is called, there are no
checked exceptions thrown from this method. Cleanup failures
should be able to be ignored.
cleanup
in interface Adapter
public void setValidChannel(Channel ch)
ch
- public void setErrorChannel(Channel ch)
ch
- public void setExceptionHandler(ExceptionHandler h)
h
- - the exception handler that should be used.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |