|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.connection.MetadataClusterUtil
public final class MetadataClusterUtil
Utility class to create SAS metadata server cluster definitions. Cluster nodes may be specified by the caller or retrieved from the system application properties table.
Field Summary | |
---|---|
static java.lang.String |
OPTION_ENCRYPT
Encrypt all data when communicating with the cluster. |
static java.lang.String |
OPTION_SSPI_PACKAGE
Specify SSPI security package. |
static java.lang.String |
OPTION_SSPI_PACKAGE_LIST
Specify SSPI security package list. |
static java.lang.String |
OPTION_SSPI_SPN
Specify SSPI service principal name. |
static java.lang.String |
OPTION_USE_CLUSTER_PROPERTIES
Enable or disable replacement of host/port parameters with the cluster definition found in the application properties table. |
Constructor Summary | |
---|---|
MetadataClusterUtil()
|
Method Summary | |
---|---|
static Cluster |
createCluster(HostPortSet clusterNodes,
java.util.Map<java.lang.String,java.lang.String> options)
Convenience method for creating a metadata cluster. |
static Cluster |
createCluster(java.lang.String hosts,
java.lang.String ports,
java.util.Map<java.lang.String,java.lang.String> options)
Convenience method for creating a metadata cluster. |
static HostPortSet |
getClusterHostPortSet()
Returns host/port collection for metadata server cluster as defined in the application properties table. |
Field Detail |
---|
public static final java.lang.String OPTION_ENCRYPT
public static final java.lang.String OPTION_SSPI_PACKAGE
public static final java.lang.String OPTION_SSPI_PACKAGE_LIST
public static final java.lang.String OPTION_SSPI_SPN
public static final java.lang.String OPTION_USE_CLUSTER_PROPERTIES
Constructor Detail |
---|
public MetadataClusterUtil()
Method Detail |
---|
public static Cluster createCluster(java.lang.String hosts, java.lang.String ports, java.util.Map<java.lang.String,java.lang.String> options)
hosts
- space delimited list of host names. May be abbreviated to a single name if the
same host is used for all cluster nodes. May be null or empty if cluster properties lookup
is enabled.ports
- space delimited list of port numbers. May be abbreviated to a single port if
the same port is used for all cluster nodes. May be null or empty if cluster properties
lookup is enabled.options
- connection options. See OPTION_* constants for available options.
public static Cluster createCluster(HostPortSet clusterNodes, java.util.Map<java.lang.String,java.lang.String> options)
clusterNodes
- one or more nodes making up the cluster. May be null or empty if and
only if the sas.metadata.use.cluster.properties system property or
OPTION_USE_CLUSTER_PROPERTIES option is true.options
- connection options. See OPTION_* constants for available options.
public static HostPortSet getClusterHostPortSet()
java.lang.RuntimeException
- if application properties table cannot be accessed
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |