ContextBuilder
@Deprecated public class ComputeServiceContextFactory extends Object
ContextBuilder
. Please view
sample usage below:
context = ContextBuilder.newBuilder("openstack-nova") .endpoint("http://10.10.10.10:5000/v2.0") .credentials(user, pass) .modules(singleton(new SshjSshClientModule())) .buildView(ComputeServiceContext.class);
ContextBuilder
Constructor and Description |
---|
ComputeServiceContextFactory()
Deprecated.
for porting old code to
ContextBuilder |
ComputeServiceContextFactory(Properties properties)
Deprecated.
for porting old code to
ContextBuilder |
Modifier and Type | Method and Description |
---|---|
ComputeServiceContext |
createContext(String providerOrApi,
Iterable<? extends com.google.inject.Module> wiring,
Properties overrides)
Deprecated.
|
ComputeServiceContext |
createContext(String providerOrApi,
Properties overrides)
Deprecated.
|
ComputeServiceContext |
createContext(String providerOrApi,
String identity,
String credential)
Deprecated.
|
ComputeServiceContext |
createContext(String providerOrApi,
String identity,
String credential,
Iterable<? extends com.google.inject.Module> wiring)
Deprecated.
|
ComputeServiceContext |
createContext(String providerOrApi,
String identity,
String credential,
Iterable<? extends com.google.inject.Module> wiring,
Properties overrides)
Deprecated.
for porting old code to
ContextBuilder |
ComputeServiceContext |
createContext(String providerOrApi,
String identity,
String credential,
Properties overrides)
Deprecated.
|
public ComputeServiceContextFactory()
ContextBuilder
public ComputeServiceContextFactory(Properties properties)
ContextBuilder
public ComputeServiceContext createContext(String providerOrApi, String identity, String credential)
public ComputeServiceContext createContext(String providerOrApi, Properties overrides)
public ComputeServiceContext createContext(String providerOrApi, Iterable<? extends com.google.inject.Module> wiring, Properties overrides)
public ComputeServiceContext createContext(String providerOrApi, @Nullable String identity, @Nullable String credential, Properties overrides)
public ComputeServiceContext createContext(String providerOrApi, @Nullable String identity, @Nullable String credential, Iterable<? extends com.google.inject.Module> wiring)
public ComputeServiceContext createContext(String providerOrApi, @Nullable String identity, @Nullable String credential, Iterable<? extends com.google.inject.Module> wiring, Properties overrides)
ContextBuilder
providerOrApi
- identity
- nullable, if credentials are present in the overridescredential
- nullable, if credentials are present in the overrideswiring
- Configuration you'd like to pass to the context. Ex.
ImmutableSet.overrides
- properties to override defaults with.Copyright © 2009-2013 jclouds. All Rights Reserved.