use of org.jclouds.logging.log4j.config.Log4JLoggingModule in project whirr by apache.
the class ComputeServiceContextBuilder method build.
public static ComputeServiceContext build(ClusterSpec spec) throws IOException {
Set<AbstractModule> wiring = ImmutableSet.of(new JschSshClientModule(), new Log4JLoggingModule());
ComputeServiceContext context = new ComputeServiceContextFactory().createContext(spec.getProvider(), spec.getIdentity(), spec.getCredential(), wiring);
return context;
}
use of org.jclouds.logging.log4j.config.Log4JLoggingModule in project hive by apache.
the class CloudComputeService method initComputeServiceContext.
private ComputeServiceContext initComputeServiceContext(CloudComputeConfig.CloudComputeProvider provider, String identity, String credential) {
Properties overrides = new Properties();
overrides.put(ComputeServiceProperties.POLL_INITIAL_PERIOD, String.valueOf(60L * 1000L));
overrides.put(ComputeServiceProperties.POLL_MAX_PERIOD, String.valueOf(600L * 1000L));
overrides.put(Constants.PROPERTY_MAX_RETRIES, String.valueOf(60));
return ContextBuilder.newBuilder(provider.getmJcloudsId()).credentials(identity, credential).modules(ImmutableSet.of(new SshjSshClientModule(), new Log4JLoggingModule())).overrides(overrides).buildView(ComputeServiceContext.class);
}
Aggregations