|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.idm.connection.Connection
public abstract class Connection
This class represents connections and various information that can be collected about connections in this framework.
Note: this class has a natural ordering that is inconsistent with equals.
Nested Class Summary | |
---|---|
class |
Connection.BusyInfo This class contains information about the connection busy phase. |
class |
Connection.CaptureInfo This class contains information about capture operations. |
class |
Connection.CloseInfo This class contains information about close operations. |
static class |
Connection.CountInfo This class maintains connection count information. |
class |
Connection.IdleInfo This class contains information about the connection idle phase. |
class |
Connection.InvalidateInfo This class contains information about invalidate operations. |
static class |
Connection.Match This class facilitates connection matching. |
class |
Connection.OpenInfo This class contains information of open operations. |
static class |
Connection.Operation This class defines common connection operations. |
class |
Connection.OperationInfo This class contains common information about connection operations. |
static class |
Connection.Parameter This class defines commonly used connection parameters. |
class |
Connection.ProxyInfo This class contains information about proxy operations. |
class |
Connection.ReleaseInfo This class contains information about release operations. |
class |
Connection.RemoveInfo This class contains information about remove operations. |
class |
Connection.ReturnInfo This class contains information about return operations. |
static class |
Connection.Status This class defines common connection statuses. |
class |
Connection.ValidateInfo This class contains information about validate operations. |
Field Summary | |
---|---|
protected java.lang.String |
tag Tag used to print the connection as an XML element. |
static java.lang.String |
TYPE Use for every connection type parameter value. |
Constructor Summary | |
---|---|
protected |
Connection(ConnectionDelegate delegate, java.util.Map parameters) Constructor for the connection. |
Method Summary | |
---|---|
protected void |
check(java.lang.String operation) This method checks this connection for validity. |
java.lang.Object |
clone() Clones the connection. |
int |
compareTo(java.lang.Object that) This method compares connections based on their validity. |
void |
finalize() Finalizes the connection. |
Connection.BusyInfo |
getBusyInfo() Returns busy phase related information. |
Connection.CaptureInfo |
getCaptureInfo() Returns capture operation related information. |
Connection.CloseInfo |
getCloseInfo() Returns close operation related information. |
ConnectionDelegate |
getConnectionDelegate() Returns the connection delegate of this connection. |
ConnectionGroup |
getConnectionGroup() Returns the connection group of this connection. |
ConnectionPool |
getConnectionPool() Returns the connection pool of this connection. |
Connection.IdleInfo |
getIdleInfo() Returns idle phase related information. |
Connection.InvalidateInfo |
getInvalidateInfo() Returns invalidate operation related information. |
java.util.logging.Logger |
getLogger() This method returns the logger for this connection. |
Connection.OpenInfo |
getOpenInfo() Returns open operation related information. |
Connection.OperationInfo |
getOperationInfo() Returns last operation related information. |
Connection.ProxyInfo |
getProxyInfo() Returns proxy operation related information. |
Connection.ReleaseInfo |
getReleaseInfo() Returns release operation related information. |
Connection.RemoveInfo |
getRemoveInfo() Returns remove operation related information. |
Connection.ReturnInfo |
getReturnInfo() Returns return operation related information. |
long |
getSerialNumber() Returns the connection serial number. |
abstract java.lang.String |
getType() Returns the connection type. |
Connection.ValidateInfo |
getValidateInfo() Returns validate operation related information. |
boolean |
isClone() Retirns true if the connection is a clone. |
boolean |
isMatchingType(java.lang.String type) Tests if the connection type value matches. |
protected void |
recordCapture(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records capture operation, called from the connection delegate. |
protected void |
recordClose(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records close operation, called from the connection delegate. |
protected void |
recordInvalidate(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records invalidate operation, called from the connection delegate. |
protected void |
recordOpen(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records open operation, called from the connection delegate. |
protected void |
recordProxy(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records proxy operation, called from the connection delegate. |
protected void |
recordRelease(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Reocrds release operation, called from the connection delegate. |
protected void |
recordRemove(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records remove operation, called from the connection delegate. |
protected void |
recordReturn(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records return operation, called from the connection delegate. |
protected void |
recordState() Records state, called upon capture and remove operations. |
protected void |
recordValidate(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) Records validate operation, called from the connection delegate. |
protected void |
unrecordState() Unrecords state, called upon release and return operations. |
void |
xprint(XmlPrintWriter out) Prints connection properties to the PrintWriter as an XML element. |
protected void |
xprintBody(XmlPrintWriter out) This method prints the connection XML tag body. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE
protected java.lang.String tag
Constructor Detail |
---|
protected Connection(ConnectionDelegate delegate, java.util.Map parameters)
Note: parameters are not cloned at this point.
Method Detail |
---|
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.util.logging.Logger getLogger()
public int compareTo(java.lang.Object that)
If this connection is more recently opened, proxied or validated than that connection, it returns -1.
If this connection is less recently opened, proxied or validated than that connection, it returns 1.
If this and that connections are equally recently opened, proxied or validated, it returns 0.
compareTo
in interface java.lang.Comparable
public final long getSerialNumber()
public abstract java.lang.String getType()
public final boolean isMatchingType(java.lang.String type)
Every connection matches the Connection.TYPE value.
public final boolean isClone()
public final ConnectionDelegate getConnectionDelegate()
public final ConnectionGroup getConnectionGroup()
public final ConnectionPool getConnectionPool()
public final Connection.OpenInfo getOpenInfo()
public final Connection.CloseInfo getCloseInfo()
public final Connection.ProxyInfo getProxyInfo()
public final Connection.CaptureInfo getCaptureInfo()
public final Connection.ReleaseInfo getReleaseInfo()
public final Connection.RemoveInfo getRemoveInfo()
public final Connection.ReturnInfo getReturnInfo()
public final Connection.ValidateInfo getValidateInfo()
public final Connection.InvalidateInfo getInvalidateInfo()
public final Connection.OperationInfo getOperationInfo()
public final Connection.BusyInfo getBusyInfo()
public final Connection.IdleInfo getIdleInfo()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
protected void check(java.lang.String operation) throws ConnectionException
ConnectionException
protected void recordState() throws ConnectionException
ConnectionException
protected void unrecordState() throws ConnectionException
ConnectionException
protected void recordOpen(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordClose(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordProxy(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordCapture(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordRelease(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordRemove(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordReturn(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordValidate(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
protected void recordInvalidate(java.util.Map parameters, java.lang.StackTraceElement[] stackTrace) throws ConnectionException
Note: Parameters are already cloned at this point.
ConnectionException
public void xprint(XmlPrintWriter out)
xprint
in interface XmlPrintable
out
- PrintWriter for printing connection propeties.protected void xprintBody(XmlPrintWriter out)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |