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) |
protected |
ClusterAddressInfo(URL activeHeadNodeUrl,
List<URL> workerRankUrls,
Set<String> hostNames,
URL hostManagerUrl,
boolean isPrimaryCluster,
boolean isIntraClusterFailoverEnabled)
Deprecated.
Constructor for intra-cluster failover-enabled systems
|
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() |
boolean |
getIsIntraClusterFailoverEnabled()
Deprecated.
Get whether intra-cluster failover is enabled
|
boolean |
getIsPrimaryCluster() |
List<URL> |
getWorkerRankUrls() |
int |
hashCode() |
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 |
setWorkerRankUrls(List<URL> value)
Set the worker rank URLs.
|
String |
toString() |
protected ClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster) throws GPUdbException
GPUdbException
protected ClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster, boolean isIntraClusterFailoverEnabled) throws GPUdbException
GPUdbException
protected ClusterAddressInfo(URL activeHeadNodeUrl) throws GPUdbException
GPUdbException
protected ClusterAddressInfo(URL activeHeadNodeUrl, int hostManagerPort) throws GPUdbException
GPUdbException
public URL getActiveHeadNodeUrl()
public URL getHostManagerUrl()
public boolean getIsPrimaryCluster()
public boolean getIsIntraClusterFailoverEnabled()
public boolean isPrimaryCluster()
public boolean isIntraClusterFailoverEnabled()
public GPUdbBase.ClusterAddressInfo setActiveHeadNodeUrl(URL 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 © 2024. All rights reserved.