|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 definitionMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class ReceiverThreadBase
protected FileReceiver createReceiver()
FileReceiver
used to read from a file.
FileReceiver
protected void initializeThread()
run
method is not the standard
implementation.
initializeThread
in class ReceiverThreadBase
protected void registerResources(TAManager taManager)
run
method is not the standard
implementation.
registerResources
in class ReceiverThreadBase
taManager
- the transaction manager in which the resources shall be
registeredprotected java.lang.Object receive()
run
method is not the standard
implementation.
receive
in class ReceiverThreadBase
null
when no message has
been availablepublic java.lang.String getType()
Receiver
Receiver
can receive data either as a
String
or as an Object
from a neighboring
system.Strings
, getType
returns Constants.TYPE_TEXT
Objects
, getType
returns Constants.TYPE_OBJECT
Receiver.getType()
protected java.lang.String getReceiverClassName()
ReceiverThreadBase
getReceiverClassName
in class ReceiverThreadBase
ReceiverThreadBase.getReceiverClassName()
protected java.lang.String getAddress()
getAddress
in class ReceiverThreadBase
ReceiverThreadBase.getAddress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |