|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.connection.Server
public abstract class Server
A base class for describing IOM servers.
Field Summary | |
---|---|
static java.lang.String |
AUTH_SERVICE_HOST
Authenticate against the host on which the server is running. |
static java.lang.String |
AUTH_SERVICE_METADATA
Authenticate against a SAS Metadata Server. |
static java.lang.String |
AUTH_SERVICE_NONE
No authentication required. |
static java.lang.String |
AUTH_SERVICE_PROMPT
Prompt for a credential that will be authenticated against the host on which the server is running. |
static java.lang.String |
CLSID_OBJSPAWN
The class ID of the SAS Object Spawner (current major version). |
static java.lang.String |
CLSID_OBJSPAWN_1_0
The class ID of the SAS Object Spawner (version 1.0). |
static java.lang.String |
CLSID_OBJSPAWN_1_1
The class ID of the SAS Object Spawner (version 1.1). |
static java.lang.String |
CLSID_POOLED_SAS
The class ID of the Pooled SAS toplevel class (current major version). |
static java.lang.String |
CLSID_POOLED_SAS_1_0
The class ID of the Pooled SAS toplevel class (version 1.0). |
static java.lang.String |
CLSID_SAS
The class ID of the SAS toplevel class (current major version). |
static java.lang.String |
CLSID_SAS_1_0
The class ID of the SAS toplevel class (version 1.0). |
static java.lang.String |
CLSID_SAS_1_1
The class ID of the SAS toplevel class (version 1.1). |
static java.lang.String |
CLSID_SAS_1_2
The class ID of the SAS toplevel class (version 1.2). |
static java.lang.String |
CLSID_SASGMS
The class ID of the SASGMS toplevel class (current major version). |
static java.lang.String |
CLSID_SASGMS_1_0
The class ID of the SASGMS toplevel class (version 1.0). |
static java.lang.String |
CLSID_SASMDX
The class ID of the SASMDX toplevel class (current major version). |
static java.lang.String |
CLSID_SASMDX_1_0
The class ID of the SASMDX toplevel class (version 1.0). |
static java.lang.String |
CLSID_SASMQX
The class ID of the SASMQX toplevel class (current major version). |
static java.lang.String |
CLSID_SASMQX_1_0
The class ID of the SASMQX toplevel class (version 1.0). |
static java.lang.String |
CLSID_SASOMI
The class ID of the SASOMI toplevel class (current major version). |
static java.lang.String |
CLSID_SASOMI_1_0
The class ID of the SASOMI toplevel class (version 1.0). |
static java.lang.String |
CLSID_SASOMI_1_1
The class ID of the SASOMI toplevel class (version 1.1). |
static java.lang.String |
CLSID_SASOMI_2_0
The class ID of the SASOMI toplevel class (version 2.0). |
static java.lang.String |
CLSID_SASSTP
The class ID of the SASSTP toplevel class (current major version). |
static java.lang.String |
CLSID_SASSTP_1_0
The class ID of the SASSTP toplevel class (version 1.0). |
static java.lang.String |
CLSID_SASTableServer
The class ID of the SAS Table Server (current major version). |
static java.lang.String |
CLSID_SASTableServer_1_0
The class ID of the SAS Table Server (version 1.0). |
static java.lang.String |
CLSID_UNDESIGNATED
A class ID that does not designate any class. |
static java.lang.String |
OBJSPAWN_ID
A string used to identify the SAS Object Spawner in old metadata. |
static java.lang.String |
SECURITY_PACKAGE_KERBEROS
Authentication using Kerberos. |
static java.lang.String |
SECURITY_PACKAGE_LIST_DEFAULT
The default value for securityPackageList. |
static java.lang.String |
SECURITY_PACKAGE_NEGOTIATE
Authenticate using a security package supported by both the client and server. |
static java.lang.String |
SECURITY_PACKAGE_NTLM
Authenticate using NTLM. |
Constructor Summary | |
---|---|
Server(java.lang.String classID)
Construct an object describing an IOM server. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object that)
|
static Server |
fromURI(SASURI uri)
Convert a URI into a Server. |
java.lang.String |
getAuthService()
Get the authentication service to use when connecting to this server. |
java.lang.String |
getClassID()
Get the class ID. |
java.lang.String |
getDomain()
Get the authentication domain. |
int |
getMaxClients()
Get the maximum number of clients. |
java.lang.String |
getNormalizedClassID()
Get the normalized class ID. |
java.lang.String |
getNormalizedSecurityPackage()
Get the normalized security package to use when connecting to this server. |
java.lang.String |
getNormalizedSecurityPackageList()
Get the normalized list of security packages to use when connecting to this server. |
int |
getReactivationLimit()
Get the maximum number of reactivations. |
java.lang.String |
getSecurityPackage()
Get the security package to use when connecting to this server. |
java.lang.String |
getSecurityPackageList()
Get the list of security packages to use when connecting to this server. |
java.lang.String |
getServerComponentURI()
Get the ServerComponent URI for this server. |
int |
getShutdownAfterMinutes()
Get the number of minutes before an idle connection is destroyed. |
java.lang.String |
getSPN()
Get the service principal name to use when connecting to this server. |
int |
hashCode()
|
static java.lang.String |
normalizeSecurityPackage(java.lang.String securityPackage)
Normalize a security package name. |
static java.lang.String |
normalizeSecurityPackageList(java.lang.String securityPackageList)
Normalize a security package list. |
void |
setAuthService(java.lang.String authService)
Set the authentication service to use when connecting to this server. |
void |
setClassID(java.lang.String classID)
Set the class ID. |
void |
setDomain(java.lang.String domain)
Set the authentication domain. |
void |
setMaxClients(int maxClients)
Set the maximum number of clients. |
void |
setReactivationLimit(int reactivationLimit)
Set the maximum number of reactivations. |
void |
setSecurityPackage(java.lang.String securityPackage)
Set the security package to use when connecting to this server. |
void |
setSecurityPackageList(java.lang.String securityPackageList)
Set the list of security packages to use when connecting to this server. |
void |
setServerComponentURI(java.lang.String serverComponentURI)
Set the ServerComponent URI for this server. |
void |
setShutdownAfterMinutes(int shutdownAfterMinutes)
Set the number of minutes before an idle connection is destroyed. |
void |
setSPN(java.lang.String spn)
Set the service principal name to use when connecting to this server. |
java.lang.String |
toString()
|
Field Detail |
---|
public static final java.lang.String CLSID_SAS_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SAS_1_1
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SAS_1_2
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SAS
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_POOLED_SAS_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_POOLED_SAS
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASGMS_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASGMS
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASMDX_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASMDX
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASMQX_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASMQX
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASOMI_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASOMI_1_1
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASOMI_2_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASOMI
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASSTP_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASSTP
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_OBJSPAWN_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_OBJSPAWN_1_1
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_OBJSPAWN
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASTableServer_1_0
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_SASTableServer
getClassID()
,
Constant Field Valuespublic static final java.lang.String CLSID_UNDESIGNATED
getClassID()
,
Constant Field Valuespublic static final java.lang.String OBJSPAWN_ID
public static final java.lang.String AUTH_SERVICE_HOST
SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NTLM
,
SECURITY_PACKAGE_NEGOTIATE
,
Constant Field Valuespublic static final java.lang.String AUTH_SERVICE_METADATA
public static final java.lang.String AUTH_SERVICE_PROMPT
public static final java.lang.String AUTH_SERVICE_NONE
public static final java.lang.String SECURITY_PACKAGE_KERBEROS
AUTH_SERVICE_HOST
,
Constant Field Valuespublic static final java.lang.String SECURITY_PACKAGE_NTLM
AUTH_SERVICE_HOST
,
Constant Field Valuespublic static final java.lang.String SECURITY_PACKAGE_NEGOTIATE
AUTH_SERVICE_HOST
,
SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NTLM
,
SECURITY_PACKAGE_LIST_DEFAULT
,
Constant Field Valuespublic static final java.lang.String SECURITY_PACKAGE_LIST_DEFAULT
Constructor Detail |
---|
public Server(java.lang.String classID)
classID
- the class IDsetClassID(java.lang.String)
Method Detail |
---|
public void setClassID(java.lang.String classID)
CLSID_*
provide several possible values for
this attribute, but there may be other valid values in newer server
versions. If the server is not configured to instantiate IOM objects of
this type, then connections attempts to the server will fail.
classID
- the class ID
java.lang.IllegalArgumentException
- if this attribute is set
to null
CLSID_SAS
,
CLSID_SAS_1_1
,
CLSID_SASMDX
,
CLSID_SASGMS
,
CLSID_SASMQX
,
CLSID_SASOMI
,
CLSID_SASSTP
,
CLSID_OBJSPAWN
,
CLSID_OBJSPAWN_1_1
public java.lang.String getClassID()
setClassID(java.lang.String)
public java.lang.String getNormalizedClassID()
setClassID(java.lang.String)
public void setMaxClients(int maxClients)
maxClients
- the maximum number of clients
java.lang.IllegalArgumentException
- if this attribute is set
to a value less than 1
public int getMaxClients()
setMaxClients(int)
public void setReactivationLimit(int reactivationLimit)
In theory, refreshing a connection should cause the server to release all resources associated with the connection and return to its initial state. However, if there are bugs in the server that allow resource use to accumulate over several connection reuses, then the server may eventually run out of that resource. This attribute allows the factory to periodically restart servers and force all resources to be released.
If the value is 0
, then connections will be refreshed and reused indefinitely
(subject to limitations set by other attributes). The default value is 0
.
reactivationLimit
- the maximum number of reactivations
java.lang.IllegalArgumentException
- if this attribute is set
to a value less than 0
public int getReactivationLimit()
setReactivationLimit(int)
public void setShutdownAfterMinutes(int shutdownAfterMinutes)
minSize
and minAvail
attributes in that
a puddle with a non-negative value for this attribute is allowed to shutdown all connections
after the required period of idleness even if it also has strictly positive values for minSize
or minAvail.
-1
means idle connections will be kept alive until
connection factory shutdown. 0
means a connection returned to the factory will
be destroyed immediately unless another user is waiting for it. The default value is
-1
.
shutdownAfterMinutes
- the number of minute before an idle connection is destroyed
java.lang.IllegalArgumentException
- if this attribute is set
to a value less than -1
public int getShutdownAfterMinutes()
setShutdownAfterMinutes(int)
public void setDomain(java.lang.String domain)
Empty string and null
are considered to be equivalent domains.
The default value is empty string.
domain
- the authentication domainpublic java.lang.String getDomain()
setDomain(java.lang.String)
public void setServerComponentURI(java.lang.String serverComponentURI)
serverComponentURI
- the ServerComponent URI
for this server.public java.lang.String getServerComponentURI()
public java.lang.String getAuthService()
AUTH_SERVICE_NONE
unless a
subclass provides a different default.
AUTH_SERVICE_HOST
,
AUTH_SERVICE_METADATA
,
AUTH_SERVICE_PROMPT
,
AUTH_SERVICE_NONE
public void setAuthService(java.lang.String authService)
AUTH_SERVICE_NONE
unless a
subclass provides a different default.
authService
- the authentication service to use when connecting
to this server.AUTH_SERVICE_HOST
,
AUTH_SERVICE_METADATA
,
AUTH_SERVICE_PROMPT
,
AUTH_SERVICE_NONE
public java.lang.String getSecurityPackage()
authService
is set to AUTH_SERVICE_HOST
.
The default value is null
which indicates that
user name/password authentication will be used.
SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NEGOTIATE
,
SECURITY_PACKAGE_NTLM
public java.lang.String getNormalizedSecurityPackage()
normalizeSecurityPackage()
with the original
value.
The value for this attribute is significant only if the value for
authService
is set to AUTH_SERVICE_HOST
.
The default value is null
which indicates that
user name/password authentication will be used.
SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NEGOTIATE
,
SECURITY_PACKAGE_NTLM
public void setSecurityPackage(java.lang.String securityPackage)
authService
is set to AUTH_SERVICE_HOST
.
The default value is null
which indicates that
user name/password authentication will be used.
securityPackage
- the security package to use when connecting to this server.SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NEGOTIATE
,
SECURITY_PACKAGE_NTLM
public java.lang.String getSecurityPackageList()
authService
is set to AUTH_SERVICE_HOST
and the value for securityPackage
is
SECURITY_PACKAGE_NEGOTIATE
.
The default value is Kerberos,NTLM
.
SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NEGOTIATE
,
SECURITY_PACKAGE_NTLM
public java.lang.String getNormalizedSecurityPackageList()
normalizeSecurityPackageList()
with the original
value.
The value for this attribute is significant only if the value for
authService
is set to AUTH_SERVICE_HOST
and the value for securityPackage
is
SECURITY_PACKAGE_NEGOTIATE
.
The default value is Kerberos,NTLM
.
SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NEGOTIATE
,
SECURITY_PACKAGE_NTLM
public void setSecurityPackageList(java.lang.String securityPackageList)
authService
is set to AUTH_SERVICE_HOST
and the value for securityPackage
is
SECURITY_PACKAGE_NEGOTIATE
.
The default value is Kerberos,NTLM
.
securityPackageList
- the list of security packages to use
when connecting to this server.SECURITY_PACKAGE_KERBEROS
,
SECURITY_PACKAGE_NEGOTIATE
,
SECURITY_PACKAGE_NTLM
public java.lang.String getSPN()
authService
is set to AUTH_SERVICE_HOST
and
the value for securityPackage
is set to
SECURITY_PACKAGE_NEGOTIATE
or SECURITY_PACKAGE_KERBEROS
public void setSPN(java.lang.String spn)
authService
is set to AUTH_SERVICE_HOST
and
the value for securityPackage
is set to
SECURITY_PACKAGE_NEGOTIATE
or SECURITY_PACKAGE_KERBEROS
spn
- the service principal name to use when connecting to this server.public static Server fromURI(SASURI uri)
uri
- the URI to convertpublic boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String normalizeSecurityPackage(java.lang.String securityPackage)
securityPackage
- the security package name to normalize
public static java.lang.String normalizeSecurityPackageList(java.lang.String securityPackageList)
normalizeSecurityPackage()
.
securityPackageList
- the security package list to normalized
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |