|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.connection.platform.PlatformConnectionFactoryConfiguration
public final class PlatformConnectionFactoryConfiguration
A connection factory configuration that describes a server or a pool of servers to connect to using meta data in the BIP Information Service.
Field Summary | |
---|---|
static java.lang.String |
PRIVILEGED_USER_NAME_KEY
This string can be used as a key or attribute name in maps or map-like data structures such as a SessionContextInterface to store and
retrieve the privileged user name. |
static java.lang.String |
PROPERTYNAME_POOL_ADMIN
The session context key that will be used in createWorkspaceServerFactoryConfiguration() to look up the
pool administrator name in the session context. |
Constructor Summary | |
---|---|
PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer)
Construct a connection factory configuration using a logical server object from the information service. |
|
PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer,
java.lang.String privilegedUser)
Construct a connection factory configuration using a logical server object from the information service. |
|
PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer,
java.lang.String privilegedUser,
UserServiceInterface userService)
Construct a connection factory configuration using a logical server object from the information service. |
|
PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer,
java.lang.String privilegedUser,
UserServiceInterface userService,
boolean monitorEnabled)
Deprecated. use PlatformConnectionFactoryConfiguration(LogicalServerInterface,String,UserServiceInterface) |
|
PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer,
UserContextInterface privilegedUserContext,
UserServiceInterface userService,
boolean monitorEnabled)
Construct a connection factory configuration using a logical server object from the information service. |
|
PlatformConnectionFactoryConfiguration(RepositoryInterface repository,
java.lang.String repositoryID)
Construct a connection factory configuration using a repository object and ID from the user service. |
|
PlatformConnectionFactoryConfiguration(RepositoryInterface repository,
java.lang.String repositoryID,
java.lang.String privilegedUser)
Construct a connection factory configuration using a repository object and ID from the user service. |
|
PlatformConnectionFactoryConfiguration(RepositoryInterface repository,
java.lang.String repositoryID,
java.lang.String privilegedUser,
UserServiceInterface userService)
Construct a connection factory configuration using a repository object and ID from the user service. |
|
PlatformConnectionFactoryConfiguration(RepositoryInterface repository,
java.lang.String repositoryID,
java.lang.String privilegedUser,
UserServiceInterface userService,
boolean monitorEnabled)
Deprecated. PlatformConnectionFactoryConfiguration(RepositoryInterface,String,String,UserServiceInterface) |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
|
protected java.lang.String |
getCanonPrivUser()
|
protected RepositoryInterface |
getCanonRepos()
|
protected java.lang.String |
getCanonReposID()
|
protected java.lang.String |
getCanonReposURL()
|
LogicalServerInterface |
getLogicalServer()
Get the logical server object. |
java.lang.String |
getPrivilegedUser()
Get the name of the privileged user. |
UserContextInterface |
getPrivilegedUserContext()
Get the context for the privileged user. |
protected UserContextInterface |
getPrivUser()
|
RepositoryInterface |
getRepository()
Get the repository. |
java.lang.String |
getRepositoryID()
Get the repository ID. |
protected RepositoryInterface |
getTargetRepos()
|
UserServiceInterface |
getUserService()
Get the discovery service. |
int |
hashCode()
|
boolean |
isMonitorEnabled()
Deprecated. |
java.lang.String |
toString()
|
Methods inherited from class com.sas.services.connection.ConnectionFactoryConfiguration |
---|
getKernel, getKernel, getKernelFromDelegate, kernelDestroyed |
Field Detail |
---|
public static final java.lang.String PRIVILEGED_USER_NAME_KEY
SessionContextInterface
to store and
retrieve the privileged user name. Note that the
privileged user name must be a
java.lang.String
. This attribute name
is identical to PROPERTYNAME_POOL_ADMIN
.
PROPERTYNAME_POOL_ADMIN
,
Constant Field Valuespublic static final java.lang.String PROPERTYNAME_POOL_ADMIN
createWorkspaceServerFactoryConfiguration()
to look up the
pool administrator name in the session context.
The name of a pool administrator should generally
be provided whenever the value for
PROPERTYNAME_FACTORY_REQ_CLIENT_POOLING
or
PROPERTYNAME_FACTORY_PREF_CLIENT_POOLING
or
PROPERTYNAME_FACTORY_REQ_POOLING
is
TRUE
. The value is
expected to be a java.lang.String
.
This attribute name
is identical to PRIVILEGED_USER_NAME_KEY
.
PRIVILEGED_USER_NAME_KEY
,
#createWorkspaceServerFactoryConfiguration(ServerContextInterface, SessionContextInterface, int)
,
Constant Field ValuesConstructor Detail |
---|
public PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer)
logicalServer
- an encapsulation of information about a server or group of servers
in a metadata repositorypublic PlatformConnectionFactoryConfiguration(RepositoryInterface repository, java.lang.String repositoryID)
The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer
.
repository
- a metadata repository that containg information about a server or group of serversrepositoryID
- a string that uniquely identifies the server or group of servers in the repositorypublic PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, java.lang.String privilegedUser)
com.sas.services.connection.platform
for more information.
The user service must be deployed and registered
with the default discovery service, and code in sas.svc.connection.platform.jar must have
permission to read the privileged user's context information.
logicalServer
- an encapsulation of information about a server or group of servers
in a metadata repositoryprivilegedUser
- the name or key that identifies in the user service the user context
of a user who is authorized to read all elements of the logical server definition.
The connection factory can only look up the user context in a local services
deployment. If services are deployed remotely, use the contructor with
UserContextInterface
.public PlatformConnectionFactoryConfiguration(RepositoryInterface repository, java.lang.String repositoryID, java.lang.String privilegedUser)
com.sas.services.connection.platform
for more information.
The user service must be deployed and registered
with the default discovery service, and code in sas.svc.connection.platform.jar must have
permission to read the privileged user's context information.
The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer
.
repository
- a metadata repository that containg information about a server or group of serversrepositoryID
- a string that uniquely identifies the server or group of servers in the repositoryprivilegedUser
- the name or key that identifies in the user service the user context
of a user who is authorized to read all elements of the logical server definition.
The connection factory can only look up the user context in a local services
deployment. If services are deployed remotely, use the contructor with
UserContextInterface
.public PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, java.lang.String privilegedUser, UserServiceInterface userService)
com.sas.services.connection.platform
for more information.
The user service must be deployed and registered
with the default discovery service, and code in sas.svc.connection.platform.jar must have
permission to read the privileged user's context information.
logicalServer
- an encapsulation of information about a server or group of servers
in a metadata repositoryprivilegedUser
- the name or key that identifies in the user service the user context
of a user who is authorized to read all elements of the logical server definition.
The connection factory can only look up the user context in a local services
deployment. If services are deployed remotely, use the contructor with
UserContextInterface
.userService
- the user service which will be used to
resolve the privileged user namepublic PlatformConnectionFactoryConfiguration(RepositoryInterface repository, java.lang.String repositoryID, java.lang.String privilegedUser, UserServiceInterface userService)
com.sas.services.connection.platform
for more information.
The user service must be deployed and registered
with the default discovery service, and code in sas.svc.connection.platform.jar must have
permission to read the privileged user's context information.
The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer
.
repository
- a metadata repository that containg information about a server or group of serversrepositoryID
- a string that uniquely identifies the server or group of servers in the repositoryprivilegedUser
- the name or key that identifies in the user service the user context
of a user who is authorized to read all elements of the logical server definition.
The connection factory can only look up the user context in a local services
deployment. If services are deployed remotely, use the contructor with
UserContextInterface
.userService
- the user service which will be used to
resolve the privileged user namepublic PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, java.lang.String privilegedUser, UserServiceInterface userService, boolean monitorEnabled)
com.sas.services.connection.platform
for more information.
The user service must be deployed and registered
with the default discovery service, and code in sas.svc.connection.platform.jar must have
permission to read the privileged user's context information.
logicalServer
- an encapsulation of information about a server or group of servers
in a metadata repositoryprivilegedUser
- the name or key that identifies in the user service the user context
of a user who is authorized to read all elements of the logical server definition.
The connection factory can only look up the user context in a local services
deployment. If services are deployed remotely, use the contructor with
UserContextInterface
.userService
- the user service which will be used to
resolve the privileged user namemonitorEnabled
- ignoredpublic PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, UserContextInterface privilegedUserContext, UserServiceInterface userService, boolean monitorEnabled)
com.sas.services.connection.platform
for more information.
Object created with this contructor will be considered equal to
objects constructed with the privileged user's name instead of
the user context.
logicalServer
- an encapsulation of information about a server or group of servers
in a metadata repositoryprivilegedUserContext
- the user context
of a user who is authorized to read all elements of the logical server definitionuserService
- the user service which will be used to
resolve the privileged user namemonitorEnabled
- ignoredpublic PlatformConnectionFactoryConfiguration(RepositoryInterface repository, java.lang.String repositoryID, java.lang.String privilegedUser, UserServiceInterface userService, boolean monitorEnabled)
com.sas.services.connection.platform
for more information.
The user service must be deployed and registered
with the default discovery service, and code in sas.svc.connection.platform.jar must have
permission to read the privileged user's context information.
The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer
.
repository
- a metadata repository that containg information about a server or group of serversrepositoryID
- a string that uniquely identifies the server or group of servers in the repositoryprivilegedUser
- the name or key that identifies in the user service the user context
of a user who is authorized to read all elements of the logical server definition.
The connection factory can only look up the user context in a local services
deployment. If services are deployed remotely, use the contructor with
UserContextInterface
.userService
- the user service which will be used to
resolve the privileged user namemonitorEnabled
- ignoredMethod Detail |
---|
public LogicalServerInterface getLogicalServer()
public RepositoryInterface getRepository()
public java.lang.String getRepositoryID()
public java.lang.String getPrivilegedUser()
public UserContextInterface getPrivilegedUserContext()
public UserServiceInterface getUserService()
public boolean isMonitorEnabled()
public boolean equals(java.lang.Object that)
equals
in class ConnectionFactoryConfiguration
public int hashCode()
hashCode
in class ConnectionFactoryConfiguration
public java.lang.String toString()
toString
in class java.lang.Object
protected RepositoryInterface getCanonRepos()
protected java.lang.String getCanonReposID()
protected java.lang.String getCanonReposURL()
protected java.lang.String getCanonPrivUser()
protected UserContextInterface getPrivUser() throws ServiceException, java.rmi.RemoteException, ConnectionFactoryException
ServiceException
java.rmi.RemoteException
ConnectionFactoryException
protected RepositoryInterface getTargetRepos()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |