|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.connector2.cics.ECIManagedConnectionFactory
Abstract class that provides the ManagedConnectionFactory Framework for CICS Resource Adapters
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from interface com.ibm.connector2.cics.CICSLogTraceLevels |
---|
RAS_TRACE_ENTRY_EXIT, RAS_TRACE_ERROR_EXCEPTION, RAS_TRACE_INTERNAL, RAS_TRACE_OFF |
Constructor Summary | |
---|---|
ECIManagedConnectionFactory()
Default Constructor. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener. |
java.lang.Object |
createConnectionFactory()
This method is the default route to creating ECIConnectionFactory objects. |
java.lang.Object |
createConnectionFactory(ConnectionManager cm)
This method allows a ConnectionManager to be specified as the one to be used by the returned ECIConnectionFactory. |
ManagedConnection |
createManagedConnection(javax.security.auth.Subject security,
ConnectionRequestInfo request)
When no ECIManagedConnections matching the requirements laid down in the security or request parameters are found this method is used to create a new ECIManagedConnection object. |
boolean |
equals(java.lang.Object inObj)
Returns a flag indicating if the objects are identical or not. |
void |
firePropertyChange(java.lang.String strPropertyName,
java.lang.Object oOld,
java.lang.Object oNew)
Fires a PropertyChangeEvent to any listeners. |
java.lang.String |
getClientSecurity()
get the Client Security Class Name |
java.lang.String |
getConnectionURL()
get the CTG Gateway URL |
java.lang.String |
getKeyRingClass()
get the Keyring class name (applicable only to SSL Protocol) |
java.lang.String |
getKeyRingPassword()
get the Keyring password to (applicable only to SSL Protocol(s)) |
java.io.PrintWriter |
getLogWriter()
return the Current Logwriter for this instance |
java.lang.String |
getPassword()
get the password for this connection |
java.lang.String |
getPortNumber()
get the port to communicate to the CTG on |
java.lang.String |
getServerName()
return the Server to connect to (must be defined to the CTG) |
java.lang.String |
getServerSecurity()
get the Server Security Class Name |
java.lang.String |
getTPNName()
Allows access to the TPN Transaction Name that all CICS request will run under. |
java.lang.Integer |
getTraceLevel()
get the trace level for this Managed Connection Factory |
java.lang.String |
getTranName()
Allows access to the Transaction Name that all CICS request will run under. |
java.lang.String |
getUserName()
get the username for this connection |
int |
hashCode()
Returns a hashcode based on connectionURL, serverName, portNumber, which uniquely identify the backend server. |
ManagedConnection |
matchManagedConnections(java.util.Set connections,
javax.security.auth.Subject security,
ConnectionRequestInfo request)
In order for a generic J2EE environment to successfully match a connection request to a ManagedConnection implementation it must delegate to the specific Resource Adapter. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener. |
void |
setClientSecurity(java.lang.String newClSec)
set the Client Security Class Name to be used |
void |
setConnectionURL(java.lang.String newURL)
set the CTG Gateway URL |
void |
setKeyRingClass(java.lang.String newKeyRing)
set the Keyring class name to use (applicable and mandatory for SSL protocol(s)) |
void |
setKeyRingPassword(java.lang.String newPassword)
set the keyring Password to use (applicable and mandatory for SSL protocol) |
void |
setLogWriter(java.io.PrintWriter newLog)
set the logwriter to be used by this object.This is not used by CCI for CICS TS. |
void |
setPassword(java.lang.String newPassword)
set the password for this connection |
void |
setPortNumber(java.lang.String newPort)
set the port to communicate with the CTG on. |
void |
setServerName(java.lang.String newServer)
set the Server to connect to (this name must be defined in the CTG config) |
void |
setServerSecurity(java.lang.String newSvrSec)
set the Client Security Class Name to be used |
void |
setTPNName(java.lang.String name)
Sets the TPN Transaction Name that all CICS requests will run under. |
void |
setTraceLevel(java.lang.Integer newLevel)
set the trace level for this managed connection factory and anything it creates. |
void |
setTranName(java.lang.String name)
Sets the Transaction Name that all CICS requests will run under. |
void |
setUserName(java.lang.String newUser)
set the username for this connection |
java.lang.String |
toString()
return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CLASS_VERSION
Constructor Detail |
public ECIManagedConnectionFactory()
Method Detail |
public java.lang.String getConnectionURL()
public void setConnectionURL(java.lang.String newURL)
newURL
- The new CTG Gateway URLpublic java.lang.String getServerName()
public void setServerName(java.lang.String newServer)
newServer
- The Server to connect topublic java.lang.String getUserName()
public void setUserName(java.lang.String newUser)
newUser
- Usernamepublic java.lang.String getPassword()
public void setPassword(java.lang.String newPassword)
newPassword
- passwordpublic java.lang.String getPortNumber()
public void setPortNumber(java.lang.String newPort)
newPort
- public java.lang.String getClientSecurity()
public void setClientSecurity(java.lang.String newClSec)
public java.lang.String getServerSecurity()
public void setServerSecurity(java.lang.String newSvrSec)
public java.lang.String getKeyRingClass()
public void setKeyRingClass(java.lang.String newKeyRing)
newKeyRing
- The keyring class namepublic java.lang.String getKeyRingPassword()
public void setKeyRingPassword(java.lang.String newPassword)
newPassword
- The keyring class passwordpublic java.io.PrintWriter getLogWriter()
public void setLogWriter(java.io.PrintWriter newLog)
newLog
- The PrintWriter to usepublic java.lang.Integer getTraceLevel()
CICSLogTraceLevels
public void setTraceLevel(java.lang.Integer newLevel)
newLevel
- Trace Level to useCICSLogTraceLevels
public java.lang.String getTranName()
public java.lang.String getTPNName()
public void setTranName(java.lang.String name)
name
- The new Transid to use.public void setTPNName(java.lang.String name)
Sets the TPN Transaction Name that all CICS requests will run under.
Note: This takes precedence over TranName so if both are specified TPNName will be used.
name
- The new Transid to use.public int hashCode()
public boolean equals(java.lang.Object inObj)
public java.lang.String toString()
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- java.beans.PropertyChangeListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- java.beans.PropertyChangeListenerpublic void firePropertyChange(java.lang.String strPropertyName, java.lang.Object oOld, java.lang.Object oNew)
strPropertyName
- java.lang.StringoOld
- java.lang.ObjectoNew
- java.lang.Objectpublic java.lang.Object createConnectionFactory() throws ResourceException
ResourceException
public java.lang.Object createConnectionFactory(ConnectionManager cm) throws ResourceException
cm
- The ConnectionManager object to associate with the new ECIConnectionFactory
ResourceException
public ManagedConnection createManagedConnection(javax.security.auth.Subject security, ConnectionRequestInfo request) throws ResourceException
security
- A system supplied set of security credentialsrequest
- An ECIConnectionRequestInfo object containing the
client components security credentials if supplied
ResourceException
- Thrown when the parameters are not of the required
typepublic ManagedConnection matchManagedConnections(java.util.Set connections, javax.security.auth.Subject security, ConnectionRequestInfo request)
connections
- The java.util.Set of candidate ManagedConnection objects
that are to be tested for a match.security
- A possibly null set of security credentialsrequest
- An ECIConnectionRequestInfo object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |