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::VinciClient Class Reference

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

List of all members.

Public Member Functions

void close ()
VinciContext getContext ()
KeyValuePair getHeader ()
String getHost ()
int getInstance ()
int getLevel ()
int getPort ()
String getQualifiedServiceName ()
String getServiceName ()
int getSocketTimeout ()
boolean isOpen ()
final void open () throws IOException
void open (Socket use_me) throws IOException
void open (String service_name) throws ServiceDownException, VNSException
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, TransportableFactory f) throws IOException, ServiceException
Transportable sendAndReceive (Transportable in) throws IOException, ServiceException
Transportable sendAndReceive (Transportable in, int timeout) throws IOException, ServiceException
Transportable sendAndReceive (Transportable in, TransportableFactory f, int timeout) throws IOException, ServiceException
void setConnectTimeout (int timeout)
void setContext (VinciContext c)
void setRetry (boolean to)
void setSocketTimeout (int millis) throws IOException
void setTransportableFactory (TransportableFactory f)
 VinciClient (String service_name, TransportableFactory factory, VinciContext myContext, int connectTimeout) throws ServiceDownException, VNSException
 VinciClient (TransportableFactory f)
 VinciClient (String service_name, VinciContext myContext) throws ServiceDownException, VNSException
 VinciClient (String service_name, TransportableFactory factory, VinciContext myContext) throws ServiceDownException, VNSException
 VinciClient (String service_name, VinciContext myContext, int connectTimeout) throws ServiceDownException, VNSException
 VinciClient ()
 VinciClient (String service_name, TransportableFactory factory) throws ServiceDownException, VNSException
 VinciClient (String service_name) throws ServiceDownException, VNSException
 VinciClient (String service_name, int connectTimeout) throws ServiceDownException, VNSException
 VinciClient (String service_name, TransportableFactory factory, int connectTimeout) throws ServiceDownException, VNSException

Static Public Member Functions

static void main (String[] args) throws Exception
static VinciFrame rpc (Transportable in, String service_name, int timeout) throws IOException, ServiceException, ServiceDownException, VNSException
static VinciFrame rpc (Transportable in, String host_name, int p, int socket_timeout, int connect_timeout) throws IOException, ServiceException
static VinciFrame rpc (Transportable in, String service_name) throws IOException, ServiceException, ServiceDownException, VNSException
static VinciFrame rpc (Transportable in, String service_name, int timeout, int connect_timeout) throws IOException, ServiceException, ServiceDownException, VNSException
static Transportable sendAndReceive (Transportable in, String host_name, int p, TransportableFactory f, int socket_timeout) throws IOException, ServiceException
static Transportable sendAndReceive (Transportable in, String service_name, TransportableFactory factory, int socket_timeout, int connect_timeout) throws IOException, ServiceException
static Transportable sendAndReceive (Transportable in, String service_name, TransportableFactory factory) throws IOException, ServiceException, ServiceDownException, VNSException
static Transportable sendAndReceive (Transportable in, String service_name, TransportableFactory factory, 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

VinciContext context = null
int instance = -1
int level = -2
String serviceName = null

Detailed Description

Class for conjuring a Vinci service. Adds VNS resolution to BaseClient. Extends BaseClient with static "sendAndReceive" and "rpc" methods for convenient support of one-shot queries.

Definition at line 33 of file VinciClient.java.


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

Generated by  Doxygen 1.6.0   Back to index