public final class SystemProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SystemProperties.Callbacks
Common internal product callbacks on client and server side to possibly
plugin some system behaviour.
|
static class |
SystemProperties.DefaultCallbacks |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_GFXDCLIENT_PROPERTY_NAME_PREFIX |
static int |
DEFAULT_KEEPALIVE_CNT |
static int |
DEFAULT_KEEPALIVE_IDLE |
static int |
DEFAULT_KEEPALIVE_INTVL |
static String |
DEFAULT_PROPERTY_NAME_PREFIX |
static String |
GFXD_FACTORY_PROVIDER |
static String |
KEEPALIVE_CNT
TCP KeepAlive COUNT for the network server and client sockets.
|
static String |
KEEPALIVE_IDLE
TCP KeepAlive IDLE timeout in seconds for the network server and client
sockets.
|
static String |
KEEPALIVE_INTVL
TCP KeepAlive INTERVAL timeout in seconds for the network server and client
sockets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String name,
boolean defaultValue) |
SystemProperties.Callbacks |
getCallbacks() |
static SystemProperties |
getClientInstance()
Get an instance appropriate for client instances.
|
static SystemProperties.Callbacks |
getGFXDServerCallbacks() |
int |
getInteger(String name,
int defaultValue) |
long |
getLong(String name,
long defaultValue) |
static SystemProperties |
getServerInstance()
Get an instance appropriate for server instances.
|
String |
getString(String name,
String defaultValue) |
String |
getSystemPropertyNamePrefix() |
static boolean |
isUsingGemFireXDEntryPoint() |
void |
setCallbacks(SystemProperties.Callbacks cb) |
public static final String KEEPALIVE_IDLE
public static final String KEEPALIVE_INTVL
KEEPALIVE_IDLE) to
determine if the other side is alive or not.
Note that this may not be supported by all platforms (e.g. Solaris), in which case this will be ignored and an info-level message logged that the option could not be enabled on the socket.
public static final String KEEPALIVE_CNT
Note that this may not be supported by all platforms (e.g. Solaris), in which case this will be ignored and an info-level message logged that the option could not be enabled on the socket.
public static final int DEFAULT_KEEPALIVE_IDLE
public static final int DEFAULT_KEEPALIVE_INTVL
public static final int DEFAULT_KEEPALIVE_CNT
public static final String DEFAULT_PROPERTY_NAME_PREFIX
public static final String DEFAULT_GFXDCLIENT_PROPERTY_NAME_PREFIX
public static final String GFXD_FACTORY_PROVIDER
public static boolean isUsingGemFireXDEntryPoint()
public static SystemProperties getServerInstance()
public static SystemProperties getClientInstance()
NOTE: This will also read server prefixed instances as fallback to handle
the case for few common properties (like in ClientSharedUtils)
when used in JVMs that are configure to be both client and server.
public static SystemProperties.Callbacks getGFXDServerCallbacks()
public void setCallbacks(SystemProperties.Callbacks cb)
public SystemProperties.Callbacks getCallbacks()
public int getInteger(String name, int defaultValue)
public long getLong(String name, long defaultValue)
public boolean getBoolean(String name, boolean defaultValue)
public String getSystemPropertyNamePrefix()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.