IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

com.ibm.db2.wrapper
Class FencedGenericServer

java.lang.Object
  extended bycom.ibm.db2.wrapper.SqlqgBaseClass
      extended bycom.ibm.db2.wrapper.Server
          extended bycom.ibm.db2.wrapper.FencedServer
              extended bycom.ibm.db2.wrapper.FencedGenericServer

public class FencedGenericServer
extends FencedServer

The FencedGenericServer class is a subclass of the Server class and is the abstract base class for all nonrelational data source server functionality that operates in the fenced (untrusted) process space. This class is responsible for creating remote connections and nicknames.

Usage:
The wrapper must implement a subclass of FencedGenericServer class. This class is instantiated by the wrapper in the createServer method of the wrapper-specific subclass of the FencedGenericWrapper class.

Since:
IBM DB2 Information Integrator Version 8.2

Constructor Summary
protected FencedGenericServer(java.lang.String name, FencedGenericWrapper wrapper)
          Construct a FencedGenericServer object for the specified wrapper with the specified name.
 
Method Summary
protected  RemoteUser createRemoteUser(java.lang.String userName)
          Instantiate an appropriate RemoteUser subclass for this data source server.
 
Methods inherited from class com.ibm.db2.wrapper.FencedServer
createRemoteConnection, findConnection, getRemoteConnectionKind
 
Methods inherited from class com.ibm.db2.wrapper.Server
createNickname, 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
 

Constructor Detail

FencedGenericServer

protected FencedGenericServer(java.lang.String name,
                              FencedGenericWrapper wrapper)
Construct a FencedGenericServer object for the specified wrapper with the specified name.

Parameters:
name - The name of the data source server.
wrapper - The wrapper object that contains the data source server.
Since:
IBM DB2 Information Integrator Version 8.2
See Also:
FencedGenericWrapper, FencedServer
Method Detail

createRemoteUser

protected RemoteUser createRemoteUser(java.lang.String userName)
                               throws java.lang.Exception
Instantiate an appropriate RemoteUser subclass for this data source server. By default, the createRemoteUser method creates an instance of the FencedGenericRemoteUser class. The wrapper can implement this method in the wrapper-specific data source server subclass. The wrapper writer must implement this method if a wrapper-specific subclass of the FencedGenericRemoteUser class is implemented.

Overrides:
createRemoteUser in class Server
Parameters:
userName - The name of the remote user mapping to be created as specified in the CREATE USER MAPPING statement.
Returns:
The newly created FencedGenericRemoteUser instance.
Throws:
java.lang.Exception - if a new RemoteUser instance cannot be created.
Since:
IBM DB2 Information Integrator Version 8.2
See Also:
RemoteUser

IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

(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.