com.centrasite.control.ext.diagnose.trace
Class TraceItem

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.ext.diagnose.trace.TraceItem
All Implemented Interfaces:
Item

public class TraceItem
extends AbstractItem


Field Summary
static java.lang.String rcs_id
           
 
Constructor Summary
TraceItem(org.apache.log4j.spi.LoggingEvent loggingEvent)
           
 
Method Summary
 java.util.Iterator getChildren()
           
 java.util.Iterator getChildren(boolean refresh)
           
 java.util.Date getDate()
           
 java.lang.String getDescription()
           
 long getDuration(TraceItem ti2)
          Get duration between and given other TraceItems timestamp
 java.lang.String getImageURL()
           
 java.util.Locale getLocale()
          Get Locale
 org.apache.log4j.spi.LocationInfo getLocationInfo()
           
 org.apache.log4j.spi.LoggingEvent getLoggingEvent()
           
 java.lang.String getName()
           
 java.lang.String getNameEx()
          Get "extended/alternate name".
 java.lang.String getPath()
          For some object types (especially for RepositoryObjectItems) this method may return a reasonable path - instances of other classes should return null
 boolean hasNoChildren()
           
 void showReport(ActionContext actionContext)
          Show a report for this item.
 
Methods inherited from class com.centrasite.control.AbstractItem
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, clearCache, clearProperties, getAccessControlElements, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getCurrentUserPermissionItem, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getKey, getLanguage, getNonPermissionAccessControlElements, getPersistanceLocale, getPrivilegeDescriptor, getProperties, getRelatedItems, getReport, getReportForDetailView, hasRequiredAttribute, isLocked, isModified, isReadOnly, isStandalone, isSubTabModified, removeCommand, replaceCommand, save, setAccessControlElements, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setProperties, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rcs_id

public static final java.lang.String rcs_id
See Also:
Constant Field Values
Constructor Detail

TraceItem

public TraceItem(org.apache.log4j.spi.LoggingEvent loggingEvent)
Method Detail

getLocale

public java.util.Locale getLocale()
Description copied from interface: Item
Get Locale

Specified by:
getLocale in interface Item
Overrides:
getLocale in class AbstractItem
Returns:
the Locale used for this Item

getImageURL

public java.lang.String getImageURL()

getLoggingEvent

public org.apache.log4j.spi.LoggingEvent getLoggingEvent()

getDate

public java.util.Date getDate()

getLocationInfo

public org.apache.log4j.spi.LocationInfo getLocationInfo()

getName

public java.lang.String getName()
                         throws java.lang.Exception
Throws:
java.lang.Exception

getNameEx

public java.lang.String getNameEx()
                           throws java.lang.Exception
Description copied from class: AbstractItem
Get "extended/alternate name". This method is only used in some rare locations e.g. currently when obtaining the label of an item in the tree. Its usage is discouraged in general. This default implementation returns same as getName().

Specified by:
getNameEx in interface Item
Overrides:
getNameEx in class AbstractItem
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getChildren

public java.util.Iterator getChildren()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getChildren

public java.util.Iterator getChildren(boolean refresh)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getPath

public java.lang.String getPath()
                         throws java.lang.Exception
Description copied from class: AbstractItem
For some object types (especially for RepositoryObjectItems) this method may return a reasonable path - instances of other classes should return null

Specified by:
getPath in interface Item
Overrides:
getPath in class AbstractItem
Returns:
a path (if reasonable) or null
Throws:
java.lang.Exception

hasNoChildren

public boolean hasNoChildren()
                      throws java.lang.Exception
Throws:
java.lang.Exception

showReport

public void showReport(ActionContext actionContext)
Description copied from class: AbstractItem
Show a report for this item. Whereas showDetailView() displays the details of this item, showReport() should display tables of "child" objects being contained in or classified with this item.

Specified by:
showReport in interface Item
Overrides:
showReport in class AbstractItem

getDuration

public long getDuration(TraceItem ti2)
Get duration between and given other TraceItems timestamp

Parameters:
ti2 -
Returns:
the duration in units of milliseconds