Class CobolManagedConnectionMetaData

This class gives info about a ManagedConnection and the connected EIS instance.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
java.lang.Object

extended by com.microfocus.cobol.connector.spi.CobolManagedConnectionMetaData

All Implemented Interfaces

ManagedConnectionMetaData

Class Specifications

public class CobolManagedConnectionMetaData

extends Object

implements ManagedConnectionMetaData

Constructor Summary

CobolManagedConnectionMetaData(CobolManagedConnection mc)
Create a Managed Connection Meta Data instance.

Methods

Method Summary
String getEISProductName()

Returns Product name of the underlying EIS instance connected through the ManagedConnection.

String getEISProductVersion()

Returns product version of the underlying EIS instance connected through the ManagedConnection.

int getMaxConnections()

Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes. If an EIS instance does not know about (or does not have) any such limit, it returns a 0.

String getUserName()

Returns name of the user associated with the ManagedConnection instance. The name corresponds to the resource principal under whose whose security context, a connection to the EIS instance has been established.

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CobolManagedConnectionMetaData
public CobolManagedConnectionMetaData

Create a Managed Connection Meta Data instance.

Method Detail

getEISProductName
public String getEISProductName()
                         throws ResourceException

Returns Product name of the underlying EIS instance connected through the ManagedConnection.

Specified by:
getEISProductName in interface ManagedConnectionMetaData
Throws:
ResourceException
getEISProductVersion
public String getEISProductVersion()
                            throws ResourceException

Returns product version of the underlying EIS instance connected through the ManagedConnection.

Specified by:
getEISProductVersion in interface ManagedConnectionMetaData
Throws:
ResourceException
getMaxConnections
public int getMaxConnections()
                      throws ResourceException

Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes. If an EIS instance does not know about (or does not have) any such limit, it returns a 0.

Returns:
Maximum limit for number of active concurrent connections.
Throws:
ResourceException
getUserName
public String getUserName()
                   throws ResourceException

Returns name of the user associated with the ManagedConnection instance. The name corresponds to the resource principal under whose whose security context, a connection to the EIS instance has been established.

Returns:
The name of the user.
Throws:
ResourceException