All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.pool.Connection
java.lang.Object
|
+----bea.jolt.pool.Connection
- public class Connection
- extends Object
This class represents a single connection (Session) to a BEA Jolt
server and a BEA TUXEDO application. Since this class represents the
only connection to a BEA TUXEDO system, all requests to a BEA TUXEDO
system are sent via this class. However, this class is not used
directly by programmers to send requests. Programmers use methods in
other classes in this package to communicate with the BEA TUXEDO
system.
This class exposes methods that are part of the
administrative API for the BEA Jolt session pool.
When this class is used in a BEA WebLogic environment, these
administrative API methods are accessed via the BEA WebLogic Console.
Programmers do not need to access these methods directly.
- Author:
- Copyright (c) 1999 by BEA Systems, Inc. All Rights Reserved.
-
getAccessTime()
- This method is part of the session pool administrative API.
-
getAddr()
- This method is part of the session pool administrative API.
-
getErrorCount()
- This method is part of the session pool administrative API.
-
getRequestCount()
- This method is part of the session pool administrative API.
-
getUseCount()
- This method is part of the session pool administrative API.
-
inTransaction()
- This method is part of the session pool administrative API.
-
isAlive()
- This method is part of the session pool administrative API.
isAlive
public final boolean isAlive()
- This method is part of the session pool administrative API.
Checks if the connection to the BEA TUXEDO server
is still alive.
- Returns:
- true if the connection is alive, otherwise false
inTransaction
public final boolean inTransaction()
- This method is part of the session pool administrative API.
Checks if the connection is running an active transaction.
Note that a connection can have only one transaction active
at any time.
- Returns:
- true if the connection is in a transaction, false otherwise
getAccessTime
public final Date getAccessTime()
- This method is part of the session pool administrative API.
Gets the time when this connection was last accessed.
- Returns:
- Date and time when this connection was last accessed
getUseCount
public final int getUseCount()
- This method is part of the session pool administrative API.
Gets the number of outstanding requests on this connection.
A connection can have up to 50 outstanding requests at
any time.
- Returns:
- Number of outstanding requests on this connection
getErrorCount
public final int getErrorCount()
- This method is part of the session pool administrative API.
Gets the cumulative BEA TUXEDO system error count on this connection.
This is the total number of errors that have
been encountered by this connection since it was established.
- Returns:
- Total number of BEA TUXEDO system errors for this connection
getAddr
public final String getAddr()
- This method is part of the session pool administrative API.
Gets the address of the server that holds this connection.
The address is returned in //host:port format.
- Returns:
- Address of server that holds this connection
getRequestCount
public final int getRequestCount()
- This method is part of the session pool administrative API.
Gets the number of requests that have been sent via this Connection.
- Returns:
- Number of requests
All Packages Class Hierarchy This Package Previous Next Index