public interface FabricService
FabricServer
and FabricLocator.| Modifier and Type | Interface and Description |
|---|---|
static class |
FabricService.State
Status of the service enumerating different states the service can be in.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
NETSERVER_DEFAULT_PORT
the default port for network server
|
static String |
STOP_NETWORK_SERVERS
Shutdown boolean property to enable/disable shutting down of all network
servers in
stop(Properties). |
| Modifier and Type | Method and Description |
|---|---|
List<NetworkInterface> |
getAllNetworkServers()
Get a collection of all the
NetworkInterfaces started so far using
startNetworkServer(String, int, Properties). |
boolean |
isReconnecting()
Test to see whether the FabricService is in the process of reconnecting
and recreating the cache after it has been removed from the system
by other members.
|
NetworkInterface |
startDRDAServer(String bindAddress,
int port,
Properties networkProperties)
Start listening for DRDA clients on a given host/port address.
|
NetworkInterface |
startNetworkServer(String bindAddress,
int port,
Properties networkProperties)
Start listening for network clients on a given host/port address.
|
NetworkInterface |
startThriftServer(String bindAddress,
int port,
Properties networkProperties)
Start listening for Thrift clients on a given host/port address.
|
FabricService.State |
status()
Returns the status of this instance.
|
void |
stop(Properties shutdownCredentials)
Disconnect current virtual machine from distributed system.
|
void |
stopAllNetworkServers()
Stop all the
NetworkInterfaces started using
startNetworkServer(String, int, Properties). |
void |
stopReconnecting()
Force the FabricService to stop reconnecting.
|
boolean |
waitUntilReconnected(long time,
TimeUnit units)
Wait for the FabricService to finish reconnecting to the distributed system.
|
static final int NETSERVER_DEFAULT_PORT
static final String STOP_NETWORK_SERVERS
stop(Properties). Default is true.NetworkInterface startNetworkServer(String bindAddress, int port, Properties networkProperties) throws SQLException
startDRDAServer(java.lang.String, int, java.util.Properties) unless
ClientSharedUtils.USE_THRIFT_AS_DEFAULT system property is set in
which case it start a Thrift server startThriftServer(java.lang.String, int, java.util.Properties)bindAddress - The host name or IP address to bind the network server. If this is
null then use the "bind-address" GemFire property and if found
listens only on that address, else binds to local loopback
address.port - The port to bind the network server. A value <= 0 will cause
this to use the default port NETSERVER_DEFAULT_PORT.networkProperties - network server properties.SQLExceptionNetworkInterface startThriftServer(String bindAddress, int port, Properties networkProperties) throws SQLException
bindAddress - The host name or IP address to bind the network server. If this is
null then use the "bind-address" GemFire property and if found
listens only on that address, else binds to local loopback
address.port - The port to bind the network server. A value <= 0 will cause
this to use the default port NETSERVER_DEFAULT_PORT.networkProperties - network server properties.SQLExceptionNetworkInterface startDRDAServer(String bindAddress, int port, Properties networkProperties) throws SQLException
bindAddress - The host name or IP address to bind the DRDA server. If this is
null then use the "bind-address" GemFire property and if found
listens only on that address, else binds to local loopback
address.port - The port to bind the DRDA server. A value <= 0 will cause
this to use the default port NETSERVER_DEFAULT_PORT.networkProperties - network server properties.SQLExceptionvoid stopAllNetworkServers()
NetworkInterfaces started using
startNetworkServer(String, int, Properties).List<NetworkInterface> getAllNetworkServers()
NetworkInterfaces started so far using
startNetworkServer(String, int, Properties).void stop(Properties shutdownCredentials) throws SQLException
shutdownCredentials - Can optionally be null if Authentication is switched off,
otherwise system user authentication credentials with which this
instance was started.SQLExceptionFabricService.State status()
boolean isReconnecting()
This will also return true if the FabricService has finished reconnecting.
boolean waitUntilReconnected(long time,
TimeUnit units)
throws InterruptedException
time - amount of time to wait, or -1 to wait foreverunits - InterruptedException - if the thread is interrupted while waitingvoid stopReconnecting()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.