org.dasein.cloud.aws
Class EC2Provider

java.lang.Object
  extended by org.dasein.cloud.aws.EC2Provider
All Implemented Interfaces:
Comparable<EC2Provider>

public class EC2Provider
extends Object
implements Comparable<EC2Provider>

An enumeration-like object for different implementations of the EC2 API. This cannot be an enum as it allows for arbitrary values. Furthermore, values are matched in an case-insensitive fashion.

Created by George Reese: 9/17/12 12:29 PM

Since:
2012.09
Version:
2012.09 initial version
Author:
George Reese

Field Summary
static EC2Provider AWS
           
static EC2Provider ENSTRATUS
           
static EC2Provider EUCALYPTUS
           
static EC2Provider OPENSTACK
           
static EC2Provider OTHER
           
static EC2Provider STORAGE
           
 
Method Summary
 int compareTo(EC2Provider other)
           
 boolean equals(Object ob)
           
 String getName()
           
 boolean isAWS()
           
 boolean isEnStratus()
           
 boolean isEucalyptus()
           
 boolean isOpenStack()
           
 boolean isOther()
           
 boolean isStorage()
           
 String toString()
           
static EC2Provider valueOf(String providerName)
           
static Set<EC2Provider> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AWS

public static final EC2Provider AWS

ENSTRATUS

public static final EC2Provider ENSTRATUS

OPENSTACK

public static final EC2Provider OPENSTACK

EUCALYPTUS

public static final EC2Provider EUCALYPTUS

OTHER

public static final EC2Provider OTHER

STORAGE

public static final EC2Provider STORAGE
Method Detail

valueOf

@Nonnull
public static EC2Provider valueOf(@Nonnull
                                          String providerName)

values

@Nonnull
public static Set<EC2Provider> values()

compareTo

public int compareTo(@Nullable
                     EC2Provider other)
Specified by:
compareTo in interface Comparable<EC2Provider>

equals

public boolean equals(@Nullable
                      Object ob)
Overrides:
equals in class Object

getName

@Nonnull
public String getName()

toString

@Nonnull
public String toString()
Overrides:
toString in class Object

isAWS

public boolean isAWS()

isEnStratus

public boolean isEnStratus()

isEucalyptus

public boolean isEucalyptus()

isOpenStack

public boolean isOpenStack()

isOther

public boolean isOther()

isStorage

public boolean isStorage()


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.