org.xins.common.service |
Service calling classes, supporting load-balancing and failover.
@since XINS 1.0.0
|
Java Source File Name | Type | Comment |
CallConfig.java | Class | Configuration for a service call. |
CallException.java | Class | Root class for all exceptions that indicate a ServiceCaller
call failed. |
CallExceptionList.java | Class | List of call exceptions. |
CallRequest.java | Class | Abstraction of a request for a ServiceCaller call. |
CallResult.java | Class | Result of a call to a service. |
ConnectionCallException.java | Class | Exception that indicates that a connection to a service could not be
established. |
ConnectionRefusedCallException.java | Class | Exception that indicates that a connection to a service could not be
established since it was refused. |
ConnectionTimeOutCallException.java | Class | Exception that indicates that a connection to a service could not be
established due to a connection time-out. |
Descriptor.java | Class | Descriptor for a service or group of services. |
DescriptorBuilder.java | Class | Builder that can build a Descriptor object based on a set of
properties.
Examples
The following example is the definition of a single back-end at
http://somehost/ , identified by the property name
"s1" , the time-out is set to 20 seconds:
s1=service, http://somehost/, 20000
The next example is the definition of 4 back-ends, of which one will be
chosen randomly. |
GenericCallException.java | Class | Generic call exception, not related to any particular kind of service. |
GroupDescriptor.java | Class | Descriptor for a group of services. |
IOCallException.java | Class | Exception that indicates that an I/O error interrupted a service call. |
NoRouteToHostCallException.java | Class | Exception that indicates that a connection to a service could not be
established because no network route could be found to the host. |
ServiceCaller.java | Class | Abstraction of a service caller for a TCP-based service. |
SocketTimeOutCallException.java | Class | Exception that indicates that data was not received on a socket within a
designated time-out period. |
TargetDescriptor.java | Class | Descriptor for a single target service. |
TotalTimeOutCallException.java | Class | Exception that indicates the total time-out for a request was reached, so
the request was aborted. |
UnexpectedExceptionCallException.java | Class | Exception that indicates an unexpected exception was caught while
performing a call. |
UnknownHostCallException.java | Class | Exception that indicates that a connection to a service could not be
established since the indicated host is unknown. |
UnsupportedProtocolException.java | Class | Exception that indicates that protocol specified in a
TargetDescriptor is not supported by a service caller. |