|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.cdk.api.EnvironmentUtility
public class EnvironmentUtility
A utility factory class to create connector environment objects that are normally supplied by the MetaMatrix Server. This utility will create objects that can be used for testing of your connector outside the context of the MetaMatrix Server.
Method Summary | |
---|---|
static ConnectorEnvironment |
createEnvironment(java.util.Properties props)
Create a ConnectorEnvironment with the specified properties. |
static ConnectorEnvironment |
createEnvironment(java.util.Properties props,
boolean stdoutLog)
Create a ConnectorEnvironment with the specified properties. |
static ConnectorEnvironment |
createEnvironment(java.util.Properties props,
ConnectorLogger logger)
Create a ConnectorEnvironment with the specified properties and logger. |
static ExecutionContext |
createExecutionContext(java.lang.String requestID,
java.lang.String partID)
Create an ExecutionContext and set just the requestID and partID. |
static ExecutionContext |
createExecutionContext(java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String user,
java.io.Serializable trustedToken,
java.io.Serializable executionPayload,
java.lang.String connectionID,
java.lang.String connectorID,
java.lang.String requestID,
java.lang.String partID,
boolean useResultSetCache)
Create an ExecutionContext and set all of the parts. |
static ExecutionContext |
createSecurityContext(java.lang.String user)
Create an ExecutionContext and set just the user name. |
static ExecutionContext |
createSecurityContext(java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String user,
java.io.Serializable trustedToken)
Create an ExecutionContext and set just the security parts. |
static ConnectorLogger |
createStdoutLogger(int logLevel)
Create a ConnectorLogger that prints to STDOUT at the specified log level (and above). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ConnectorLogger createStdoutLogger(int logLevel)
logLevel
- The logLevel as defined in SysLogger
.
public static ConnectorEnvironment createEnvironment(java.util.Properties props, ConnectorLogger logger)
props
- The properties to put in the environmentlogger
- The logger to use
public static ConnectorEnvironment createEnvironment(java.util.Properties props)
props
- The properties to put in the environment
public static ConnectorEnvironment createEnvironment(java.util.Properties props, boolean stdoutLog)
props
- The properties to put in the environmentstdoutLog
-
public static ExecutionContext createSecurityContext(java.lang.String user)
user
- User name
public static ExecutionContext createSecurityContext(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String user, java.io.Serializable trustedToken)
vdbName
- Virtual database namevdbVersion
- Virtual database versionuser
- User nametrustedToken
- Trusted token (passed when creating JDBC Connection)
public static ExecutionContext createExecutionContext(java.lang.String requestID, java.lang.String partID)
requestID
- Unique identifier for the user command within the serverpartID
- Unique identifier for the source command within the context of a requestID
public static ExecutionContext createExecutionContext(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String user, java.io.Serializable trustedToken, java.io.Serializable executionPayload, java.lang.String connectionID, java.lang.String connectorID, java.lang.String requestID, java.lang.String partID, boolean useResultSetCache)
vdbName
- Virtual database namevdbVersion
- Virtual database versionuser
- User nametrustedToken
- Trusted token (passed when creating JDBC Connection)executionPayload
- Command payload (passed for each command executed on JDBC Statement)requestID
- Unique identifier for the user command within the serverpartID
- Unique identifier for the source command within the context of a requestIDconnectionID
- Unique identifier for the connection through which the command is executeduseResultSetCache
- Whether to use ResultSet cache if it is enabled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |