Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes

org::apache::vinci::transport::BaseClient Class Reference

Inheritance diagram for org::apache::vinci::transport::BaseClient:
Inheritance graph
[legend]
Collaboration diagram for org::apache::vinci::transport::BaseClient:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BaseClient (String h, int p) throws IOException
 BaseClient (String h, int p, int connect_timeout) throws IOException
 BaseClient (String h, int p, TransportableFactory f, int timeout) throws IOException
 BaseClient ()
 BaseClient (String h, int p, TransportableFactory f) throws IOException
 BaseClient (TransportableFactory f)
 BaseClient (TransportableFactory f, int timeout)
void close ()
KeyValuePair getHeader ()
String getHost ()
int getPort ()
int getSocketTimeout ()
boolean isOpen ()
final void open () throws IOException
void open (Socket use_me) throws IOException
Transportable receive () throws IOException, ServiceException
VinciFrame rpc (Transportable query) throws IOException, ServiceException
VinciFrame rpc (Transportable query, int timeout) throws IOException, ServiceException
void send (Transportable in) throws IOException
Transportable sendAndReceive (Transportable in) throws IOException, ServiceException
Transportable sendAndReceive (Transportable in, TransportableFactory f) throws IOException, ServiceException
Transportable sendAndReceive (Transportable in, TransportableFactory f, int timeout) throws IOException, ServiceException
Transportable sendAndReceive (Transportable in, int timeout) throws IOException, ServiceException
void setConnectTimeout (int timeout)
void setRetry (boolean to)
void setSocketTimeout (int millis) throws IOException
void setTransportableFactory (TransportableFactory f)

Static Public Member Functions

static VinciFrame rpc (Transportable in, String host_name, int p) throws IOException, ServiceException
static VinciFrame rpc (Transportable in, String host_name, int p, int socket_timeout) throws IOException, ServiceException
static VinciFrame rpc (Transportable in, String host_name, int p, int socket_timeout, int connect_timeout) throws IOException, ServiceException
static Transportable sendAndReceive (Transportable in, String host_name, int p, TransportableFactory f, int socket_timeout) throws IOException, ServiceException
static Transportable sendAndReceive (Transportable in, String host_name, int p, TransportableFactory f) throws IOException, ServiceException
static Transportable sendAndReceive (Transportable in, String host_name, int p, TransportableFactory f, int socket_timeout, int connect_timeout) throws IOException, ServiceException

Static Public Attributes

static final int DEFAULT_CONNECT_TIMEOUT = 30000
static final int DEFAULT_SOCKET_TIMEOUT = 120000

Protected Member Functions

Socket getSocket ()
boolean isSocketKeepAliveEnabled ()
final void open (String h, int p) throws IOException
void reopen (Exception e) throws IOException
Transportable sendAndReceiveWork (Transportable in, TransportableFactory f, int timeout) throws IOException, ServiceException
Transportable sendAndReceiveWork (Transportable in, TransportableFactory f) throws IOException, ServiceException

Private Attributes

int connectTimeout = DEFAULT_CONNECT_TIMEOUT
TransportableFactory factory
KeyValuePair header = null
String host = null
InputStream is = null
OutputStream os = null
int port = 0
boolean retry = true
Socket socket = null
int socketTimeout = DEFAULT_SOCKET_TIMEOUT

Detailed Description

Class for conjuring a Vinci service by host/port (that is, without interaction with the naming service). Usually you want to use VinciClient, which extends this class to invoke a service by (qualified) name.

Provides generic "send/recieve/sendAndReceive" for communicating arbitrary (transportable) document models, and also specific "rpc" methods for more convenient support of the VinciFrame document model.

Definition at line 43 of file BaseClient.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index