public class BridgeHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BridgeHelper.Endpoint
Represents the endpoint for a bridge server.
|
| Constructor and Description |
|---|
BridgeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bridgeServerToString(com.gemstone.gemfire.cache.server.CacheServer bridge)
Returns the given bridge server as a string.
|
static com.gemstone.gemfire.cache.server.CacheServer |
createBridgeServer(String bridgeConfig)
Creates a bridge server in the current cache.
|
static BridgeDescription |
getBridgeDescription(String bridgeConfig)
Returns the
BridgeDescription with the given configuration name
from BridgePrms.names. |
static com.gemstone.gemfire.cache.server.CacheServer |
getBridgeServer()
Returns the bridge server for the current cache, or null if no bridge
server or cache exists.
|
protected static BridgeHelper.Endpoint |
getEndpoint(int port,
String[] groups)
Gets the bridge server endpoint for this VM from the shared
BridgeBlackboard map using the given port and server groups. |
protected static BridgeHelper.Endpoint |
getEndpoint(String[] groups)
Gets the bridge server endpoint for this VM from the shared
BridgeBlackboard map using the given server groups. |
static List<BridgeHelper.Endpoint> |
getEndpoints()
Returns all bridge server endpoints from the
BridgeBlackboard map,
a possibly empty list. |
static List |
getEndpoints(String distributedSystemName)
Returns all bridge server endpoints) for the specified
distributed system from the
BridgeBlackboard map, a
possibly empty list. |
static List |
getEndpointsInGroup(String distributedSystemName,
String group)
Returns all bridge server endpoints) for the specified
distributed system in the given server group from the
BridgeBlackboard map, a possibly empty list. |
static List |
getRemoteEndpoints()
Returns all remote bridge server endpoints from the
BridgeBlackboard map, a possibly empty list. |
static List |
getRemoteEndpoints(String distributedSystem)
Returns all remote bridge server endpoints for the specified distributed
system from the
BridgeBlackboard map, a possibly empty list. |
static com.gemstone.gemfire.cache.server.CacheServer |
startBridgeServer()
Starts the existing bridge server in the current cache.
|
static com.gemstone.gemfire.cache.server.CacheServer |
startBridgeServer(String bridgeConfig)
Creates and starts a bridge server in the current cache using the given
bridge configuration.
|
static void |
stopBridgeServer()
Stops the bridge server in the current cache, if it exists.
|
public static com.gemstone.gemfire.cache.server.CacheServer startBridgeServer(String bridgeConfig)
public static com.gemstone.gemfire.cache.server.CacheServer createBridgeServer(String bridgeConfig)
BridgeDescription corresponding to the given bridge
configuration from BridgePrms.names.
Upon initial creation, selects a random port and registers the BridgeHelper.Endpoint in the BridgeBlackboard map. Starts of the bridge
server will always use this port.
HydraRuntimeException - if an attempt is made to reconfigure an
existing bridge server.public static com.gemstone.gemfire.cache.server.CacheServer startBridgeServer()
Lazily creates the gateway disk store specified by #diskStoreName, using DiskStoreHelper.createDiskStore(String).
HydraRuntimeException - if the bridge has not been created.public static com.gemstone.gemfire.cache.server.CacheServer getBridgeServer()
public static void stopBridgeServer()
public static String bridgeServerToString(com.gemstone.gemfire.cache.server.CacheServer bridge)
public static BridgeDescription getBridgeDescription(String bridgeConfig)
BridgeDescription with the given configuration name
from BridgePrms.names.public static List<BridgeHelper.Endpoint> getEndpoints()
BridgeBlackboard map,
a possibly empty list. This includes all servers that have ever started,
regardless of their distributed system or current active status.public static List getEndpoints(String distributedSystemName)
BridgeBlackboard map, a
possibly empty list. This includes all servers that have ever
started for the system, regardless of their current active status.public static List getEndpointsInGroup(String distributedSystemName, String group)
BridgeBlackboard map, a possibly empty list. This includes all servers
that have ever started for the system, regardless of their current active
status.public static List getRemoteEndpoints()
BridgeBlackboard map, a possibly empty list. This includes all servers
that have ever started, except for the caller (if it is a server),
regardless of their distributed system or current active status.public static List getRemoteEndpoints(String distributedSystem)
BridgeBlackboard map, a possibly empty list.
This includes all servers that have ever started, except for the caller
(if it is a server), regardless of their current active status.protected static BridgeHelper.Endpoint getEndpoint(String[] groups)
BridgeBlackboard map using the given server groups. Lazily selects
a random port and registers the endpoint in the map.protected static BridgeHelper.Endpoint getEndpoint(int port, String[] groups)
BridgeBlackboard map using the given port and server groups.
Registers the endpoint in the map.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.