congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DispatchStack.getLayers
Code IndexAdd Tabnine to your IDE (free)

How to use
getLayers
method
in
org.apache.taverna.workflowmodel.processor.dispatch.DispatchStack

Best Java code snippets using org.apache.taverna.workflowmodel.processor.dispatch.DispatchStack.getLayers (Showing top 4 results out of 315)

origin: org.apache.taverna.engine/taverna-workflowmodel-extensions

protected IntermediateProvenance findIntermediateProvenance() {
  for (DispatchLayer<?> layer : getProcessor().getDispatchStack()
      .getLayers())
    if (layer instanceof IntermediateProvenance)
      return (IntermediateProvenance) layer;
  return null;
}
origin: org.apache.taverna.engine/taverna-workflowmodel-impl

@Test
public void testEdit() throws Exception {
  assertEquals(0,processor.getDispatchStack().getLayers().size());
  defaultDispatchStackEdit.doEdit();
  assertTrue(processor.getDispatchStack().getLayers().size()>0);
}

origin: org.apache.taverna.engine/taverna-workflowmodel-impl

@Test
public void testUndo() throws Exception {
  defaultDispatchStackEdit.doEdit();
  assertTrue(processor.getDispatchStack().getLayers().size()>0);		
}

origin: org.apache.taverna.engine/taverna-workflowmodel-impl

private void addProvenanceLayerToProcessors(WorkflowProvenanceItem workflowItem) {
  // TODO Shouldn't we use a bean for this? 
  Edits edits = new EditsImpl();
  for (Processor processor : dataflow.getProcessors())
    /*
     * Synchronized per processor as we might be modifying its dispatch
     * stack (fixes T3-929)
     */
    synchronized (processor) {               
      DispatchStack dispatchStack = processor.getDispatchStack();
      List<DispatchLayer<?>> layers = dispatchStack.getLayers();
      if (isProvenanceAlreadyAdded(layers))
        continue;
      IntermediateProvenance provenance = new IntermediateProvenance();
      provenance.setWorkflow(workflowItem);
      provenance.setReporter(context.getProvenanceReporter());
      try {
        edits.getAddDispatchLayerEdit(dispatchStack, provenance,
            provenancePosition(layers)).doEdit();
        break;
      } catch (EditException e) {
        logger.warn("adding provenance layer to dispatch stack failed "
                + e.toString());
      }
    }
}
org.apache.taverna.workflowmodel.processor.dispatchDispatchStackgetLayers

Javadoc

The DispatchStack consists of an ordered list of DispatchLayer instances where the DispatchLayer at index zero is at the bottom of the stack and is almost always an invocation layer of some kind (in any working dispatch stack configuration)

Popular methods of DispatchStack

  • getProcessor
    The dispatch stack is contained within a processor, this can be null if the stack is being used out
  • layerAbove
    Return the layer above (lower index!) the specified layer, or a reference to the internal top layer
  • layerBelow
    Return the layer below (higher index) the specified layer, or null if there is no layer below this o
  • receiveMonitorableProperty
    The dispatch stack acts as an aggregator for monitorable properties exposed by the dispatch layers.

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Collectors (java.util.stream)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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