Modifier | Constructor and Description |
---|---|
protected |
ClusterAddressInfo(URL activeHeadNodeUrl) |
protected |
ClusterAddressInfo(URL activeHeadNodeUrl,
int hostManagerPort) |
protected |
ClusterAddressInfo(URL activeHeadNodeUrl,
List<URL> workerRankUrls,
Set<String> hostNames,
URL hostManagerUrl,
boolean isPrimaryCluster)
Deprecated.
Constructor for an active cluster
|
protected |
ClusterAddressInfo(URL activeHeadNodeUrl,
List<URL> workerRankUrls,
Set<String> hostNames,
URL hostManagerUrl,
boolean isPrimaryCluster,
boolean isIntraClusterFailoverEnabled)
Deprecated.
Constructor for intra-cluster failover-enabled systems
|
protected |
ClusterAddressInfo(URL activeHeadNodeUrl,
Map<String,String> systemProperties,
List<URL> workerRankUrls,
Set<String> hostNames,
URL hostManagerUrl)
Constructor for an active cluster
|
Modifier and Type | Method and Description |
---|---|
boolean |
doesClusterContainNode(String hostName)
Checks if the given hostname (or IP address) is part of this
cluster.
|
boolean |
equals(Object obj) |
URL |
getActiveHeadNodeUrl() |
URL |
getHostManagerUrl() |
Set<String> |
getHostNames() |
static boolean |
getIsIntraClusterFailoverEnabled()
Deprecated.
Get whether intra-cluster failover is enabled
|
boolean |
getIsPrimaryCluster()
Deprecated.
|
Map<String,String> |
getSystemProperties() |
List<URL> |
getWorkerRankUrls() |
int |
hashCode() |
static boolean |
isIntraClusterFailoverEnabled()
Deprecated.
Get whether intra-cluster failover is enabled
|
boolean |
isPrimaryCluster()
Another getter for the primary cluster boolean flag for convenience.
|
GPUdbBase.ClusterAddressInfo |
setActiveHeadNodeUrl(URL value)
Set the active head node URL.
|
GPUdbBase.ClusterAddressInfo |
setHostManagerUrl(URL value)
Set the host manager URL.
|
GPUdbBase.ClusterAddressInfo |
setHostNames(Set<String> value)
Set the list of host names for all available machines (whether active
or passive).
|
GPUdbBase.ClusterAddressInfo |
setIsIntraClusterFailoverEnabled(boolean value)
Deprecated.
Set whether this cluster has intra-cluster failover enabled.
Return this object to be able to chain operations.
|
GPUdbBase.ClusterAddressInfo |
setIsPrimaryCluster(boolean value)
Set whether this cluster is the primary one.
|
GPUdbBase.ClusterAddressInfo |
setSystemProperties(Map<String,String> value)
Set the system properties.
|
GPUdbBase.ClusterAddressInfo |
setWorkerRankUrls(List<URL> value)
Set the worker rank URLs.
|
String |
toString() |
protected ClusterAddressInfo(URL activeHeadNodeUrl, Map<String,String> systemProperties, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl)
protected ClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster)
protected ClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster, boolean isIntraClusterFailoverEnabled)
protected ClusterAddressInfo(URL activeHeadNodeUrl) throws GPUdbException
GPUdbException
protected ClusterAddressInfo(URL activeHeadNodeUrl, int hostManagerPort) throws GPUdbException
GPUdbException
public URL getActiveHeadNodeUrl()
public URL getHostManagerUrl()
@Deprecated public boolean getIsPrimaryCluster()
public static boolean getIsIntraClusterFailoverEnabled()
public boolean isPrimaryCluster()
public static boolean isIntraClusterFailoverEnabled()
public GPUdbBase.ClusterAddressInfo setActiveHeadNodeUrl(URL value)
public GPUdbBase.ClusterAddressInfo setSystemProperties(Map<String,String> value)
public GPUdbBase.ClusterAddressInfo setWorkerRankUrls(List<URL> value)
public GPUdbBase.ClusterAddressInfo setHostNames(Set<String> value)
public GPUdbBase.ClusterAddressInfo setHostManagerUrl(URL value)
public GPUdbBase.ClusterAddressInfo setIsPrimaryCluster(boolean value)
public GPUdbBase.ClusterAddressInfo setIsIntraClusterFailoverEnabled(boolean value)
public boolean doesClusterContainNode(String hostName)
Copyright © 2025. All rights reserved.