public class VistaLinkConnectionFactory extends Object implements ConnectionFactory, Serializable, Referenceable
| Constructor and Description |
|---|
VistaLinkConnectionFactory(VistaLinkManagedConnectionFactory managedFactory,
ConnectionManager connectionManager) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Connection |
getConnection()
Gets a VistaLinkConnection connection handle; calls allocateConnection().
|
Connection |
getConnection(ConnectionSpec connectionSpec) |
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.
|
PrintWriter |
getLogWriter()
Deprecated.
unused method, not part of JCA spec, left to help preserve compatibility with previous versions
|
void |
getMCFInfo(ConnectorInfoVO connectorInfoVO,
boolean getDetailInfo)
Deprecated.
Unused method; not removing to help preserve compatibility.
|
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.
|
RecordFactory |
getRecordFactory()
Empty method.
|
Reference |
getReference()
Referenceable interface.
|
static VistaLinkConnectionFactory |
getVistaLinkConnectionFactory(String hostIPAddress,
Integer hostPort)
Creates VistaLinkConnectionFactory to be used in non-managed environment (J2SE).
|
boolean |
isCfgTimeoutAlwaysUseDefaultAsMin()
Retrieve configuration file setting for this connection factory.
|
VistaLinkSystemInfoVO |
queryMSystem()
query the M system reached by this connector for general system information.
|
void |
setLogWriter(PrintWriter printWriter)
Deprecated.
unused method, not part of JCA spec, left to help preserve compatibility with previous versions
|
void |
setReference(Reference reference)
Referenceable interface.
|
public VistaLinkConnectionFactory(VistaLinkManagedConnectionFactory managedFactory, 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 PrintWriter getLogWriter() throws ResourceException
ResourceExceptionpublic void setLogWriter(PrintWriter printWriter) throws ResourceException
printWriter - ResourceExceptionpublic ResourceAdapterMetaData getMetaData()
throws ResourceException
getMetaData in interface ConnectionFactoryResourceExceptionConnectionFactory.getMetaData()public Reference getReference()
getReference in interface ReferenceableReferenceable.getReference()public void setReference(Reference reference)
reference - referenceReferenceable.setReference(javax.naming.Reference)public Connection getConnection(ConnectionSpec connectionSpec)
throws ResourceException
getConnection in interface ConnectionFactoryResourceExceptionpublic Connection getConnection()
throws ResourceException
getConnection in interface ConnectionFactoryResourceExceptionConnectionFactory.getConnection()public RecordFactory getRecordFactory()
throws ResourceException
getRecordFactory in interface ConnectionFactoryNotSupportedExceptionResourceExceptionConnectionFactory.getRecordFactory()public static final VistaLinkConnectionFactory getVistaLinkConnectionFactory(String hostIPAddress, Integer hostPort) throws 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 openResourceExceptionpublic void getMCFInfo(ConnectorInfoVO connectorInfoVO, boolean getDetailInfo)
connectorInfoVO - object to populategetDetailInfo - populate with less detail if false, more detail if truepublic 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 VistaLinkSystemInfoVO queryMSystem()
public String getConnectorJndiName()
Copyright © 2026. All rights reserved.