org.jppf.jca.spi
Class JPPFManagedConnectionMetaData

java.lang.Object
  extended by org.jppf.jca.spi.JPPFManagedConnectionMetaData
All Implemented Interfaces:
ManagedConnectionMetaData

public class JPPFManagedConnectionMetaData
extends Object
implements ManagedConnectionMetaData

Implementation of the ManagedConnectionMetaData interface.

Author:
Laurent Cohen

Constructor Summary
JPPFManagedConnectionMetaData(String userName)
          Initialize this metadata with a specified user name.
 
Method Summary
 String getEISProductName()
          Get the name of the product.
 String getEISProductVersion()
          Get the version of the product.
 int getMaxConnections()
          Get the maximum number of connections.
 String getUserName()
          Get the name of the user of the connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPPFManagedConnectionMetaData

public JPPFManagedConnectionMetaData(String userName)
Initialize this metadata with a specified user name.

Parameters:
userName - the name of the user of the connection.
Method Detail

getEISProductName

public String getEISProductName()
                         throws ResourceException
Get the name of the product.

Specified by:
getEISProductName in interface ManagedConnectionMetaData
Returns:
the product name as a string.
Throws:
ResourceException - if the product name could not be obtained.
See Also:
ManagedConnectionMetaData.getEISProductName()

getEISProductVersion

public String getEISProductVersion()
                            throws ResourceException
Get the version of the product.

Specified by:
getEISProductVersion in interface ManagedConnectionMetaData
Returns:
the version as a string.
Throws:
ResourceException - if the version could not be obtained.
See Also:
ManagedConnectionMetaData.getEISProductVersion()

getMaxConnections

public int getMaxConnections()
                      throws ResourceException
Get the maximum number of connections.

Specified by:
getMaxConnections in interface ManagedConnectionMetaData
Returns:
the number of connections as an int.
Throws:
ResourceException - if the number of connections could not be obtained.
See Also:
ManagedConnectionMetaData.getMaxConnections()

getUserName

public String getUserName()
                   throws ResourceException
Get the name of the user of the connection.

Specified by:
getUserName in interface ManagedConnectionMetaData
Returns:
the name as a stirng.
Throws:
ResourceException - if the name could not be obrained.
See Also:
ManagedConnectionMetaData.getUserName()


Copyright © 2005-2010 JPPF Team.