public class VistaLinkConnectionFactory
extends java.lang.Object
implements javax.resource.cci.ConnectionFactory, java.io.Serializable, javax.resource.Referenceable
Constructor and Description |
---|
VistaLinkConnectionFactory(gov.va.med.vistalink.adapter.spi.VistaLinkManagedConnectionFactory managedFactory,
javax.resource.spi.ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCfgIpAddress()
Retrieve configuration file setting for this connection factory.
|
int |
getCfgPort()
Retrieve configuration file setting for this connection factory.
|
long |
getCfgTimeout()
Retrieve configuration file setting for this connection factory.
|
javax.resource.cci.Connection |
getConnection()
Gets a VistaLinkConnection connection handle; calls allocateConnection().
|
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionSpec connectionSpec) |
java.lang.String |
getConnectorJndiName()
Retrieve configuration file setting for this connection factory.
|
long |
getDistinguishedIdentifier()
Retrieve information for this connection factory.
|
long |
getHlthConnectionAuthFailureCount()
Retrieve health counter for this connection factory.
|
long |
getHlthConnectionFailureCount()
Retrieve health counter for this connection factory.
|
long |
getHlthDivisionMismatchCount()
Retrieve health counter for this connection factory.
|
long |
getHlthIdentityFailureCount()
Retrieve health counter for this connection factory.
|
long |
getHlthProductionMismatchCount()
Retrieve health counter for this connection factory.
|
java.io.PrintWriter |
getLogWriter()
Deprecated.
unused method, not part of JCA spec, left to help preserve compatibility with previous versions
|
void |
getMCFInfo(gov.va.med.vistalink.adapter.spi.ConnectorInfoVO connectorInfoVO,
boolean getDetailInfo)
Deprecated.
Unused method; not removing to help preserve compatibility.
|
javax.resource.cci.ResourceAdapterMetaData |
getMetaData()
Returns the meta data information associated with this adapter.
|
double |
getPerfCreateConnectionHandleAvgMillis()
Retrieve performance tracker for this connection factory.
|
double |
getPerfMatchManagedConnectionAvgMillis()
Retrieve performance tracker for this connection factory.
|
javax.resource.cci.RecordFactory |
getRecordFactory()
Empty method.
|
javax.naming.Reference |
getReference()
Referenceable interface.
|
static VistaLinkConnectionFactory |
getVistaLinkConnectionFactory(java.lang.String hostIPAddress,
java.lang.Integer hostPort)
Creates VistaLinkConnectionFactory to be used in non-managed environment (J2SE).
|
boolean |
isCfgTimeoutAlwaysUseDefaultAsMin()
Retrieve configuration file setting for this connection factory.
|
gov.va.med.vistalink.adapter.spi.VistaLinkSystemInfoVO |
queryMSystem()
query the M system reached by this connector for general system information.
|
void |
setLogWriter(java.io.PrintWriter printWriter)
Deprecated.
unused method, not part of JCA spec, left to help preserve compatibility with previous versions
|
void |
setReference(javax.naming.Reference reference)
Referenceable interface.
|
public VistaLinkConnectionFactory(gov.va.med.vistalink.adapter.spi.VistaLinkManagedConnectionFactory managedFactory, javax.resource.spi.ConnectionManager connectionManager)
managedFactory
- the factory that the connection manager will use to construct managed connectionsconnectionManager
- the connection manager that will allocate new VistaLinkConnections. This value is null
in an unmanaged environment and defaults to VistaLinkConnectionManager this value is specified by the
application server in a managed environmentpublic java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
javax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter printWriter) throws javax.resource.ResourceException
printWriter
- javax.resource.ResourceException
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
ConnectionFactory.getMetaData()
public javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
Referenceable.getReference()
public void setReference(javax.naming.Reference reference)
reference
- referenceReferenceable.setReference(javax.naming.Reference)
public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec connectionSpec) throws javax.resource.ResourceException
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public javax.resource.cci.Connection getConnection() throws javax.resource.ResourceException
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
ConnectionFactory.getConnection()
public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.ResourceException
getRecordFactory
in interface javax.resource.cci.ConnectionFactory
javax.resource.NotSupportedException
javax.resource.ResourceException
ConnectionFactory.getRecordFactory()
public static final VistaLinkConnectionFactory getVistaLinkConnectionFactory(java.lang.String hostIPAddress, java.lang.Integer hostPort) throws javax.resource.ResourceException
This method should never be called in managed environment (J2EE) as application server is responsible for creating ConnectionFactories. J2EE code should use JNDI lookup to get a reference to the ConnectionFactory.
hostIPAddress
- - the IP address to connect tohostPort
- - the port to openjavax.resource.ResourceException
public void getMCFInfo(gov.va.med.vistalink.adapter.spi.ConnectorInfoVO connectorInfoVO, boolean getDetailInfo)
connectorInfoVO
- object to populategetDetailInfo
- populate with less detail if false, more detail if truepublic java.lang.String getCfgIpAddress()
public int getCfgPort()
public long getCfgTimeout()
public boolean isCfgTimeoutAlwaysUseDefaultAsMin()
public long getDistinguishedIdentifier()
public long getHlthConnectionAuthFailureCount()
public long getHlthConnectionFailureCount()
public long getHlthDivisionMismatchCount()
public long getHlthIdentityFailureCount()
public long getHlthProductionMismatchCount()
public double getPerfCreateConnectionHandleAvgMillis()
public double getPerfMatchManagedConnectionAvgMillis()
public gov.va.med.vistalink.adapter.spi.VistaLinkSystemInfoVO queryMSystem()
public java.lang.String getConnectorJndiName()
VistALink v1.6a