|
CICS® Transaction Gateway Programming Reference v1.1.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.connector2.cics.CICSManagedConnectionFactory
com.ibm.connector2.cics.EPIManagedConnectionFactory
public final class EPIManagedConnectionFactory
An EPIManagedConnectionFactory is used to create physical EPI connections to the CICS Transaction Gateway. In managed mode this is controlled by the J2EE application server and properties are set by configuring the ConnectionFactory objects via the application server. In non-managed mode the client application is required to create an instance of this class and set the relevant properties itself. Once this is done a ConnectionFactory object can be obtained which will inherit these properties.
Field Summary |
---|
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 | |
---|---|
EPIManagedConnectionFactory()
Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
createConnectionFactory()
This will create an EPIConnectionFactory. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager manager)
This will create an EPIConnectionFactory. |
boolean |
equals(java.lang.Object inObj)
Returns true if all the configurable properties are equal. |
java.lang.String |
getDeviceType()
Return the current device type. |
java.lang.String |
getEncoding()
Return the current encoding. |
java.lang.Integer |
getInstallTimeout()
Get the install timeout value in seconds. |
java.lang.String |
getLogonLogoffClass()
Return the current logonLogoff class name. |
java.lang.Integer |
getReadTimeout()
Returns the current read timeout value in seconds. |
java.lang.Integer |
getSignonType()
Return the sign on type: |
int |
hashCode()
Returns a hashcode based on all configurable properties. |
void |
setDeviceType(java.lang.String strDevice)
Set the device type that terminals created through this factory should use. |
void |
setEncoding(java.lang.String strEncoding)
Set the encoding you wish to have the 3270 datastreams converted to and send to the CICS server. |
void |
setInstallTimeout(java.lang.Integer iInstallTimeout)
Set the install timeout. |
void |
setLogonLogoffClass(java.lang.String strLogonLogoff)
Set the logonLogoff class to be instantiated and called if a signon capable or signon unknown terminal is created. |
void |
setReadTimeout(java.lang.Integer iReadTimeout)
Set the read timeout. |
void |
setSignonType(java.lang.Integer newSignon)
Set the sign on type: 0 = Signon Capable 1 = Signon InCapable |
java.lang.String |
toString()
Return a string representation of this class. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EPIManagedConnectionFactory()
Method Detail |
---|
public void setSignonType(java.lang.Integer newSignon)
Invalid value results in Signon Capable.
newSignon
- The sign on type requiredpublic java.lang.Integer getSignonType()
0 = Signon Capable
1 = Signon Incapable
public void setEncoding(java.lang.String strEncoding)
strEncoding
- The Java Encoding to use for 3270 datastreams.public java.lang.String getEncoding()
public void setDeviceType(java.lang.String strDevice)
strDevice
- The device type.public java.lang.String getDeviceType()
public void setLogonLogoffClass(java.lang.String strLogonLogoff)
strLogonLogoff
- The fully qualified class name.public java.lang.String getLogonLogoffClass()
public void setReadTimeout(java.lang.Integer iReadTimeout)
iReadTimeout
- The read timeout value in seconds.public java.lang.Integer getReadTimeout()
public void setInstallTimeout(java.lang.Integer iInstallTimeout)
iInstallTimeout
- The install timeout in seconds.public java.lang.Integer getInstallTimeout()
public java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
This method creates a connection factory in a non managed environment, so a supplied default connection manager is used rather than an application server environment.
resourceException
javax.resource.ResourceException
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager manager) throws javax.resource.ResourceException
This method creates a connection factory in a managed environment, so will be invoked by an application server, providing it's own connection manager.
manager
- A suitable ConnectionManager to be associated with the EPIConnectionFactory.
resourceException
javax.resource.ResourceException
public boolean equals(java.lang.Object inObj)
equals
in interface javax.resource.spi.ManagedConnectionFactory
equals
in class CICSManagedConnectionFactory
public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
in class CICSManagedConnectionFactory
public java.lang.String toString()
toString
in class CICSManagedConnectionFactory
|
©Copyright IBM Corp. 1994, 2014 Legal |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |