Package com.puppetlabs.puppetdb.javaclient

Examples of com.puppetlabs.puppetdb.javaclient.PuppetDBClient


  public PuppetDBClient getClient() throws BackingStoreException {
    BasicAPIPreferences prefs = new BasicAPIPreferences();
    prefs.setServiceHostname(getHostname());
    prefs.setServicePort(getPort());
    prefs.setAllowAllHosts(true);
    PuppetDBClient client;
    if(getHostCert() == null)
      client = PuppetDBClientFactory.newClient(prefs, getCommonModule());
    else {
      client = PuppetDBClientFactory.newClient(prefs, getCommonModule(), new AbstractModule() {
        @Override
View Full Code Here

TOP

Related Classes of com.puppetlabs.puppetdb.javaclient.PuppetDBClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.