Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.content.transform
Interface TransformerStatistics

public interface TransformerStatistics
Interface to obtain the configuration and performance data for every source, target and transformer combination.
Author:
Alan Davis

Method Summary
long
getAverageTime()
long
getCount()
long
getErrorCount()
getSourceExt()
getTargetExt()
getTransformerName()
boolean
isSummary()
void
recordError(long transformationTime)
          Adds 1 to the error count of this TransformationData and its parents.
void
recordTime(long transformationTime)
void
setAverageTime(long averageTime)
void
setCount(long count)
void
setErrorCount(long errorCount)
Method Detail
getSourceExt
String getSourceExt()
Returns:
the extension of the source mimetype of the transformer.

getTargetExt
String getTargetExt()
Returns:
the extension of the target mimetype of the transformer.

getTransformerName
String getTransformerName()
Returns:
the name of the parent transformer.

getCount
long getCount()
Returns:
the number of time the transformer has been called.

setCount
void setCount(long count)
Parameters:
count - overrides the number of time the transformer has been called.

getErrorCount
long getErrorCount()
Returns:
the number of time the transformer has failed.

setErrorCount
void setErrorCount(long errorCount)
Parameters:
errorCount - overrides the number of time the transformer has failed.

getAverageTime
long getAverageTime()
Returns:
the average time taken by the the transformer.

setAverageTime
void setAverageTime(long averageTime)
Parameters:
averageTime - overrides the average time taken by the the transformer.

isSummary
boolean isSummary()
Returns:
true if this is the summary of all transformations done by a transformer rather than just between two specific mimetypes.

recordTime
void recordTime(long transformationTime)
Parameters:
transformationTime - to be added to this TransformationData and its parents.

recordError
void recordError(long transformationTime)
Adds 1 to the error count of this TransformationData and its parents.

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.