Tabnine Logo
HostInfo.getTags
Code IndexAdd Tabnine to your IDE (free)

How to use
getTags
method
in
jrds.HostInfo

Best Java code snippets using jrds.HostInfo.getTags (Showing top 4 results out of 315)

origin: fbacchella/jrds

public Set<String> getTags() {
  return host.getTags();
}
origin: fbacchella/jrds

public Set<String> getTags() {
  return getHost().getTags();
}
origin: fbacchella/jrds

@Override
public boolean acceptGraph(GraphNode graph, String path) {
  Probe<?, ?> p = graph.getProbe();
  if(p == null)
    return false;
  HostInfo host = p.getHost();
  if(host == null)
    return false;
  Set<String> hostTags = graph.getProbe().getHost().getTags();
  if(hostTags == null) {
    return false;
  }
  for(String oneTag: hostTags) {
    if(tag.equals(oneTag))
      return true;
  }
  return false;
}
origin: fbacchella/jrds

@Test
public void testMacroTag() throws Exception {
  JrdsDocument d = Tools.parseString(goodMacroXml);
  String tagname = "mytag";
  d.getRootElement().addElement("tag").setTextContent(tagname);
  Macro m = doMacro(d, "macrodef");
  HostBuilder hb = getBuilder(m);
  JrdsDocument hostdoc = Tools.parseString(goodHostXml);
  HostInfo host = hb.makeHost(hostdoc);
  Assert.assertTrue("tag not found", host.getTags().contains(tagname));
}
jrdsHostInfogetTags

Popular methods of HostInfo

  • getName
  • getProbes
  • <init>
  • addConnection
  • getDnsName
  • setHostDir
  • addProbe
  • addTag
  • getConnection
  • getConnections
  • getHostDir
  • getNumProbes
  • getHostDir,
  • getNumProbes,
  • isHidden,
  • setHidden,
  • toString

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • Menu (java.awt)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
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