Package | Description |
---|---|
org.xins.client |
XINS client framework.
|
org.xins.common.http |
HTTP-related utility classes.
|
org.xins.common.service |
Service calling classes, supporting load-balancing and failover.
|
Modifier and Type | Method and Description |
---|---|
TargetDescriptor |
AbstractCAPICallResult.succeededTarget()
Returns the target for which the call succeeded.
|
Modifier and Type | Method and Description |
---|---|
protected CallResult |
XINSServiceCaller.createCallResult(CallRequest request,
TargetDescriptor succeededTarget,
long duration,
List<CallException> exceptions,
Object result)
Constructs an appropriate
CallResult object for a
successful call attempt. |
protected AbstractCAPIErrorCodeException |
AbstractCAPI.createErrorCodeException(XINSCallRequest request,
TargetDescriptor target,
long duration,
XINSCallResultData resultData)
Creates an
AbstractCAPIErrorCodeException for the specified
error code. |
Object |
XINSServiceCaller.doCallImpl(CallRequest request,
CallConfig callConfig,
TargetDescriptor target)
Executes the specified request on the given target.
|
Constructor and Description |
---|
AbstractCAPIErrorCodeException(XINSCallRequest request,
TargetDescriptor target,
long duration,
XINSCallResultData resultData)
Constructs a new
AbstractCAPIErrorCodeException . |
NotModifiedException(XINSCallRequest request,
TargetDescriptor target,
long duration) |
UnacceptableErrorCodeXINSCallException(XINSCallRequest request,
TargetDescriptor target,
long duration,
XINSCallResultData resultData)
Constructs a new
UnacceptableErrorCodeXINSCallException
based on a XINSCallResultData instance. |
Modifier and Type | Method and Description |
---|---|
protected CallResult |
HTTPServiceCaller.createCallResult(CallRequest request,
TargetDescriptor succeededTarget,
long duration,
List<CallException> exceptions,
Object result)
Constructs an appropriate
CallResult object for a
successful call attempt. |
Object |
HTTPServiceCaller.doCallImpl(CallRequest request,
CallConfig callConfig,
TargetDescriptor target)
Executes a request towards the specified target.
|
Constructor and Description |
---|
HTTPCallResult(HTTPCallRequest request,
TargetDescriptor succeededTarget,
long duration,
List<CallException> exceptions,
HTTPCallResultData data)
Constructs a new
HTTPCallResult object. |
StatusCodeHTTPCallException(HTTPCallRequest request,
TargetDescriptor target,
long duration,
int code,
String detail)
Constructs a new
StatusCodeHTTPCallException based on the original request,
target called, call duration and HTTP status code. |
Modifier and Type | Method and Description |
---|---|
TargetDescriptor |
CallResult.getSucceededTarget()
Returns the target for which the call succeeded.
|
TargetDescriptor |
CallException.getTarget()
Returns the descriptor for the target that was attempted to be called.
|
TargetDescriptor |
TargetDescriptor.getTargetByCRC(int crc)
Returns the
TargetDescriptor that matches the specified
CRC-32 checksum. |
TargetDescriptor |
GroupDescriptor.getTargetByCRC(int crc)
Returns the
TargetDescriptor that matches the specified
CRC-32 checksum. |
abstract TargetDescriptor |
Descriptor.getTargetByCRC(int crc)
Returns the
TargetDescriptor that matches the specified
CRC-32 checksum. |
TargetDescriptor |
UnsupportedProtocolException.getTargetDescriptor()
Returns the target descriptor that has an unsupported protocol.
|
Modifier and Type | Method and Description |
---|---|
Iterator<TargetDescriptor> |
TargetDescriptor.iterator() |
Iterator<TargetDescriptor> |
GroupDescriptor.iterator() |
Modifier and Type | Method and Description |
---|---|
protected void |
ServiceCaller.controlTimeOut(Runnable task,
TargetDescriptor descriptor)
Runs the specified task.
|
protected abstract CallResult |
ServiceCaller.createCallResult(CallRequest request,
TargetDescriptor succeededTarget,
long duration,
List<CallException> exceptions,
Object result)
Constructs an appropriate
CallResult object for a
successful call attempt. |
abstract Object |
ServiceCaller.doCallImpl(CallRequest request,
CallConfig callConfig,
TargetDescriptor target)
Calls the specified target using the specified subject.
|
void |
ServiceCaller.testTargetDescriptor(TargetDescriptor target)
Asserts that the specified target descriptor is considered acceptable
for this service caller.
|
Constructor and Description |
---|
CallException(String shortReason,
CallRequest request,
TargetDescriptor target,
long duration,
String detail,
Throwable cause)
Constructs a new
CallException based on a short reason, the
original request, target called, call duration, detail message and cause
exception. |
CallResult(CallRequest request,
TargetDescriptor succeededTarget,
long duration,
List<CallException> exceptions)
Constructs a new
CallResult object. |
ConnectionRefusedCallException(CallRequest request,
TargetDescriptor target,
long duration)
Constructs a new
ConnectionRefusedCallException . |
ConnectionTimeOutCallException(CallRequest request,
TargetDescriptor target,
long duration)
Constructs a new
ConnectionTimeOutCallException . |
IOCallException(CallRequest request,
TargetDescriptor target,
long duration,
IOException ioException)
Constructs a new
IOCallException . |
NoRouteToHostCallException(CallRequest request,
TargetDescriptor target,
long duration)
Constructs a new
NoRouteToHostCallException . |
SocketTimeOutCallException(CallRequest request,
TargetDescriptor target,
long duration)
Constructs a new
SocketTimeOutCallException . |
TotalTimeOutCallException(CallRequest request,
TargetDescriptor target,
long duration)
Constructs a new
TotalTimeOutCallException . |
UnexpectedExceptionCallException(CallRequest request,
TargetDescriptor target,
long duration,
String detail,
Throwable cause)
Constructs a new
UnexpectedExceptionCallException . |
UnknownHostCallException(CallRequest request,
TargetDescriptor target,
long duration)
Constructs a new
UnknownHostCallException . |
UnsupportedProtocolException(TargetDescriptor target)
Constructs a new
UnsupportedProtocolException for the
specified target descriptor. |
See http://www.xins.org/.