Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 package org.jclouds.cloudsigma.compute.config;

Adrian Cole
    protected TemplateBuilder provideTemplate(Injector injectorTemplateBuilder template) {
       return template.osFamily(.).imageNameMatches(".*automated SSH Access.*");
    @SuppressWarnings({ "unchecked""rawtypes" })
    protected void configure() {
       bind(new TypeLiteral<Function<ServerInfoNodeMetadata>>() {
       bind(new TypeLiteral<Function<HardwareHardware>>() {
       bind(new TypeLiteral<Function<DriveInfoImage>>() {
       bind(new TypeLiteral<Function<LocationLocation>>() {
       bind(new TypeLiteral<Function<DeviceVolume>>() {
       bind(new TypeLiteral<Function<ServerString>>() {
      bind(new TypeLiteral<Function<StringImage>>() {
      bind(new TypeLiteral<Supplier<Location>>() {
   protected Cache<StringDriveInfocache(GetDrive getDrive) {
      return CacheBuilder.newBuilder().build(getDrive);
   public static class GetDrive extends CacheLoader<StringDriveInfo> {
      private final CloudSigmaClient client;
      public GetDrive(CloudSigmaClient client) {
         this. = client;
      public DriveInfo load(String input) {
         return .getDriveInfo(input);
   protected Predicate<DriveInfosupplyDriveUnclaimed(DriveClaimed driveClaimed,
         ComputeServiceConstants.Timeouts timeouts) {
      return new RetryablePredicate<DriveInfo>(Predicates.not(driveClaimed), timeouts.nodeRunning, 1000,
New to GrepCode? Check out our FAQ X