com.microfocus.cobol.connector.spi.CobolNoTxManagedConnectionFactory
ManagedConnectionFactory, ResourceAdapterAssociation, Serializable
public class CobolNoTxManagedConnectionFactory
extends Object
implements ManagedConnectionFactory, ResourceAdapterAssociation, Serializable
See Also:
protected String | serverHost |
protected String | serverPort |
protected String | logHost |
protected String | logPort |
protected Boolean | trace |
protected Boolean | secureGUID |
protected Integer | readTimeoutInSeconds |
protected Integer | enterpriseServerSocketCloseDueToInactivity |
Method Summary | |
---|---|
void | setResourceAdapter(ResourceAdapter ra) |
ResourceAdapter | getResourceAdapter(ConnectionManager ra) |
Object | createConnectionFactory(cxManager)
Create a ConnectionFactory with a Connection Manager instance. |
Object | createConnectionFactory(cxManager)
Create a ConnectionFactory with a Connection Manager instance. |
ManagedConnection | createManagedConnection(Subject subject,
ConnectionRequestInfo info)
Create a managed connection to Cobol Server. |
ManagedConnection | matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo info)
Match Managed Connections. The App Server calls this function to match a connection from the set of connections. The match is based on security credentials. |
void | setLogWriter(PrintWriter out)
Set log writer. |
void | getLogWriter()
Get log writer. |
boolean | equals(Object obj) |
int | hashcode() |
void | setServerHost(String serverHost)
Set the server host. |
String | getServerHost()
Get the server host. |
void | setServerPort(String serverPort)
Set the server port. |
String | getServerPort()
Get the server port. |
void | setLogHost(String logHost)
Set the log host. |
String | getLogHost()
Get the log host. |
void | setLogPort(String logPort)
Set the log port. |
String | getLogPort()
Get the log port. |
void | setTrace(Boolean trace)
Set tracing. |
Boolean | getTrace()
Check if tracing is enabled. |
void | setSecureGUID(Boolean s)
Set secure GUID. |
Boolean | getSecureGUID()
Get secure GUID |
void | setReadTimeoutInSeconds(Integer readTimeoutInSeconds)
Set ReadTimeoutInSeconds |
Integer | getReadTimeoutInSeconds()
Get ReadTimeoutInSeconds |
void | setEnterpriseServerSocketCloseDueToInactivity(Integer enterpriseServerSocketCloseDueToInactivity)
Sets EnterpriseServerSocketCloseDueToInactivity |
Integer | getEnterpriseServerSocketCloseDueToInactivity()
Gets EnterpriseServerSocketCloseDueToInactivity |
void | setURL(String url) |
String | getURL() |
protected String serverHost
protected String serverPort
protected String logHost
protected String logPort
protected Boolean trace
protected Boolean secureGUID
protected Integer readTimeoutInSeconds
protected Integer enterpriseServerSocketCloseDueToInactivity
public CobolNoTxManagedConnectionFactory
Create a No TX Managed Connection Factory instance.
public void setResourceAdapter(ResourceAdapter ra) throws ResourceException
public ResourceAdapter getResourceAdapter(ConnectionManager ra) throws ResourceException)
public Object createConnectionFactory(ConnectionManager cxManager)
Create a ConnectionFactory with a Connection Manager instance.
cxManager | The connection Manager Instance. In a managed connection case, the app server supplies the connection manager. |
public Object createConnectionFactory()
Create a ConnectionFactory with a Connection Manager instance.
cxManager | The connection Manager Instance. In a managed connection case, the app server supplies the connection manager. |
public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo info) throws ResourceException
Create a managed connection to Cobol Server.
subject | The subject instance. |
info | Connection request information. |
public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo info) throws ResourceException
Match Managed Connections. The App Server calls this function to match a connection from the set of connections. The match is based on security credentials.
connectionSet | The connection pool of Managed Connections |
subject | The subject instance. |
info | Connection request information. |
public void setLogWriter(PrintWriter out) throws ResourceException
Set log writer.
out | PrintWriter instance. |
public void getLogWriter() throws ResourceException
Get log writer.
public boolean equals (Object obj)
public int hashCode()
public void setServerHost (String serverHost)
Set the server host.
serverHost |
public String getServerHost()
Get the server host.
public void setServerPort(String serverPort)
Set the server port.
serverPort |
public String getServerPort()
Get the server port.
public void setLogHost(String logHost)
Set the log host.
logHost |
public String getLogHost()
Get the log host.
public void setLogPort(String logPort)
Set the log port
logPort |
public String getLogPort()
Get the log port.
public void setTrace(Boolean trace)
Set tracing.
trace |
public Boolean getTrace()
Check if tracing is enabled.
public void setSecureGUID(Boolean s)
Set secure GUID.
s |
public Boolean getSecureGUID()
Check if secure GUID is enabled.
public void setReadTimeoutInSeconds(Integer readTimeoutInSeconds)
Set ReadTimeoutInSeconds.
readTimeoutInSeconds |
public Integer getReadTimeoutInSeconds()
Get ReadTimeoutInSeconds
public void setEnterpriseServerSocketCloseDueToInactivity(Integer enterpriseServerSocketCloseDueToInactivity)
Set EnterpriseServerSocketCloseDueToInactivity.
enterpriseServerSocketCloseDueToInactivity |
public Integer getEnterpriseServerSocketCloseDueToInactivity()
Get EnterpriseServerSocketCloseDueToInactivity
public void setUrl(String url)
public String getUrl()