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 | Class and Description |
---|---|
class |
XINSCallConfig
Call configuration for the XINS service caller.
|
Modifier and Type | Method and Description |
---|---|
protected CallConfig |
XINSServiceCaller.getDefaultCallConfig()
Returns a default
CallConfig object. |
Modifier and Type | Method and Description |
---|---|
Object |
XINSServiceCaller.doCallImpl(CallRequest request,
CallConfig callConfig,
TargetDescriptor target)
Executes the specified request on the given target.
|
protected boolean |
XINSServiceCaller.shouldFailOver(CallRequest request,
CallConfig callConfig,
List<CallException> exceptions)
Determines whether a call should fail-over to the next selected target
based on a request, call configuration and exception list.
|
Modifier and Type | Class and Description |
---|---|
class |
HTTPCallConfig
Call configuration for the HTTP service caller.
|
Modifier and Type | Method and Description |
---|---|
protected CallConfig |
HTTPServiceCaller.getDefaultCallConfig()
Returns a default
CallConfig object. |
Modifier and Type | Method and Description |
---|---|
Object |
HTTPServiceCaller.doCallImpl(CallRequest request,
CallConfig callConfig,
TargetDescriptor target)
Executes a request towards the specified target.
|
protected boolean |
HTTPServiceCaller.shouldFailOver(CallRequest request,
CallConfig callConfig,
List<CallException> exceptions)
Determines whether a call should fail-over to the next selected target
based on a request, call configuration and exception list.
|
Modifier and Type | Method and Description |
---|---|
CallConfig |
ServiceCaller.getCallConfig()
Returns the
CallConfig associated with this service caller. |
protected CallConfig |
CallRequest.getCallConfig()
Retrieves the associated call configuration, if any.
|
protected abstract CallConfig |
ServiceCaller.getDefaultCallConfig()
Returns a default
CallConfig object. |
Modifier and Type | Method and Description |
---|---|
protected CallResult |
ServiceCaller.doCall(CallRequest request,
CallConfig callConfig)
Attempts to execute the specified call request on one of the target
services, with the specified call configuration.
|
abstract Object |
ServiceCaller.doCallImpl(CallRequest request,
CallConfig callConfig,
TargetDescriptor target)
Calls the specified target using the specified subject.
|
protected void |
ServiceCaller.setCallConfig(CallConfig config)
Sets the
CallConfig associated with this service caller. |
protected void |
CallRequest.setCallConfig(CallConfig config)
Sets the call configuration associated with this request.
|
protected boolean |
ServiceCaller.shouldFailOver(CallRequest request,
CallConfig callConfig,
List<CallException> exceptions)
Determines whether a call should fail-over to the next selected target
based on a request, call configuration and exception list.
|
Constructor and Description |
---|
ServiceCaller(Descriptor descriptor,
CallConfig callConfig)
Constructs a new
ServiceCaller with the specified
CallConfig . |
See http://www.xins.org/.