***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.connection
Class Puddle

com.sas.services.connection.Puddle
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Puddle
implements java.lang.Cloneable, java.io.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:
Serialized Form

Constructor Summary
Puddle(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
 java.lang.Object clone()
           
 boolean equals(java.lang.Object that)
           
 java.lang.String getClassID()
          Get the classID of the clusters in this puddle.
 Cluster[] getClusterArray()
          Get the server clusters.
 int getMinAvail()
          Get the minimum number of idle connections.
 int getMinSize()
          Get the minimum number of connections (idle or in use).
 java.lang.String getPuddleName()
          Get a string that names the puddle.
 Credential getServerCredential()
          Get the credential for the clusters.
 java.util.Set getUserCredentials()
          Get the set of credentials representing users that are allowed to use this puddle.
 java.util.Set getUsers()
          Get the set of users that are allowed to use this puddle.
 int hashCode()
           
 void setClusterArray(Cluster[] clusterArray)
          Set the server clusters.
 void setMinAvail(int minAvail)
          Set the minimum number of idle connections.
 void setMinSize(int minSize)
          Set the minimum number of connections (idle or in use).
 void setPuddleName(java.lang.String puddleName)
          Set a string that names the puddle.
 void setServerCredential(Credential serverCredential)
          Set the credential for the clusters.
 void setUserCredentials(java.util.Set userCredentials)
          Set the set of credentials representing users that are allowed to use this puddle.
 void setUsers(java.util.Set users)
          Set the set of users that are allowed to use this puddle.
 java.lang.String toString()
           
 

Constructor Detail

Puddle

public Puddle(Server server,
              Credential serverCredential)
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 puddle
serverCredential - the credential to use when connecting to the server

Puddle

public Puddle(Cluster cluster,
              Credential serverCredential)
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 puddle
serverCredential - the credential to use when connecting to a server in the cluster

Puddle

public Puddle(Cluster[] clusters,
              Credential serverCredential)
Construct a puddle of IOM server clusters.

Parameters:
clusters - the server clusters in the puddle
serverCredential - the credential to use when connecting to a server in one of the clusters
Method Detail

setClusterArray

public void setClusterArray(Cluster[] clusterArray)
Set the server clusters.

Parameters:
clusterArray - the clusters

getClusterArray

public Cluster[] getClusterArray()
Get the server clusters.

Returns:
the clusters

setServerCredential

public void setServerCredential(Credential serverCredential)
Set the credential for the clusters.

Parameters:
serverCredential - the credential for the clusters

getServerCredential

public Credential 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(java.util.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 java.util.Set getUserCredentials()
Get the set of credentials representing users that are allowed to use this puddle. If both this method and getUsers() return null, 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(java.util.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 java.util.Set getUsers()
Get the set of users that are allowed to use this puddle. If both this method and getUserCredentials() return null, 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(java.lang.String puddleName)
Set a string that names the puddle. This name is used by the authentication/authorization server to determine if special authorization rules apply.

Parameters:
puddleName - a string the names the puddle

getPuddleName

public java.lang.String getPuddleName()
Get a string that names the puddle. This name is used by the authentication/authorization server to determine if special authorization rules apply. * @return a string the names the puddle


getClassID

public java.lang.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(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.