Skip navigation links


oracle.idm.connection
Class ConnectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by oracle.idm.connection.ConnectionEvent

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, XmlPrintable

public class ConnectionEvent
extends java.util.EventObject
implements java.lang.Cloneable, XmlPrintable

This class represents a connection event.

See Also:
Serialized Form

Nested Class Summary
static class ConnectionEvent.CountInfo
          This class maintains connection event count information.

 

Field Summary
protected  java.lang.String tag
          Tag used to print the connection as an XML element.

 

Fields inherited from class java.util.EventObject
source

 

Method Summary
 java.lang.Object clone()
          Clones the connection event.
 Connection getConnection()
          Returns the connection this event occurred on.
 ConnectionException getConnectionException()
          Returns the connection exception of this event.
 java.util.Collection getLocalizedMessages()
          Returns localized messages associated with this connection event.
 java.util.Collection getMessages()
          Returns messages associated with this connection event.
 java.lang.String getOperation()
          Returns the operation that triggered this event.
 java.util.Map getParameters()
          Returns the parameters for this operation.
 java.lang.String getStatus()
          Returns the status of this connection event.
 long getTimeStamp()
          Returns the connection event time stamp.
 java.lang.String getType()
          Returns the type of this connection event.
 boolean isAlteredConnection()
          Returns true if this is an altered connection event.
 boolean isLeakedConnection()
          Returns true if this is a leaked connection event.
 boolean isMatchingOperation(java.lang.String operation)
          Tests if the connection event operation value matches.
 boolean isMatchingStatus(java.lang.String status)
          Tests if the connection event status value matches.
 boolean isMatchingType(java.lang.String type)
          Tests if the connection event type value matches.
 void xprint(XmlPrintWriter out)
          Prints connection event properties to the PrintWriter as an XML element.
protected  void xprintBody(XmlPrintWriter out)
          This method prints the connection event XML tag body.

 

Methods inherited from class java.util.EventObject
getSource, toString

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

tag

protected java.lang.String tag
Tag used to print the connection as an XML element.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones the connection event.
Overrides:
clone in class java.lang.Object
Returns:
a clone event close
Throws:
java.lang.CloneNotSupportedException

isLeakedConnection

public boolean isLeakedConnection()
Returns true if this is a leaked connection event.

isAlteredConnection

public boolean isAlteredConnection()
Returns true if this is an altered connection event.

getTimeStamp

public long getTimeStamp()
Returns the connection event time stamp.
Returns:
long representing the connection event time stamp

getStatus

public java.lang.String getStatus()
Returns the status of this connection event.
Returns:
String representing the connection event status

isMatchingStatus

public final boolean isMatchingStatus(java.lang.String status)
Tests if the connection event status value matches.

Every connection event matches the Connection.Status.EVERY value.

Returns:
true if the status matches, false otherwise

getType

public java.lang.String getType()
Returns the type of this connection event.
Returns:
String representing the connection type

isMatchingType

public final boolean isMatchingType(java.lang.String type)
Tests if the connection event type value matches.

Every connection event matches the Connection.TYPE value.

Returns:
true if the type matches, false otherwise

getOperation

public java.lang.String getOperation()
Returns the operation that triggered this event.
Returns:
String representing the connection operation

isMatchingOperation

public final boolean isMatchingOperation(java.lang.String operation)
Tests if the connection event operation value matches.

Every connection event matches the Connection.Operation.EVERY value.

Returns:
true if the type matches, false otherwise

getParameters

public java.util.Map getParameters()
Returns the parameters for this operation.
Returns:
map rmpresenting the operation perameters

getConnection

public Connection getConnection()
Returns the connection this event occurred on.
Returns:
Connection this connection event occured on

getConnectionException

public ConnectionException getConnectionException()
Returns the connection exception of this event.
Returns:
ConnectionException that occured during this connection event

getMessages

public java.util.Collection getMessages()
Returns messages associated with this connection event.

This method collects messages form the operation and connection exception properties.

Returns:
collection of messages for this event, null if none were collected

getLocalizedMessages

public java.util.Collection getLocalizedMessages()
Returns localized messages associated with this connection event.

This method collects localized messages form the operation and connection exception properties.

Returns:
collection of localized messages for this event, null if none were collected

xprint

public void xprint(XmlPrintWriter out)
Prints connection event properties to the PrintWriter as an XML element.
Specified by:
xprint in interface XmlPrintable
Parameters:
out - PrintWriter for printing connection event propeties.

xprintBody

protected void xprintBody(XmlPrintWriter out)
This method prints the connection event XML tag body.

Skip navigation links