Codota Logo
DockerScanner.getDockerClient
Code IndexAdd Codota to your IDE (free)

How to use
getDockerClient
method
in
org.lendingclub.mercator.docker.DockerScanner

Best Java code snippets using org.lendingclub.mercator.docker.DockerScanner.getDockerClient (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: LendingClub/mercator

  public DockerRestClient getRestClient() {
    return DockerRestClient.forDockerClient(getDockerClient());
  }
}
origin: LendingClub/mercator

public DockerRestClient getRestClient() {
  return DockerRestClient.forDockerClient(dockerScanner.getDockerClient());
}
origin: LendingClub/mercator

public void scan() {
  
  
  WebTarget wt = SwarmScanner.extractWebTarget(getDockerClient());
  JsonNode n = wt.path("/info").request().buildGet().invoke(JsonNode.class);
  
  if (n.path("Swarm").path("Cluster").isContainerNode()) {
    logger.info("talking to a docker swarm manager: {}",wt);
    SwarmScanner ss = new SwarmScanner(this);
    ss.scan();
  }
  else {
    // looks like we are talking to a docker engine.  We don't support this yet because we need to figure out
    // how to ensure that we do not get duplicate entries from the Swarm view of the nodes and the engine's view of itself.
    logger.info("talking to a docker engine: {}",wt);
    
    String engineId = n.get("ID").asText();
    JsonLogger.logInfo("x", n); 
    updateEngineInfo(n);
  
  }
  
}

origin: LendingClub/mercator

public void scan() {
  WebTarget t = extractWebTarget(dockerScanner.getDockerClient());
  logger.info("Scanning {}", t);
  JsonNode response = t.path("/info").request().buildGet().invoke(JsonNode.class);
origin: LendingClub/mercator

  @BeforeClass
  public static void setupDockerScanner() {
    DockerScanner ds = new Projector.Builder().build().createBuilder(DockerScannerBuilder.class).withLocalDockerDaemon().build();
    boolean b = ds.getNeoRxClient().checkConnection();
    if (b==false) {
      logger.warn("neo4j is not available...integration tests will be skipped");
      Assume.assumeTrue("neo4j available", b);
    }
    else {
      logger.info("neo4j is available for integration tests");
    }
    
    try {
      Info info = ds.getDockerClient().infoCmd().exec();
      logger.info("local docker daemon is available for integration tests");
      dockerScanner = ds;
    }
    catch (Exception e) {
      logger.warn("neo4j is not available for integration tests",e);
      Assume.assumeTrue(false);
      return;
    }
    
  }
}
org.lendingclub.mercator.dockerDockerScannergetDockerClient

Popular methods of DockerScanner

  • getNeoRxClient
  • scan
  • <init>
  • getProjector
  • getRestClient
  • getSchemaManager
  • maybeThrow
  • scanService
  • scanTask
  • updateEngineInfo

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JFileChooser (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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