congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UimaMonitor.finishFunction
Code IndexAdd Tabnine to your IDE (free)

How to use
finishFunction
method
in
uk.gov.dstl.baleen.uima.UimaMonitor

Best Java code snippets using uk.gov.dstl.baleen.uima.UimaMonitor.finishFunction (Showing top 20 results out of 315)

origin: dstl/baleen

@Override
public void destroy() {
 monitor.startFunction("destroy");
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public void destroy() {
 monitor.startFunction("destroy");
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public void destroy() {
 monitor.startFunction("destroy");
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final Progress[] getProgress() {
 monitor.startFunction("getProgress");
 Progress[] ret = doGetProgress();
 monitor.finishFunction("getProgress");
 return ret;
}
origin: dstl/baleen

@Override
public final Progress[] getProgress() {
 monitor.startFunction("getProgress");
 Progress[] ret = doGetProgress();
 monitor.finishFunction("getProgress");
 return ret;
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void destroy() {
 monitor.startFunction("destroy");
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void close() throws IOException {
 monitor.startFunction("close");
 doClose();
 monitor.finishFunction("close");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public void process(JCas aJCas) throws AnalysisEngineProcessException {
 monitor.trace("Starting: " + getClass().getSimpleName());
 monitor.startFunction("process");
 doProcess(aJCas);
 monitor.finishFunction("process");
 monitor.persistCounts();
 monitor.trace("Finished: " + getClass().getSimpleName());
}
origin: dstl/baleen

@Override
public final void destroy() {
 monitor.startFunction("destroy");
 super.destroy();
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void destroy() {
 monitor.startFunction("destroy");
 super.destroy();
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void processStream(InputStream stream, String source, JCas jCas) throws IOException {
 monitor.startFunction("process");
 doProcessStream(stream, source, jCas);
 monitor.finishFunction("process");
 monitor.persistCounts();
}
origin: dstl/baleen

@Override
public final void processStream(InputStream stream, String source, JCas jCas) throws IOException {
 monitor.startFunction("process");
 doProcessStream(stream, source, jCas);
 monitor.finishFunction("process");
 monitor.persistCounts();
}
origin: dstl/baleen

@Override
public final void close() throws IOException {
 monitor.startFunction("close");
 contentExtractor.destroy();
 doClose();
 monitor.finishFunction("close");
}
origin: dstl/baleen

@Override
public final void process(final JCas aJCas) throws AnalysisEngineProcessException {
 monitor.startFunction("execute");
 execute(new JobSettings(aJCas));
 monitor.finishFunction("execute");
 monitor.persistCounts();
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void process(final JCas aJCas) throws AnalysisEngineProcessException {
 monitor.startFunction("execute");
 execute(new JobSettings(aJCas));
 monitor.finishFunction("execute");
 monitor.persistCounts();
}
origin: dstl/baleen

@Override
public void initialize(final UimaContext context) throws ResourceInitializationException {
 // This will do initialization of resources,
 // but won't be included in the metrics
 super.initialize(context);
 final String pipelineName = UimaUtils.getPipelineName(context);
 monitor = createMonitor(pipelineName);
 monitor.startFunction("initialize");
 doInitialize(context);
 monitor.finishFunction("initialize");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void initialize(UimaContext context, Map<String, Object> params)
  throws ResourceInitializationException {
 String pipelineName = UimaUtils.getPipelineName(context);
 monitor = createMonitor(pipelineName);
 support = createSupport(pipelineName, context);
 monitor.startFunction("initialize");
 doInitialize(context, params);
 monitor.finishFunction("initialize");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public void initialize(final UimaContext context) throws ResourceInitializationException {
 // This will do initialization of resources,
 // but won't be included in the metrics
 super.initialize(context);
 final String pipelineName = UimaUtils.getPipelineName(context);
 monitor = createMonitor(pipelineName);
 monitor.startFunction("initialize");
 doInitialize(context);
 monitor.finishFunction("initialize");
}
origin: dstl/baleen

@Override
public final void getNext(JCas jCas) throws IOException, CollectionException {
 monitor.startFunction("getNext");
 MetricsFactory.getInstance()
   .getPipelineMetrics(monitor.getPipelineName())
   .startDocumentProcess();
 doGetNext(jCas);
 monitor.finishFunction("getNext");
 monitor.persistCounts();
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void getNext(JCas jCas) throws IOException, CollectionException {
 monitor.startFunction("getNext");
 MetricsFactory.getInstance()
   .getPipelineMetrics(monitor.getPipelineName())
   .startDocumentProcess();
 doGetNext(jCas);
 monitor.finishFunction("getNext");
 monitor.persistCounts();
}
uk.gov.dstl.baleen.uimaUimaMonitorfinishFunction

Javadoc

Finish the timer at the end of the function, and log that the function has finished

Popular methods of UimaMonitor

  • warn
    Log a warning level message.
  • info
    Log an info level message.
  • error
    Log an error level message.
  • debug
    Log a debug level message.
  • <init>
    Constructor to create a UimaMonitor. The class and pipeline name should be specified so that we can
  • trace
    Log a trace level message.
  • counter
    Get the counter metric with the supplied name, within the scope of this monitor.
  • entityAdded
    Register that an entity of a specific type has been added
  • entityRemoved
    Register that an entity of a specific type has been removed
  • getPipelineName
    Get the name of the pipeline to which this belongs.
  • meter
    Get the meter metric with the supplied name, within the scope of this monitor.
  • persistCounts
    Persist entity counts into the Metrics object, as we only want to do this once per process() functio
  • meter,
  • persistCounts,
  • startFunction,
  • finishFunctionTrace,
  • histogram,
  • startFunctionTrace,
  • stopTimer,
  • timer

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • BoxLayout (javax.swing)
  • JButton (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now