|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.va.med.vistalink.adapter.cci.VistaLinkConnectionFactory
public class VistaLinkConnectionFactory
This implementation class provides an interface for getting connection to an EIS instance. Adapters derived from ConnectionFactory overide/implement getConnection() to provide adapter-specific connections.
Constructor Summary | |
---|---|
VistaLinkConnectionFactory(gov.va.med.vistalink.adapter.spi.VistaLinkManagedConnectionFactory managedFactory,
javax.resource.spi.ConnectionManager connectionManager)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 environmentThis constructor, method or field is not for public use. |
Method Detail |
---|
public java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
javax.resource.ResourceException
This constructor, method or field is not for public use. |
public void setLogWriter(java.io.PrintWriter printWriter) throws javax.resource.ResourceException
printWriter
-
javax.resource.ResourceException
This constructor, method or field is not for public use. |
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
ConnectionFactory.getMetaData()
This constructor, method or field is not for public use. |
public javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
Referenceable.getReference()
This constructor, method or field is not for public use. |
public void setReference(javax.naming.Reference reference)
reference
- referenceReferenceable.setReference(javax.naming.Reference)
This constructor, method or field is not for public use. |
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()
This constructor, method or field is not for public use. |
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 open
javax.resource.ResourceException
This constructor, method or field is not for public use. |
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 trueThis constructor, method or field is not for public use. |
public java.lang.String getCfgIpAddress()
This constructor, method or field is not for public use. |
public int getCfgPort()
This constructor, method or field is not for public use. |
public long getCfgTimeout()
This constructor, method or field is not for public use. |
public boolean isCfgTimeoutAlwaysUseDefaultAsMin()
This constructor, method or field is not for public use. |
public long getDistinguishedIdentifier()
This constructor, method or field is not for public use. |
public long getHlthConnectionAuthFailureCount()
This constructor, method or field is not for public use. |
public long getHlthConnectionFailureCount()
This constructor, method or field is not for public use. |
public long getHlthDivisionMismatchCount()
This constructor, method or field is not for public use. |
public long getHlthIdentityFailureCount()
This constructor, method or field is not for public use. |
public long getHlthProductionMismatchCount()
This constructor, method or field is not for public use. |
public double getPerfCreateConnectionHandleAvgMillis()
This constructor, method or field is not for public use. |
public double getPerfMatchManagedConnectionAvgMillis()
This constructor, method or field is not for public use. |
public gov.va.med.vistalink.adapter.spi.VistaLinkSystemInfoVO queryMSystem()
This constructor, method or field is not for public use. |
public java.lang.String getConnectorJndiName()
This constructor, method or field is not for public use. |
|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |