|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.collection.impl.cpm.utils.CPMUtils
public class CPMUtils
| Field Summary | |
|---|---|
static java.lang.String |
CPM_LOG_RESOURCE_BUNDLE
|
| Constructor Summary | |
|---|---|
CPMUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
convertToAbsolutePath(java.lang.String aSystemVar,
java.lang.String aExpr,
java.lang.String aPathToConvert)
|
static void |
dumpEvents(ProcessTrace aPTr)
Dumps all events in the process trace object |
static long |
extractTime(ProcessTrace aPT,
java.lang.String eventName)
Returns the total duration of a given event |
static java.io.File |
findDeployDirectory(java.lang.String aServiceName)
|
static ChunkMetadata |
getChunkMetadata(CAS aCas)
Extract metadata associated with chunk from a given CAS. |
static int |
getFeatureAsInt(CAS aCas,
Feature aFeature,
java.lang.String aName)
|
static java.lang.String |
getFeatureAsString(CAS aCas,
Feature aFeature,
java.lang.String aName)
Returns a value associated with a given feature |
static java.lang.String[] |
getKeys2Drop(java.lang.String aKeyDropMapFile)
Currently, this returns initialized array of Strings. |
static UimaTimer |
getTimer()
|
static UimaTimer |
getTimer(java.lang.String aTimerClass)
Return timer to measure performace of the cpm. |
static java.lang.String |
scrubThePath(java.lang.String value)
Finds an occurance of the ##CPM_HOME in a value parameter and returns it with an expanded form (ie.c:/cpm/...) based on the env variable CPM_HOME. |
static void |
setTimer(UimaTimer aTimer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CPM_LOG_RESOURCE_BUNDLE
| Constructor Detail |
|---|
public CPMUtils()
| Method Detail |
|---|
public static java.lang.String[] getKeys2Drop(java.lang.String aKeyDropMapFile)
throws ResourceConfigurationException
aKeyDropMapFile - -
a file containing a list of features that should be removed from CAS being sent to Cas
Processor. Currently not used.
ResourceConfigurationExceptionpublic static void setTimer(UimaTimer aTimer)
aTimer - public static UimaTimer getTimer()
public static java.lang.String convertToAbsolutePath(java.lang.String aSystemVar,
java.lang.String aExpr,
java.lang.String aPathToConvert)
aSystemVar - aExpr - aPathToConvert -
public static UimaTimer getTimer(java.lang.String aTimerClass)
throws java.lang.Exception
java.lang.Exception
public static long extractTime(ProcessTrace aPT,
java.lang.String eventName)
aPT - -
Event containereventName - -
name of the event for which the time is needed
public static void dumpEvents(ProcessTrace aPTr)
aPTr - -
event containerpublic static java.lang.String scrubThePath(java.lang.String value)
public static java.io.File findDeployDirectory(java.lang.String aServiceName)
throws java.lang.Exception
aServiceName -
java.lang.Exception
public static int getFeatureAsInt(CAS aCas,
Feature aFeature,
java.lang.String aName)
throws java.lang.Exception
java.lang.Exception
public static java.lang.String getFeatureAsString(CAS aCas,
Feature aFeature,
java.lang.String aName)
throws java.lang.Exception
aCas - -
Cas containing data to extractaFeature - -
feature to locate in the CASaName - -
name of the feature
java.lang.Exceptionpublic static ChunkMetadata getChunkMetadata(CAS aCas)
aCas - -
Cas to extract chunk metadata from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||