|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.ReceiverThreadBase
net.sf.xbus.technical.file.FileReceiverThread
public class FileReceiverThread
The FileReceiverThread runs in the background and receives
data from files when they exist.
| Field Summary |
|---|
| Fields inherited from class net.sf.xbus.technical.ReceiverThreadBase |
|---|
DEFAULT_ERROR_TIMEOUT, DEFAULT_TIMEOUT |
| Constructor Summary | |
|---|---|
FileReceiverThread(XBUSSystem source)
Stores the interface name |
|
| Method Summary | |
|---|---|
protected FileReceiver |
createReceiver()
Creates an instance of FileReceiver
used to read from a file. |
protected java.lang.String |
getAddress()
Returns the file name of the received message. |
protected java.lang.String |
getReceiverClassName()
Returns the name of the receiver class, used for example to determine values in the configuration. |
java.lang.String |
getType()
A Receiver can receive data either as a
String or as an Object from a neighboring
system. |
protected void |
initializeThread()
Not implemented because the run method is not the standard
implementation. |
protected java.lang.Object |
receive()
Not implemented because the run method is not the standard
implementation. |
protected void |
registerResources(TAManager taManager)
Not implemented because the run method is not the standard
implementation. |
void |
run()
Receives and processes messages for one system. |
| Methods inherited from class net.sf.xbus.technical.ReceiverThreadBase |
|---|
checkProceed, getErrorTimeout, getSource, getTimeout, incrementErrorCounter, initializeErrorCounter, interruptThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileReceiverThread(XBUSSystem source)
source - name of the interface definition| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class ReceiverThreadBaseprotected FileReceiver createReceiver()
FileReceiver
used to read from a file.
FileReceiverprotected void initializeThread()
run method is not the standard
implementation.
initializeThread in class ReceiverThreadBaseprotected void registerResources(TAManager taManager)
run method is not the standard
implementation.
registerResources in class ReceiverThreadBasetaManager - the transaction manager in which the resources shall be
registeredprotected java.lang.Object receive()
run method is not the standard
implementation.
receive in class ReceiverThreadBasenull when no message has
been availablepublic java.lang.String getType()
ReceiverReceiver can receive data either as a
String or as an Object from a neighboring
system.Strings, getType
returns Constants.TYPE_TEXTObjects, getType
returns Constants.TYPE_OBJECT
Receiver.getType()protected java.lang.String getReceiverClassName()
ReceiverThreadBase
getReceiverClassName in class ReceiverThreadBaseReceiverThreadBase.getReceiverClassName()protected java.lang.String getAddress()
getAddress in class ReceiverThreadBaseReceiverThreadBase.getAddress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||