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 int |
DEFAULT_DNS_CACHE_FLUSH_INTERVAL |
static int |
DEFAULT_DNS_CACHE_SIZE |
static String |
DEFAULT_GFXDCLIENT_PROPERTY_NAME_PREFIX |
static int |
DEFAULT_INPUT_BUFFER_SIZE |
static int |
DEFAULT_KEEPALIVE_CNT |
static int |
DEFAULT_KEEPALIVE_IDLE |
static int |
DEFAULT_KEEPALIVE_INTVL |
static String |
DEFAULT_LOG_FILE |
static int |
DEFAULT_OUTPUT_BUFFER_SIZE |
static String |
DEFAULT_PROPERTY_NAME_PREFIX |
static String |
DNS_CACHE_FLUSH_INTERVAL
Time interval in seconds after which
DNSCacheService is
flushed and refreshed on demand for DNS entries that do no specify a TTL. |
static String |
DNS_CACHE_SIZE
The maximum size of
DNSCacheService. |
static String |
GFXD_FACTORY_PROVIDER |
static String |
KEEPALIVE_CNT_NAME
TCP KeepAlive COUNT for the network server and client sockets.
|
static String |
KEEPALIVE_IDLE_NAME
TCP KeepAlive IDLE timeout in seconds for the network server and client
sockets.
|
static String |
KEEPALIVE_INTVL_NAME
TCP KeepAlive INTERVAL timeout in seconds for the network server and client
sockets.
|
static String |
LOG_FILE_NAME
The name of the "logFile" property
|
static String |
READ_TIMEOUT_NAME
Read timeout for the connection, in seconds.
|
static String |
SOCKET_INPUT_BUFFER_SIZE_NAME
The socket buffer size to use for reading.
|
static String |
SOCKET_OUTPUT_BUFFER_SIZE_NAME
The socket buffer size to use for writing.
|
static String |
THRIFT_SELECTOR_SERVER
Whether to use selector based server (recommended) for the thrift server or
per connection thread server model.
|
public static final String LOG_FILE_NAME
public static final String SOCKET_INPUT_BUFFER_SIZE_NAME
public static final String SOCKET_OUTPUT_BUFFER_SIZE_NAME
public static final String READ_TIMEOUT_NAME
public static final String KEEPALIVE_IDLE_NAME
public static final String KEEPALIVE_INTVL_NAME
KEEPALIVE_IDLE_NAME)
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_NAME
public static final String DNS_CACHE_SIZE
DNSCacheService. Zero or negative means to
use Java default DNS cache and not DNSCacheService. Default is
0.public static final String DNS_CACHE_FLUSH_INTERVAL
DNSCacheService is
flushed and refreshed on demand for DNS entries that do no specify a TTL. A
value of zero or negative means the cache is never flushed of such records.
Default is 3600 seconds.public static final String THRIFT_SELECTOR_SERVER
public static final String DEFAULT_PROPERTY_NAME_PREFIX
public static final String DEFAULT_GFXDCLIENT_PROPERTY_NAME_PREFIX
public static String DEFAULT_LOG_FILE
public static final int DEFAULT_INPUT_BUFFER_SIZE
public static final int DEFAULT_OUTPUT_BUFFER_SIZE
public static final int DEFAULT_KEEPALIVE_IDLE
public static final int DEFAULT_KEEPALIVE_INTVL
public static final int DEFAULT_KEEPALIVE_CNT
public static final int DEFAULT_DNS_CACHE_SIZE
public static final int DEFAULT_DNS_CACHE_FLUSH_INTERVAL
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 void refreshProperties()
public int getInteger(String name, int defaultValue)
public long getLong(String name, long defaultValue)
public boolean getBoolean(String name, boolean defaultValue)
public String getSystemPropertyNamePrefix()
public String getLogFile()
public void setLogFile(String fileName)
public int getSocketInputBufferSize()
public void setSocketInputBufferSize(int size)
public int getSocketOutputBufferSize()
public void setSocketOutputBufferSize(int size)
public int getKeepAliveIdle()
public void setKeepAliveIdle(int v)
public int getKeepAliveInterval()
public void setKeepAliveInterval(int v)
public int getKeepAliveCount()
public void setKeepAliveCount(int v)
public int getDNSCacheSize()
public void setDNSCacheSize(int v)
public int getDNSCacheFlushInterval()
public void setDNSCacheFlushInterval(int v)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.