Package com.gpudb
Class GPUdbBase.ClusterAddressInfo
- java.lang.Object
-
- com.gpudb.GPUdbBase.ClusterAddressInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClusterAddressInfo(URL activeHeadNodeUrl)protectedClusterAddressInfo(URL activeHeadNodeUrl, int hostManagerPort)protectedClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster)Deprecated, for removal: This API element is subject to removal in a future version.Constructor for an active clusterprotectedClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster, boolean isIntraClusterFailoverEnabled)Deprecated, for removal: This API element is subject to removal in a future version.Constructor for intra-cluster failover-enabled systemsprotectedClusterAddressInfo(URL activeHeadNodeUrl, Map<String,String> systemProperties, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl)Constructor for an active cluster
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleandoesClusterContainNode(String hostName)Checks if the given hostname (or IP address) is part of this cluster.booleanequals(Object obj)URLgetActiveHeadNodeUrl()URLgetHostManagerUrl()Set<String>getHostNames()static booleangetIsIntraClusterFailoverEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Get whether intra-cluster failover is enabledbooleangetIsPrimaryCluster()Deprecated, for removal: This API element is subject to removal in a future version.Map<String,String>getSystemProperties()List<URL>getWorkerRankUrls()inthashCode()static booleanisIntraClusterFailoverEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Get whether intra-cluster failover is enabledbooleanisPrimaryCluster()Another getter for the primary cluster boolean flag for convenience.GPUdbBase.ClusterAddressInfosetActiveHeadNodeUrl(URL value)Set the active head node URL.GPUdbBase.ClusterAddressInfosetHostManagerUrl(URL value)Set the host manager URL.GPUdbBase.ClusterAddressInfosetHostNames(Set<String> value)Set the list of host names for all available machines (whether active or passive).GPUdbBase.ClusterAddressInfosetIsIntraClusterFailoverEnabled(boolean value)Deprecated, for removal: This API element is subject to removal in a future version.Set whether this cluster has intra-cluster failover enabled.GPUdbBase.ClusterAddressInfosetIsPrimaryCluster(boolean value)Set whether this cluster is the primary one.GPUdbBase.ClusterAddressInfosetSystemProperties(Map<String,String> value)Set the system properties.GPUdbBase.ClusterAddressInfosetWorkerRankUrls(List<URL> value)Set the worker rank URLs.StringtoString()
-
-
-
Constructor Detail
-
ClusterAddressInfo
protected ClusterAddressInfo(URL activeHeadNodeUrl, Map<String,String> systemProperties, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl)
Constructor for an active cluster
-
ClusterAddressInfo
@Deprecated(since="7.1.9", forRemoval=true) protected ClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor for an active cluster
-
ClusterAddressInfo
@Deprecated(since="7.1.9", forRemoval=true) protected ClusterAddressInfo(URL activeHeadNodeUrl, List<URL> workerRankUrls, Set<String> hostNames, URL hostManagerUrl, boolean isPrimaryCluster, boolean isIntraClusterFailoverEnabled)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor for intra-cluster failover-enabled systems
-
ClusterAddressInfo
protected ClusterAddressInfo(URL activeHeadNodeUrl) throws GPUdbException
- Throws:
GPUdbException
-
ClusterAddressInfo
protected ClusterAddressInfo(URL activeHeadNodeUrl, int hostManagerPort) throws GPUdbException
- Throws:
GPUdbException
-
-
Method Detail
-
getActiveHeadNodeUrl
public URL getActiveHeadNodeUrl()
-
getHostManagerUrl
public URL getHostManagerUrl()
-
getIsPrimaryCluster
@Deprecated(since="7.2.2", forRemoval=true) public boolean getIsPrimaryCluster()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getIsIntraClusterFailoverEnabled
@Deprecated(since="7.1.9", forRemoval=true) public static boolean getIsIntraClusterFailoverEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.Get whether intra-cluster failover is enabled
-
isPrimaryCluster
public boolean isPrimaryCluster()
Another getter for the primary cluster boolean flag for convenience.
-
isIntraClusterFailoverEnabled
@Deprecated(since="7.1.9", forRemoval=true) public static boolean isIntraClusterFailoverEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.Get whether intra-cluster failover is enabled
-
setActiveHeadNodeUrl
public GPUdbBase.ClusterAddressInfo setActiveHeadNodeUrl(URL value)
Set the active head node URL. Return this object to be able to chain operations.
-
setSystemProperties
public GPUdbBase.ClusterAddressInfo setSystemProperties(Map<String,String> value)
Set the system properties. Return this object to be able to chain operations.
-
setWorkerRankUrls
public GPUdbBase.ClusterAddressInfo setWorkerRankUrls(List<URL> value)
Set the worker rank URLs. Return this object to be able to chain operations.
-
setHostNames
public GPUdbBase.ClusterAddressInfo setHostNames(Set<String> value)
Set the list of host names for all available machines (whether active or passive). Return this object to be able to chain operations.
-
setHostManagerUrl
public GPUdbBase.ClusterAddressInfo setHostManagerUrl(URL value)
Set the host manager URL. Return this object to be able to chain operations.
-
setIsPrimaryCluster
public GPUdbBase.ClusterAddressInfo setIsPrimaryCluster(boolean value)
Set whether this cluster is the primary one. Return this object to be able to chain operations.
-
setIsIntraClusterFailoverEnabled
@Deprecated(since="7.1.9", forRemoval=true) public GPUdbBase.ClusterAddressInfo setIsIntraClusterFailoverEnabled(boolean value)
Deprecated, for removal: This API element is subject to removal in a future version.Set whether this cluster has intra-cluster failover enabled. Return this object to be able to chain operations.
-
doesClusterContainNode
public boolean doesClusterContainNode(String hostName)
Checks if the given hostname (or IP address) is part of this cluster.- Returns:
- true if this cluster contains a machine with the given hostname or IP address, false otherwise.
-
-