public class ExecAdaptor extends ExecPlugin implements Adaptor
| Modifier and Type | Field and Description |
|---|---|
protected long |
adaptorID |
statusKO, statusOK| Constructor and Description |
|---|
ExecAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCmde() |
String |
getCurrentStatus()
Return the adaptor's state Should not include class name, datatype or byte
offset, which are written by caller.
|
String |
getStreamName()
Return the stream name
|
String |
getType() |
void |
hardStop()
Signals this adaptor to come to an abrupt stop, as quickly as it can.
|
long |
shutdown()
Signals this adaptor to come to an orderly stop.
|
void |
start(long adaptorID,
String type,
String status,
long offset,
ChunkReceiver dest)
Start this adaptor
|
execute, postProcess, stop, waitForpublic String getCurrentStatus() throws AdaptorException
AdaptorgetCurrentStatus in interface AdaptorAdaptorExceptionpublic String getStreamName()
AdaptorgetStreamName in interface Adaptorpublic void hardStop()
throws AdaptorException
AdaptorhardStop in interface AdaptorAdaptorExceptionpublic long shutdown()
throws AdaptorException
Adaptorshutdown in interface AdaptorAdaptorExceptionpublic void start(long adaptorID,
String type,
String status,
long offset,
ChunkReceiver dest)
throws AdaptorException
Adaptorstart in interface Adaptortype - the application type, who is starting this adaptorstatus - the status string to use for configuration.offset - the stream offset of the first byte sent by this adaptorAdaptorExceptionpublic String getCmde()
getCmde in class ExecPluginCopyright © ${year} The Apache Software Foundation