Codota Logo
EnginesTracker.getActiveEngineNames
Code IndexAdd Codota to your IDE (free)

How to use
getActiveEngineNames
method
in
org.apache.stanbol.enhancer.servicesapi.impl.EnginesTracker

Best Java code snippets using org.apache.stanbol.enhancer.servicesapi.impl.EnginesTracker.getActiveEngineNames (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: apache/stanbol

private void update() throws ChainException {
  Set<String> activeEngineNames = new HashSet<String>(tracker.getActiveEngineNames());
  if(activeEngineNames.isEmpty()){
    throw new ChainException("Currently there are no active EnhancementEngines available");
  }
  List<EnhancementEngine> activeEngines = new ArrayList<EnhancementEngine>(activeEngineNames.size());
  Iterator<String> names = activeEngineNames.iterator();
  while(names.hasNext()){
    String name = names.next();
    EnhancementEngine engine = tracker.getEngine(name);
    if(engine != null){
      activeEngines.add(engine);
    } else { //looks like the config has changed in the meantime
      names.remove();
    }
  }
  Set<String> emptySet = Collections.emptySet();
  executionPlan = calculateExecutionPlan(
    getName(),activeEngines, 
    emptySet,//this Chain does not support optional engines
    emptySet); //only active meaning that no engines are missing
  engineNames = Collections.unmodifiableSet(activeEngineNames);
}
org.apache.stanbol.enhancer.servicesapi.implEnginesTrackergetActiveEngineNames

Popular methods of EnginesTracker

  • <init>
    Creates a new EnginesTracker for the parsed BundleContextand engine names. Examples: //Track all ac
  • close
    Closes this tracker
  • open
    Starts tracking based on the configuration parsed in the constructor
  • getEngine
  • getReference
  • initEngineTracker
    Initialises the EnginesTracker by using the parsed parameter. This will create a copy of the parsed

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Collectors (java.util.stream)
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now