|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.db2.wrapper.SqlqgBaseClass
com.ibm.db2.wrapper.Server
com.ibm.db2.wrapper.FencedServer
The FencedServer class is a subclass of the Server class and is the
abstract base class for all server functionality that operates in the fenced
(untrusted) process space. This class is responsible for creating remote
connections and nicknames.
Usage:
Do not use this class directly. Instantiating or subclassing the
FencedServer class directly results in incorrect wrapper behavior.
Subclass the FencedGenericServer
class.
Method Summary | |
protected RemoteConnection |
createRemoteConnection(FencedRemoteUser user,
int kind,
long id)
Create a new connection for the specified user mapping and of the specified kind. |
RemoteConnection |
findConnection()
Retrieve the current active connection for the data source server. |
protected int |
getRemoteConnectionKind()
Retrieve the type of connection that this data source server supports as indicated by the RemoteConnection.NO_PHASE_KIND or RemoteConnection.ONE_PHASE_KIND
constants. |
Methods inherited from class com.ibm.db2.wrapper.Server |
createNickname, createRemoteUser, destroy, findRemoteUser, getInfo, getName, getType, getVersion, getWrapper, initializeMyServer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected RemoteConnection createRemoteConnection(FencedRemoteUser user, int kind, long id) throws java.lang.Exception
user
- The user mapping object that is used to authenticate the user.kind
- The connection type.id
- An integer value that represents the RemoteConnection object.
java.lang.Exception
- if the RemoteConnection instance cannot be created.RemoteConnection
public final RemoteConnection findConnection()
protected int getRemoteConnectionKind()
RemoteConnection.NO_PHASE_KIND
or RemoteConnection.ONE_PHASE_KIND
constants.
A default implementation returns the RemoteConnection.NO_PHASE_KIND
constant.
The subclasses can overwrite this method if necessary.
RemoteConnection
|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(C)Copyright IBM Corp. 2002. All rights reserved.
Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.