*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.connection
Class Puddle
java.lang.Object
com.sas.services.connection.Puddle
- All Implemented Interfaces:
Serializable,Cloneable
@SASScope("ALL")
@BinaryCompatibilityOnly
public class Puddle
extends Object
implements Cloneable, Serializable
A description of a puddle of IOM clusters. A puddle is an association of one or more
IOM clusters with exactly one IOM login and, optionally, with a list of users allowed
to use connections to this puddle of clusters.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPuddle(Cluster[] clusters, Credential serverCredential) Construct a puddle of IOM server clusters.Puddle(Cluster cluster, Credential serverCredential) Construct a puddle with one IOM server cluster.Puddle(Server server, Credential serverCredential) Construct a puddle with one IOM server. -
Method Summary
Modifier and TypeMethodDescriptionObjectclone()booleanequals(Object that) StringGet the classID of the clusters in this puddle.Cluster[]Get the server clusters.intGet the minimum number of idle connections.intGet the minimum number of connections (idle or in use).StringGet a string that names the puddle.Get the credential for the clusters.SetGet the set of credentials representing users that are allowed to use this puddle.SetgetUsers()Get the set of users that are allowed to use this puddle.inthashCode()voidsetClusterArray(Cluster[] clusterArray) Set the server clusters.voidsetMinAvail(int minAvail) Set the minimum number of idle connections.voidsetMinSize(int minSize) Set the minimum number of connections (idle or in use).voidsetPuddleName(String puddleName) Set a string that names the puddle.voidsetServerCredential(Credential serverCredential) Set the credential for the clusters.voidsetUserCredentials(Set userCredentials) Set the set of credentials representing users that are allowed to use this puddle.voidsetUsers(Set users) Set the set of users that are allowed to use this puddle.StringtoString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Puddle
Construct a puddle with one IOM server. This constructor is a shortcut for the following more complicated code:Puddle(new Cluster[]{new FailoverCluster(server)},serverCredential)- Parameters:
server- the server in the puddleserverCredential- the credential to use when connecting to the server
-
Puddle
Construct a puddle with one IOM server cluster. This constructor is a shortcut for the following more complicated code:Puddle(new Cluster[]{cluster},credential)- Parameters:
cluster- the server cluster in the puddleserverCredential- the credential to use when connecting to a server in the cluster
-
Puddle
Construct a puddle of IOM server clusters.- Parameters:
clusters- the server clusters in the puddleserverCredential- the credential to use when connecting to a server in one of the clusters
-
-
Method Details
-
setClusterArray
Set the server clusters.- Parameters:
clusterArray- the clusters
-
getClusterArray
Get the server clusters.- Returns:
- the clusters
-
setServerCredential
Set the credential for the clusters.- Parameters:
serverCredential- the credential for the clusters
-
getServerCredential
Get the credential for the clusters.- Returns:
- the credential for the clusters
-
setMinSize
public void setMinSize(int minSize) Set the minimum number of connections (idle or in use).- Parameters:
minSize- the minimum number of connections (idle or in use)
-
getMinSize
public int getMinSize()Get the minimum number of connections (idle or in use).- Returns:
- the minimum number of connections (idle or in use)
-
setMinAvail
public void setMinAvail(int minAvail) Set the minimum number of idle connections.- Parameters:
minAvail- the minimum number of idle connections
-
getMinAvail
public int getMinAvail()Get the minimum number of idle connections.- Returns:
- the minimum number of idle connections
-
setUserCredentials
public void setUserCredentials(Set userCredentials) Set the set of credentials representing users that are allowed to use this puddle.- Parameters:
userCredentials- the set of credentials representing users that are allowed to use this puddle
-
getUserCredentials
public Set getUserCredentials()Get the set of credentials representing users that are allowed to use this puddle. If both this method andgetUsers()returnnull, then any user will be allowed to use this puddle.- Returns:
- the set of credentials representing users that are allowed to use this puddle
-
setUsers
public void setUsers(Set users) Set the set of users that are allowed to use this puddle.- Parameters:
users- the set of users that are allowed to use this puddle
-
getUsers
public Set getUsers()Get the set of users that are allowed to use this puddle. If both this method andgetUserCredentials()returnnull, then any user will be allowed to use this puddle.- Returns:
- the set of users that are allowed to use this puddle
-
setPuddleName
public void setPuddleName(String puddleName) Set a string that names the puddle. This name is used by theauthentication/authorization serverto determine if special authorization rules apply.- Parameters:
puddleName- a string the names the puddle
-
getPuddleName
public String getPuddleName()Get a string that names the puddle. This name is used by theauthentication/authorization serverto determine if special authorization rules apply. * @return a string the names the puddle -
getClassID
public String getClassID()Get the classID of the clusters in this puddle. All clusters must have the same classID.- Returns:
- the classID of the clusters in this puddle
-
equals
public boolean equals(Object that) - Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classObject
-
clone
public Object clone()- Overrides:
clonein classObject
-
toString
public String toString()- Overrides:
toStringin classObject
-