|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientProperties
The set of properties used to define various preference for ObjectGrid clients.
See the package summary for details on how to use the ClientProperties class and properties file.
Field Summary | |
---|---|
static String |
CLIENT_PROPS_FILE_PATH_KEY
The system property key to override the location of the client properties file. |
static String |
DEFAULTCLIENTPROPERTYFILE
The default name of client property file |
static String |
PROP_LISTENER_HOST
Listener host property key for the client properties file. |
static String |
PROP_LISTENER_PORT
Listener port property key for the client properties file. |
static String |
PROP_PREFER_LOCAL_HOST
Currently, this property is not used. |
static String |
PROP_PREFER_LOCAL_PROCESS
Currently, this property is not used. |
static String |
PROP_PREFER_ZONES
Prefer zones property key for the client properties file. |
static String |
PROP_REQUEST_RETRY_TIMEOUT
The requestRetryTimeout which indicates how long to retry a request (in milliseconds). |
static String |
PROP_SHUFFLE_BOOTSTRAP_ADDRESSES
The shuffleBoostrapAddresses property is used to determine if the catalog service grid addresses should be randomized when used by a client when bootstrapping to the grid. |
Method Summary | |
---|---|
String |
getListenerHost()
Retrieves the host to be used by the ORB. |
int |
getListenerPort()
Retrieves the port to be used by the ORB. |
String[] |
getPreferZones()
Retrieve the preferred zones. |
long |
getRequestRetryTimeout()
Retrieves the current request retry timeout. |
boolean |
isBootStrapListShuffled()
Retrieves the value of the BootStrapListShuffled property. |
boolean |
isPreferLocalHost()
This method is reserved for future use. |
boolean |
isPreferLocalProcess()
This method is reserved for future use. |
void |
setBootStrapListShuffled(boolean shuffle)
Sets the value of the BootStrapListShuffled property. |
void |
setPreferLocalHost(boolean localHost)
This method is reserved for future use. |
void |
setPreferLocalProcess(boolean localProcess)
This method is reserved for future use. |
void |
setPreferZones(String[] zones)
Prefer routing to specific zones. |
void |
setRequestRetryTimeout(long requestRetryTimeout)
Set the request retry timeout to indicate how long to retry a request (in milliseconds) when recoverable failures occur, such as fail-over exceptions. |
Field Detail |
---|
static final String DEFAULTCLIENTPROPERTYFILE
static final String CLIENT_PROPS_FILE_PATH_KEY
static final String PROP_PREFER_LOCAL_PROCESS
setPreferLocalProcess(boolean)
,
Constant Field Valuesstatic final String PROP_PREFER_LOCAL_HOST
setPreferLocalHost(boolean)
,
Constant Field Valuesstatic final String PROP_PREFER_ZONES
setPreferZones(String[])
,
Constant Field Valuesstatic final String PROP_REQUEST_RETRY_TIMEOUT
setRequestRetryTimeout(long)
,
Constant Field Valuesstatic final String PROP_LISTENER_HOST
getListenerHost()
,
Constant Field Valuesstatic final String PROP_LISTENER_PORT
getListenerPort()
,
Constant Field Valuesstatic final String PROP_SHUFFLE_BOOTSTRAP_ADDRESSES
Method Detail |
---|
void setPreferZones(String[] zones)
When zones are enabled on an ObjectGrid, requests will be routed to the specified zones.
zones
- array of zone names. If null or an empty array, then requests are routed to all zones.void setPreferLocalProcess(boolean localProcess)
localProcess
- void setPreferLocalHost(boolean localHost)
localHost
- String[] getPreferZones()
boolean isPreferLocalProcess()
boolean isPreferLocalHost()
void setRequestRetryTimeout(long requestRetryTimeout)
A value of 0 indicates that all requests should fail immediately and avoid any retry logic. Exceptions that cannot succeed even if tried again such as DuplicateKeyException exceptions will be thrown immediately.
A value of -1 indicates that the request retry timeout is not set, meaning that the request duration is governed by the transaction timeout.
The request retry timeout can be overridden using the Session.setRequestRetryTimeout(long)
method.
requestRetryTimeout
- the duration in milliseconds retry a client request, 0 if the request should fail immediately or -1 if the request timeout is not
set.Session.setRequestRetryTimeout(long)
,
ObjectGrid.setTxTimeout(int)
long getRequestRetryTimeout()
String getListenerHost()
int getListenerPort()
boolean isBootStrapListShuffled()
void setBootStrapListShuffled(boolean shuffle)
shuffle
- true the bootstrap list will be shuffled providing each client a random distribution of
catalog servers to select from.
false the first viable address in the list of catalog servers will be used.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |