jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Kulakov <notificati...@github.com>
Subject Re: [jclouds-labs] CloudSigma2 ComputeService and SecurityGroupExtension (#70)
Date Fri, 17 Oct 2014 21:09:19 GMT
> +         .<ServerStatus, NodeMetadata.Status>builder().put(ServerStatus.RUNNING,
NodeMetadata.Status.RUNNING)
> +         .put(ServerStatus.STARTING, NodeMetadata.Status.PENDING)
> +         .put(ServerStatus.STOPPING, NodeMetadata.Status.PENDING)
> +         .put(ServerStatus.STOPPED, NodeMetadata.Status.SUSPENDED)
> +         .put(ServerStatus.PAUSED, NodeMetadata.Status.SUSPENDED)
> +         .put(ServerStatus.UNAVAILABLE, NodeMetadata.Status.SUSPENDED)
> +         .put(ServerStatus.UNRECOGNIZED, NodeMetadata.Status.UNRECOGNIZED).build();
> +
> +   @Provides
> +   @Singleton
> +   protected Map<ServerStatus, NodeMetadata.Status> provideStatusMap() {
> +      return serverStatusToNodeStatus;
> +   }
> +
> +   @VisibleForTesting
> +   public static final Map<DriveStatus, Image.Status> driveStatusToImageStatus
= ImmutableMap

It's used outside, that's why it's public.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/70/files#r19043626
Mime
View raw message