public Set<IPForwardingRule> apply(PublicIPAddress ip, Iterable<Integer> ports) { return apply(ip, "tcp", ports); }
public Set<FirewallRule> apply(PublicIPAddress ip, Iterable<Integer> ports) { return apply(ip, "tcp", ports); }
@Override public ListenableFuture<Void> create(Throwable t) throws Exception { return immediateFuture(createOrPropagate(t)); }
public AsyncJob<?> apply(HttpResponse response) { checkNotNull(response, "response"); AsyncJob<Map<String, JsonBall>> toParse = parser.apply(response); checkNotNull(toParse, "parsed result from %s", response); return parseTyped.apply(toParse); } }
public Map.Entry<String, String> apply(HttpResponse response) { checkNotNull(response, "response"); Map<String, String> toParse = parser.apply(response); checkNotNull(toParse, "parsed result from %s", response); return Iterables.getFirst(toParse.entrySet(), null); } }
@Override protected void configure() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); super.configure(); }
@Override protected void configure() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); super.configure(); }
@Override protected void configure() { bind(new TypeLiteral<Supplier<String>>() { }).toInstance(Suppliers.ofInstance("1")); bind(CloudStackApi.class).toInstance(client); bind(new TypeLiteral<CacheLoader<String, Zone>>() {}). to(ZoneIdToZone.class); bind(new TypeLiteral<Supplier<LoadingCache<String, Zone>>>() {}). to(ZoneIdToZoneSupplier.class); bind(String.class).annotatedWith(Names.named(PROPERTY_SESSION_INTERVAL)).toInstance("60"); }
@Override protected void configure() { bind(new TypeLiteral<Supplier<String>>() { }).toInstance(Suppliers.ofInstance("1")); bind(CloudStackApi.class).toInstance(client); bind(new TypeLiteral<CacheLoader<String, Zone>>() {}). to(ZoneIdToZone.class); bind(new TypeLiteral<Supplier<LoadingCache<String, Zone>>>() {}). to(ZoneIdToZoneSupplier.class); bind(String.class).annotatedWith(Names.named(PROPERTY_SESSION_INTERVAL)).toInstance("60"); }
public Set<IPForwardingRule> apply(PublicIPAddress ip, Iterable<Integer> ports) { return apply(ip, "tcp", ports); }
public Set<FirewallRule> apply(PublicIPAddress ip, Iterable<Integer> ports) { return apply(ip, "tcp", ports); }
public AsyncJob<?> apply(HttpResponse response) { checkNotNull(response, "response"); AsyncJob<Map<String, JsonBall>> toParse = parser.apply(response); checkNotNull(toParse, "parsed result from %s", response); return parseTyped.apply(toParse); } }
public Map.Entry<String, String> apply(HttpResponse response) { checkNotNull(response, "response"); Map<String, String> toParse = parser.apply(response); checkNotNull(toParse, "parsed result from %s", response); return Iterables.getFirst(toParse.entrySet(), null); } }
@Override protected void configure() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); super.configure(); }
@Override protected void configure() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); super.configure(); }
@Override public ListenableFuture<Void> create(Throwable t) throws Exception { return immediateFuture(createOrPropagate(t)); }
public Set<IPForwardingRule> apply(PublicIPAddress ip, Iterable<Integer> ports) { return apply(ip, "tcp", ports); }
public Set<FirewallRule> apply(PublicIPAddress ip, Iterable<Integer> ports) { return apply(ip, "tcp", ports); }
public AsyncJob<?> apply(HttpResponse response) { checkNotNull(response, "response"); AsyncJob<Map<String, JsonBall>> toParse = parser.apply(response); checkNotNull(toParse, "parsed result from %s", response); return parseTyped.apply(toParse); } }
public Map.Entry<String, String> apply(HttpResponse response) { checkNotNull(response, "response"); Map<String, String> toParse = parser.apply(response); checkNotNull(toParse, "parsed result from %s", response); return Iterables.getFirst(toParse.entrySet(), null); } }