Codota Logo
RuleOutput.getTags
Code IndexAdd Codota to your IDE (free)

How to use
getTags
method
in
rocks.inspectit.server.diagnosis.engine.rule.RuleOutput

Best Java code snippets using rocks.inspectit.server.diagnosis.engine.rule.RuleOutput.getTags (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public Multimap<String, Tag> mapTags(TagState state) {
  Multimap<String, Tag> tags = ArrayListMultimap.create();
  for (Map.Entry<String, RuleOutput> entry : allOutputs.entries()) {
    if (entry.getValue().hasResultTags()) {
      for (Tag tag : entry.getValue().getTags()) {
        if (tag.getState().equals(state)) {
          tags.put(tag.getType(), tag);
        }
      }
    }
  }
  return tags;
}
origin: inspectIT/inspectIT

for (Tag leafTag : output.getTags()) {
  Collection<Tag> tags = Tags.unwrap(leafTag, requiredInputTags);
  if (tags.size() == requiredInputTags.size()) {
origin: inspectIT/inspectIT

@Test
public void simpleRuleExecution() throws RuleDefinitionException, RuleExecutionException {
  RuleDefinition ruleDefinition = Rules.define(RuleA.class);
  String inputStr = "hallo";
  RuleInput input = new RuleInput(Tags.tag(Tags.ROOT_TAG, inputStr));
  RuleOutput output = ruleDefinition.execute(input, Collections.<String, Object> emptyMap());
  assertThat(output.getRuleName(), equalTo(ruleDefinition.getName()));
  assertThat(output.getTags(), hasSize(1));
  assertThat(output.getTags().iterator().next().getValue(), equalTo((Object) (inputStr + inputStr)));
}
origin: inspectIT/inspectIT

@Test
public void ruleWithSessionVariableExecution() throws RuleDefinitionException, RuleExecutionException {
  RuleDefinition ruleDefinition = Rules.define(RuleWithSessionVariable.class);
  String inputStr = "hallo";
  String sessionVar = "sessionVar";
  RuleInput input = new RuleInput(Tags.tag(Tags.ROOT_TAG, inputStr));
  RuleOutput output = ruleDefinition.execute(input, Collections.singletonMap(sessionVar, (Object) sessionVar));
  assertThat(output.getRuleName(), equalTo(ruleDefinition.getName()));
  assertThat(output.getTags(), hasSize(1));
  assertThat(output.getTags().iterator().next().getValue(), equalTo((Object) (inputStr + sessionVar)));
}
origin: inspectIT/inspectIT

@Test
public void ruleWithConditionSuccessExecution() throws RuleDefinitionException, RuleExecutionException {
  RuleDefinition ruleDefinition = Rules.define(RuleF.class);
  String inputStrA = "hallo";
  String inputStrE = "again";
  Tag tagA = Tags.tag("A", inputStrA);
  Tag tagE = Tags.tag("E", inputStrE);
  RuleInput inputE = new RuleInput(tagE, Arrays.asList(tagA, tagE));
  RuleOutput output = ruleDefinition.execute(inputE, Collections.<String, Object> emptyMap());
  assertThat(output.getRuleName(), equalTo(ruleDefinition.getName()));
  assertThat(output.getTags(), hasSize(1));
  assertThat(output.getTags().iterator().next().getValue(), equalTo((Object) (inputStrA + inputStrE)));
}
origin: inspectIT/inspectIT

  @Test
  public void ruleWithConditionFailureExecution() throws RuleDefinitionException, RuleExecutionException {
    RuleDefinition ruleDefinition = Rules.define(RuleG.class);
    String inputStr = "hallo";
    RuleInput input = new RuleInput(Tags.tag("A", inputStr));
    RuleOutput output = ruleDefinition.execute(input, Collections.<String, Object> emptyMap());
    assertThat(output.getRuleName(), equalTo(ruleDefinition.getName()));
    assertThat(output.getConditionFailures(), hasSize(1));
    assertThat(output.getTags(), empty());
  }
}
rocks.inspectit.server.diagnosis.engine.ruleRuleOutputgetTags

Javadoc

Gets #tags.

Popular methods of RuleOutput

  • <init>
    Default constructor.
  • getConditionFailures
    Gets #conditionFailures.
  • getRuleName
    Gets #ruleName.
  • getEmbeddedTagType
    Gets #embeddedTagType.
  • hasConditionFailures
    Convenience method to check if the rule execution failed due to failed conditions.
  • hasResultTags
    Convenience method to check if the rule execution produced result tags.

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • JFrame (javax.swing)
  • Option (scala)
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