public class VistaLinkManagedConnectionFactory extends Object implements ManagedConnectionFactory, Serializable, ValidatingManagedConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
ADAPTER_FULL_VERSION |
static String |
ADAPTER_VERSION |
static String |
CONNECTOR_PROPERTY_NAME |
| Constructor and Description |
|---|
VistaLinkManagedConnectionFactory()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCreateConnectionHandleTime(long elapsedMillis)
Add a new time for creating another connection handle
|
Object |
createConnectionFactory()
Creates a connection factory instance with the default connection manager.
|
Object |
createConnectionFactory(ConnectionManager mgr)
Creates a connection factory instance.
|
ManagedConnection |
createManagedConnection(Subject subject,
ConnectionRequestInfo info)
Creates a new physical connection to M.
|
boolean |
equals(Object obj) |
protected void |
finalize()
Finalizer to unmap institution mappings at some point after connector is undeployed by container.
|
String |
getAccessCode() |
EMAdapterEnvironment |
getAdapterEnvironment() |
long |
getConnectionAuthFailureCount()
health indicator
|
long |
getConnectionFailureCount()
health indicator
|
String |
getConnectorJndiName() |
double |
getCreateConnectionHandleAvgMillis()
health indicator
|
long |
getDefaultJ2EETimeOut() |
long |
getDistinguishedIdentifier() |
long |
getDivisionMismatchCount()
health indicator
|
protected VistaHeartBeatTimerManager |
getHeartBeatTimerManager()
Returns the timerManager.
|
InetAddress |
getHostIpAddressResolved() |
protected InetAddress |
getHostIpAddressResolvedWithException()
Resolve the IP address each time.
|
String |
getHostIpAddressUnresolved() |
int |
getHostPort()
Returns the hostPort.
|
long |
getIdentityFailureCount()
health indicator
|
Set |
getInvalidConnections(Set managedConnections) |
PrintWriter |
getLogWriter() |
protected long |
getManagedConnectionCount() |
double |
getMatchManagedConnectionAvgMillis()
health indicator
|
int |
getMaxConnectionHandles()
Returns the maxConnectionHandle.
|
String |
getPrimaryStation() |
long |
getProductionMismatchCount()
health indicator
|
protected long |
getSocketTimeOut()
gets the timeout value for managed connections
|
VistaLinkSystemInfoVO |
getSystemInfo() |
String |
getVerifyCode() |
int |
hashCode()
return cached hashcode
|
protected void |
incrementConnectionAuthFailureCount()
increment the connection authentication failure count
|
protected void |
incrementConnectionFailureCount()
increment the connnection failure count
|
protected void |
incrementdivisionMismatchCount()
increment the division mismatch count
|
protected void |
incrementIdentityFailureCount()
increment the identity failure count
|
protected void |
incrementProductionMismatchCount()
increment the production mismatch count
|
boolean |
isAlwaysUseDefaultAsMin() |
boolean |
isConnectorEnabled() |
ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo info)
Returns a matched connection from the candidate set of connections.
|
protected void |
removeMc(VistaLinkManagedConnection mc)
Remove managed connection for the set used for lookup in matchedManagedConnections
|
protected void |
setAccessCode(String accessCode) |
void |
setAdapterEnvironment(EMAdapterEnvironment adapterEnvironment) |
protected void |
setConnectorEnabled(boolean connectorEnabled) |
void |
setconnectorJndiName(String connectorJndiName)
overload setter method needed for JBoss
|
void |
setConnectorJndiName(String connectorJndiName)
Setter used by container when processing custom ra.xml properties
|
void |
setConnectorJndiNameInternal(String connectorJndiName,
ConnectorConfigurator cc)
Supports both container and unit test setting of JNDI name property.
|
protected void |
setHostIpAddress(String hostIpAddress) |
protected void |
setHostPort(int hostPort) |
void |
setLogWriter(PrintWriter out) |
void |
setNonManagedAccessCode(String string)
used for non-managed mode only
|
void |
setNonManagedHostIPAddress(String hostipaddress)
used for non-managed mode only
sets the host IP Address
|
void |
setNonManagedHostPort(int hostPort)
used for non-managed mode only
Sets the hostPort.
|
void |
setNonManagedVerifyCode(String string)
used for non-managed mode only
|
protected void |
setPrimaryStation(String primaryStation) |
protected void |
setVerifyCode(String verifyCode) |
String |
toString() |
public static final String ADAPTER_VERSION
public static final String ADAPTER_FULL_VERSION
public static final String CONNECTOR_PROPERTY_NAME
public VistaLinkManagedConnectionFactory()
public Object createConnectionFactory(ConnectionManager mgr) throws ResourceException
createConnectionFactory in interface ManagedConnectionFactoryResourceExceptionManagedConnectionFactory.createConnectionFactory(javax.resource.spi.ConnectionManager)public Object createConnectionFactory() throws ResourceException
createConnectionFactory in interface ManagedConnectionFactoryResourceExceptionManagedConnectionFactory.createConnectionFactory()public VistaLinkSystemInfoVO getSystemInfo()
public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo info) throws ResourceException
createManagedConnection in interface ManagedConnectionFactorysubject - Caller's security informationinfo - Additional resource adapter specific connection request informationVistaLinkResourceExceptionResourceExceptionManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,
javax.resource.spi.ConnectionRequestInfo)protected void removeMc(VistaLinkManagedConnection mc)
mc - reference to a managed connectionpublic ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo info) throws ResourceException
The method iterates through a Set of type VistaLinkManagedConnection determines if the HostIPAddress and HostPort are the same as those defined for this instance of the VistaLinkManagedConnectionFactory and then determines if the connection request info is equal to the connection request info associated with the mc.
Managed Connection Check Criteria:
1) If the connection request info passed in is equal to the connection request info associated with the mc, then
this mc is immediately returned. It is the best match.
2) The first mc found that is not already associated with a connection request info object (mc.getConnReqInfo() == null), is the second best match. This mc is returned if no match for #1 is found.
3) The last mc found where the connection request info passed in is not equal to the connection request info associated with the mc will be returned if no match for either #1 or #2 is found.
4) If no match for any of #1, #2, #3 is found then null is returned.
matchManagedConnections in interface ManagedConnectionFactoryconnectionSet - candidate connection setsubject - caller's security informationinfo - additional resource adapter specific connection request informationVistaLinkResourceExceptionResourceExceptionManagedConnectionFactory.matchManagedConnections(java.util.Set,
javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)public PrintWriter getLogWriter() throws ResourceException
getLogWriter in interface ManagedConnectionFactoryResourceExceptionManagedConnectionFactory.getLogWriter()public void setLogWriter(PrintWriter out) throws ResourceException
setLogWriter in interface ManagedConnectionFactoryResourceExceptionManagedConnectionFactory.setLogWriter(java.io.PrintWriter)public boolean equals(Object obj)
equals in interface ManagedConnectionFactoryequals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in interface ManagedConnectionFactoryhashCode in class ObjectObject.hashCode()public final String toString()
toString in class ObjectObject.toString()public int getMaxConnectionHandles()
public int getHostPort()
public void setNonManagedHostPort(int hostPort)
hostPort - The hostPort to setpublic void setNonManagedHostIPAddress(String hostipaddress)
hostipaddress - protected long getSocketTimeOut()
protected VistaHeartBeatTimerManager getHeartBeatTimerManager()
public String getAccessCode()
public String getVerifyCode()
public void setNonManagedAccessCode(String string)
string - public void setNonManagedVerifyCode(String string)
string - public InetAddress getHostIpAddressResolved()
protected InetAddress getHostIpAddressResolvedWithException() throws VistaLinkResourceException
VistaLinkResourceException - exception encountered if resolution failspublic String getHostIpAddressUnresolved()
public EMAdapterEnvironment getAdapterEnvironment()
public void setAdapterEnvironment(EMAdapterEnvironment adapterEnvironment)
adapterEnvironment - protected long getManagedConnectionCount()
public long getDistinguishedIdentifier()
public void setConnectorJndiName(String connectorJndiName)
connectorJndiName - Jndi Name of the entry in the configuration file to use for this connectorpublic void setConnectorJndiNameInternal(String connectorJndiName, ConnectorConfigurator cc)
connectorJndiName - cc - public void setconnectorJndiName(String connectorJndiName)
connectorJndiName - public String getConnectorJndiName()
public boolean isAlwaysUseDefaultAsMin()
public long getDefaultJ2EETimeOut()
protected void incrementConnectionFailureCount()
public long getConnectionFailureCount()
protected void incrementConnectionAuthFailureCount()
public long getConnectionAuthFailureCount()
protected void incrementIdentityFailureCount()
public long getIdentityFailureCount()
protected void incrementdivisionMismatchCount()
public long getDivisionMismatchCount()
protected void incrementProductionMismatchCount()
protected void setConnectorEnabled(boolean connectorEnabled)
connectorEnabled - The connectorEnabled to set.public boolean isConnectorEnabled()
public long getProductionMismatchCount()
protected void addCreateConnectionHandleTime(long elapsedMillis)
elapsedMillis - time to create connection handle, in millisecondspublic double getCreateConnectionHandleAvgMillis()
public double getMatchManagedConnectionAvgMillis()
public String getPrimaryStation()
protected void setAccessCode(String accessCode)
accessCode - The accessCode to set.protected void setHostIpAddress(String hostIpAddress)
hostIpAddress - The hostIpAddress to set.protected void setHostPort(int hostPort)
hostPort - The hostPort to set.protected void setPrimaryStation(String primaryStation)
primaryStation - The primaryStation to set.protected void setVerifyCode(String verifyCode)
verifyCode - The verifyCode to set.public Set getInvalidConnections(Set managedConnections) throws ResourceException
getInvalidConnections in interface ValidatingManagedConnectionFactoryResourceExceptionCopyright © 2026. All rights reserved.