Inheritance diagram for de::gsi::bel::xfer::XferImpl:
Public Member Functions | |
XferImpl (String host, int port) throws IOException | |
XferImpl (Socket s) throws IOException | |
Socket | getSocket () |
void | addObjectReceivedListener (XferListener listener) |
void | rmObjectReceivedListener (XferListener listener) |
String | getConnectionInfo () |
String | toString () |
XferPrinter | getXferPrinter () |
synchronized void | sendObject (Object request) throws IOException |
void | finalize () |
void | close () throws IOException |
Protected Member Functions | |
void | triggerObjectReceived (Object obj) |
void | triggerExit () |
Package Attributes | |
Connection | con = null |
de::gsi::bel::xfer::XferImpl::XferImpl | ( | String | host, | |
int | port | |||
) | throws IOException [inline] |
You give host and port of the service you want to exchange objects with.
host | hostname the service is running on | |
port | ip-portnumber the service is listening to |
IOException |
de::gsi::bel::xfer::XferImpl::XferImpl | ( | Socket | s | ) | throws IOException [inline] |
Use this constructor if you have already a connected socket to the service.
s | connected socket to service |
IOException |
void de::gsi::bel::xfer::XferImpl::addObjectReceivedListener | ( | XferListener | listener | ) | [inline, virtual] |
Add a listener to the Xfer object. The listener method handleMessage is called when an object is received, the exithandlder is called when the client closes the connection.
listener | the listener to add |
Implements de::gsi::bel::xfer::Xfer.
void de::gsi::bel::xfer::XferImpl::close | ( | ) | throws IOException [inline, virtual] |
close the connection. The exitHandler is not called.
IOException |
Implements de::gsi::bel::xfer::Xfer.
void de::gsi::bel::xfer::XferImpl::finalize | ( | ) | [inline] |
finalize method is called when object is deconstructed. It closes socket and stops receiver-thread
String de::gsi::bel::xfer::XferImpl::getConnectionInfo | ( | ) | [inline, virtual] |
Retrieve some information of the underlying connection
Implements de::gsi::bel::xfer::Xfer.
Socket de::gsi::bel::xfer::XferImpl::getSocket | ( | ) | [inline, virtual] |
Get the socket of the xfer connection
Implements de::gsi::bel::xfer::Xfer.
XferPrinter de::gsi::bel::xfer::XferImpl::getXferPrinter | ( | ) | [inline, virtual] |
get the XferPrinter Object of Xfer
Implements de::gsi::bel::xfer::Xfer.
void de::gsi::bel::xfer::XferImpl::rmObjectReceivedListener | ( | XferListener | listener | ) | [inline, virtual] |
synchronized void de::gsi::bel::xfer::XferImpl::sendObject | ( | Object | request | ) | throws IOException [inline, virtual] |
send Object to a connected server.
request | Object to send |
Implements de::gsi::bel::xfer::Xfer.
String de::gsi::bel::xfer::XferImpl::toString | ( | ) | [inline, virtual] |
void de::gsi::bel::xfer::XferImpl::triggerExit | ( | ) | [inline, protected] |
trigger exit listener of Xfer object.
void de::gsi::bel::xfer::XferImpl::triggerObjectReceived | ( | Object | obj | ) | [inline, protected] |
trigger message listener of Xfer object.
obj | received object |