Tabnine Logo
WorkItemBuilder.getWorkItemParse
Code IndexAdd Tabnine to your IDE (free)

How to use
getWorkItemParse
method
in
org.batfish.common.util.WorkItemBuilder

Best Java code snippets using org.batfish.common.util.WorkItemBuilder.getWorkItemParse (Showing top 4 results out of 315)

origin: batfish/batfish

List<WorkItem> getAutoWorkQueue(String networkName, String testrigName) {
 List<WorkItem> autoWorkQueue = new LinkedList<>();
 WorkItem parseWork = WorkItemBuilder.getWorkItemParse(networkName, testrigName);
 autoWorkQueue.add(parseWork);
 Set<String> analysisNames = listAnalyses(networkName, AnalysisType.ALL);
 for (String analysis : analysisNames) {
  WorkItem analyzeWork =
    WorkItemBuilder.getWorkItemRunAnalysis(
      analysis, networkName, testrigName, null, false, false);
  autoWorkQueue.add(analyzeWork);
 }
 return autoWorkQueue;
}
origin: batfish/batfish

WorkItem wItemParse = WorkItemBuilder.getWorkItemParse(_currContainerName, testrigName);
origin: batfish/batfish

@Test
public void testGetAutoWorkQueueUserAnalysis() {
 String containerName = "myContainer";
 String testrigName = "myTestrig";
 _manager.initNetwork(containerName, null);
 // user policy
 _manager.configureAnalysis(
   containerName, true, "useranalysis", Maps.newHashMap(), Lists.newArrayList(), false);
 WorkItem parseWorkItem = WorkItemBuilder.getWorkItemParse(containerName, testrigName);
 WorkItem analysisWorkItem =
   WorkItemBuilder.getWorkItemRunAnalysis(
     "useranalysis", containerName, testrigName, null, false, false);
 List<WorkItem> workQueue = _manager.getAutoWorkQueue(containerName, testrigName);
 assertThat(workQueue, hasSize(2));
 // checking that the first work item is for parse
 assertThat(workQueue.get(0).matches(parseWorkItem), equalTo(true));
 // checking run analysis workitem
 assertThat(
   "Work Queue not correct for user analyses",
   workQueue.get(1).matches(analysisWorkItem),
   equalTo(true));
}
origin: batfish/batfish

@Test
public void testGetAutoWorkQueueSuggestedAnalysis() {
 String containerName = "myContainer";
 String testrigName = "myTestrig";
 _manager.initNetwork(containerName, null);
 // user policy
 _manager.configureAnalysis(
   containerName, true, "suggestedanalysis", Maps.newHashMap(), Lists.newArrayList(), true);
 WorkItem parseWorkItem = WorkItemBuilder.getWorkItemParse(containerName, testrigName);
 WorkItem analysisWorkItem =
   WorkItemBuilder.getWorkItemRunAnalysis(
     "suggestedanalysis", containerName, testrigName, null, false, false);
 List<WorkItem> workQueue = _manager.getAutoWorkQueue(containerName, testrigName);
 assertThat(workQueue, hasSize(2));
 // checking that the first work item is for parse
 assertThat(workQueue.get(0).matches(parseWorkItem), equalTo(true));
 // checking run analysis workitem
 assertThat(
   "Work Queue not correct for suggested analyses",
   workQueue.get(1).matches(analysisWorkItem),
   equalTo(true));
}
org.batfish.common.utilWorkItemBuildergetWorkItemParse

Popular methods of WorkItemBuilder

  • getWorkItemRunAnalysis
  • getWorkItemAnswerQuestion
  • getWorkItemGenerateDataPlane
  • getAnalysisName
  • getQuestionName
  • getWorkItemGenerateDeltaDataPlane
  • isAnalyzingWorkItem
  • isAnsweringWorkItem
  • isDataplaningWorkItem
  • isDifferential
  • isParsingWorkItem
  • isParsingWorkItem

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JCheckBox (javax.swing)
  • Github Copilot 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