org.addsimplicity.anicetus.entity
Class TelemetryTransaction

java.lang.Object
  extended by org.addsimplicity.anicetus.entity.GlobalInfo
      extended by org.addsimplicity.anicetus.entity.ExecInfo
          extended by org.addsimplicity.anicetus.entity.TelemetryTransaction
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>, TelemetryContainer

public class TelemetryTransaction
extends ExecInfo

A transaction captures the details of an interaction with a component of the application. These are typically external resources such as a database or service but are not strictly required to be external.

Author:
Dan Pritchett (driveawedge@yahoo.com)

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
TelemetryTransaction()
          Construct a transaction without a parent.
TelemetryTransaction(GlobalInfo parent)
          Construct a transaction with the specified artifact as the parent.
 
Method Summary
 java.lang.String getOperation()
          The operation is the action being performed by this transaction.
 java.lang.Object[] getParameters()
          Parameters may be optional specified and associated with the operation.
 java.lang.String getResourceId()
          Get the identifier of the primary resource being manipulated by this transaction.
 void setOperation(java.lang.String operation)
          Set the operation or action performed by this transaction.
 void setParameters(java.lang.Object[] params)
          Set optional parameters associated with the operation.
 void setResourceId(java.lang.String resource)
          Set a resource identifier of the primary resource acted upon by this transaction.
 
Methods inherited from class org.addsimplicity.anicetus.entity.ExecInfo
addChild, complete, getChildren, getDuration, getStatus, setDuration, setStatus, startTimer
 
Methods inherited from class org.addsimplicity.anicetus.entity.GlobalInfo
clear, containsKey, containsValue, entrySet, equals, get, getEntityId, getExecutionContext, getMessage, getParentId, getReportingNode, getTimeStamp, hashCode, isEmpty, keySet, put, putAll, remove, setEntityId, setExceptionAsMessage, setExecutionContext, setMessage, setParentId, setReportingNode, setTimeStamp, size, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelemetryTransaction

public TelemetryTransaction()
Construct a transaction without a parent.


TelemetryTransaction

public TelemetryTransaction(GlobalInfo parent)
Construct a transaction with the specified artifact as the parent.

Parameters:
parent -
Method Detail

getOperation

public java.lang.String getOperation()
The operation is the action being performed by this transaction.

Returns:
the operation.

getParameters

public java.lang.Object[] getParameters()
Parameters may be optional specified and associated with the operation.

Returns:
the parameters associated with the operation.

getResourceId

public java.lang.String getResourceId()
Get the identifier of the primary resource being manipulated by this transaction.

Returns:
the resource identifier.

setOperation

public void setOperation(java.lang.String operation)
Set the operation or action performed by this transaction.

Parameters:
operation - The operation performed by this transaction.

setParameters

public void setParameters(java.lang.Object[] params)
Set optional parameters associated with the operation.

Parameters:
params - The list of parameters associated with the operation.

setResourceId

public void setResourceId(java.lang.String resource)
Set a resource identifier of the primary resource acted upon by this transaction.

Parameters:
resource - The identifier of the primary resource.


Copyright © 2009 Add Simplicity. All Rights Reserved.