wt.tools.profiler
Class ProfilingKeyAdapter

java.lang.Object
  extended bywt.tools.profiler.ProfilingKeyAdapter
All Implemented Interfaces:
ProfilingKey, Serializable
Direct Known Subclasses:
IBAServiceProfilingKey, PersistProfKey, SQLProfilingKey, TaskProfKey

public class ProfilingKeyAdapter
extends Object
implements ProfilingKey, Serializable

An instance(adapter) of this class should be created by any service that wants to have any of its operations to be profiled. 1 adapter needs to created for each operation. An adapter is identified by its dispName(eg SQL, CACHE) which is mandatory. costName(eg num_rows) and dataName(eg bind parameters) need not be provided during this adapter creation if cost and data will not be reported by the operation being profiled.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  String costName
           
private  String dataName
           
private  String dispName
           
private static int HASH_PRIME
           
private  boolean opEnabledInGUI
           
private static String RESOURCE
           
static boolean VERBOSE
           
 
Constructor Summary
ProfilingKeyAdapter()
          Empty constructor
ProfilingKeyAdapter(String dispString, String costString, String dataString)
          Constructor for creating an adapter
 
Method Summary
 void EnabledInGUI(boolean flag)
           
 boolean equals(Object o)
           
 String getCostName()
          Gets the value of the attribute: costName; Name of the cost being reported by an operation eg num_rows for SQL
 String getDataName()
          Gets the value of the attribute: dataName; Name of the data being reported eg bind_parameters for SQL
 String getDispName()
          Gets the value of the attribute: dispName; Adapter Name type eg SQL, CACHE,
 int hashCode()
           
 boolean optEnabledInGUI()
           
 void setCostName(String a_CostName)
          Sets the value of the attribute: costName; Name of the cost being reported by an operation eg num_rows for SQL
 void setDataName(String a_DataName)
          Sets the value of the attribute: dataName; Name of the data being reported eg bind_parameters for SQL
 void setDispName(String a_DispName)
          Sets the value of the attribute: dispName; Adapter Name type eg SQL, CACHE,
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

dispName

private String dispName

costName

private String costName

dataName

private String dataName

VERBOSE

public static boolean VERBOSE

HASH_PRIME

private static final int HASH_PRIME
See Also:
Constant Field Values

opEnabledInGUI

private boolean opEnabledInGUI
Constructor Detail

ProfilingKeyAdapter

public ProfilingKeyAdapter(String dispString,
                           String costString,
                           String dataString)
Constructor for creating an adapter

Parameters:
dispString -
costString -
dataString -

ProfilingKeyAdapter

public ProfilingKeyAdapter()
Empty constructor

Method Detail

getDispName

public String getDispName()
Gets the value of the attribute: dispName; Adapter Name type eg SQL, CACHE,

Specified by:
getDispName in interface ProfilingKey
Returns:
String

setDispName

public void setDispName(String a_DispName)
Sets the value of the attribute: dispName; Adapter Name type eg SQL, CACHE,

Parameters:
a_DispName -

getCostName

public String getCostName()
Gets the value of the attribute: costName; Name of the cost being reported by an operation eg num_rows for SQL

Specified by:
getCostName in interface ProfilingKey
Returns:
String

setCostName

public void setCostName(String a_CostName)
Sets the value of the attribute: costName; Name of the cost being reported by an operation eg num_rows for SQL

Parameters:
a_CostName -

getDataName

public String getDataName()
Gets the value of the attribute: dataName; Name of the data being reported eg bind_parameters for SQL

Specified by:
getDataName in interface ProfilingKey
Returns:
String

setDataName

public void setDataName(String a_DataName)
Sets the value of the attribute: dataName; Name of the data being reported eg bind_parameters for SQL

Parameters:
a_DataName -

hashCode

public int hashCode()
Returns:
int

equals

public boolean equals(Object o)
Parameters:
o -
Returns:
boolean

toString

public String toString()

EnabledInGUI

public void EnabledInGUI(boolean flag)

optEnabledInGUI

public boolean optEnabledInGUI()