public class TopologyManager extends Object
| Constructor and Description |
|---|
TopologyManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
acquireReadLock()
Acquires read lock for the Complete Topology
|
static void |
acquireReadLockForCluster(String serviceName,
String clusterId)
Acquires read lock for a Cluster.
|
static void |
acquireReadLockForService(String serviceName)
Acquires read lock for a Service
|
static void |
acquireReadLockForServices()
Acquires read lock for the all Services
|
static Topology |
getTopology() |
static void |
releaseReadLock()
Releases read lock for the Complete Topology
|
static void |
releaseReadLockForCluster(String serviceName,
String clusterId)
Releases read lock for a Cluster.
|
static void |
releaseReadLockForService(String serviceName)
Releases read lock for a Service
|
static void |
releaseReadLockForServices()
Releases read lock for the all Services
|
public static void acquireReadLock()
public static void releaseReadLock()
public static void acquireReadLockForServices()
public static void releaseReadLockForServices()
public static void acquireReadLockForService(String serviceName)
serviceName - service name to acquire read lockpublic static void releaseReadLockForService(String serviceName)
serviceName - service name to release read lockpublic static void acquireReadLockForCluster(String serviceName, String clusterId)
serviceName - service name to acquire read lockclusterId - cluster id to acquire read lockpublic static void releaseReadLockForCluster(String serviceName, String clusterId)
serviceName - service name to release read lockclusterId - cluster id to release read lockpublic static Topology getTopology()
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.