org.dasein.cloud.aws.network
Class ElasticIP

java.lang.Object
  extended by org.dasein.cloud.aws.network.ElasticIP
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.network.IpAddressSupport

public class ElasticIP
extends Object
implements org.dasein.cloud.network.IpAddressSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.network.IpAddressSupport
ANY, ASSIGN, CREATE_IP_ADDRESS, FORWARD, GET_IP_ADDRESS, LIST_IP_ADDRESS, RELEASE, REMOVE_IP_ADDRESS, STOP_FORWARD
 
Method Summary
 void assign(String addressId, String instanceId)
           
 String forward(String addressId, int publicPort, org.dasein.cloud.network.Protocol protocol, int privatePort, String serverId)
           
 org.dasein.cloud.network.IpAddress getIpAddress(String addressId)
           
 String getProviderTermForIpAddress(Locale locale)
           
 boolean isAssigned(org.dasein.cloud.network.AddressType type)
           
 boolean isForwarding()
           
 boolean isRequestable(org.dasein.cloud.network.AddressType type)
           
 boolean isSubscribed()
           
 Iterable<org.dasein.cloud.network.IpAddress> listPrivateIpPool(boolean unassignedOnly)
           
 Iterable<org.dasein.cloud.network.IpAddress> listPublicIpPool(boolean unassignedOnly)
           
 Collection<org.dasein.cloud.network.IpForwardingRule> listRules(String addressId)
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void releaseFromPool(String addressId)
           
 void releaseFromServer(String addressId)
           
 String request(org.dasein.cloud.network.AddressType betterBePublic)
           
 void stopForward(String ruleId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assign

public void assign(@Nonnull
                   String addressId,
                   @Nonnull
                   String instanceId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
assign in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

forward

@Nonnull
public String forward(@Nonnull
                              String addressId,
                              int publicPort,
                              @Nonnull
                              org.dasein.cloud.network.Protocol protocol,
                              int privatePort,
                              @Nonnull
                              String serverId)
               throws org.dasein.cloud.InternalException,
                      org.dasein.cloud.CloudException
Specified by:
forward in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getIpAddress

@Nullable
public org.dasein.cloud.network.IpAddress getIpAddress(@Nonnull
                                                                String addressId)
                                                throws org.dasein.cloud.InternalException,
                                                       org.dasein.cloud.CloudException
Specified by:
getIpAddress in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getProviderTermForIpAddress

@Nonnull
public String getProviderTermForIpAddress(@Nonnull
                                                  Locale locale)
Specified by:
getProviderTermForIpAddress in interface org.dasein.cloud.network.IpAddressSupport

isAssigned

public boolean isAssigned(@Nonnull
                          org.dasein.cloud.network.AddressType type)
Specified by:
isAssigned in interface org.dasein.cloud.network.IpAddressSupport

isForwarding

public boolean isForwarding()
Specified by:
isForwarding in interface org.dasein.cloud.network.IpAddressSupport

isRequestable

public boolean isRequestable(@Nonnull
                             org.dasein.cloud.network.AddressType type)
Specified by:
isRequestable in interface org.dasein.cloud.network.IpAddressSupport

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Specified by:
isSubscribed in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listPrivateIpPool

@Nonnull
public Iterable<org.dasein.cloud.network.IpAddress> listPrivateIpPool(boolean unassignedOnly)
                                                               throws org.dasein.cloud.InternalException,
                                                                      org.dasein.cloud.CloudException
Specified by:
listPrivateIpPool in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listPublicIpPool

@Nonnull
public Iterable<org.dasein.cloud.network.IpAddress> listPublicIpPool(boolean unassignedOnly)
                                                              throws org.dasein.cloud.InternalException,
                                                                     org.dasein.cloud.CloudException
Specified by:
listPublicIpPool in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listRules

@Nonnull
public Collection<org.dasein.cloud.network.IpForwardingRule> listRules(@Nonnull
                                                                               String addressId)
                                                                throws org.dasein.cloud.InternalException,
                                                                       org.dasein.cloud.CloudException
Specified by:
listRules in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         org.dasein.cloud.identity.ServiceAction action)
Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService

releaseFromServer

public void releaseFromServer(@Nonnull
                              String addressId)
                       throws org.dasein.cloud.InternalException,
                              org.dasein.cloud.CloudException
Specified by:
releaseFromServer in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

releaseFromPool

public void releaseFromPool(@Nonnull
                            String addressId)
                     throws org.dasein.cloud.InternalException,
                            org.dasein.cloud.CloudException
Specified by:
releaseFromPool in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

request

@Nonnull
public String request(@Nonnull
                              org.dasein.cloud.network.AddressType betterBePublic)
               throws org.dasein.cloud.InternalException,
                      org.dasein.cloud.CloudException
Specified by:
request in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

stopForward

public void stopForward(@Nonnull
                        String ruleId)
                 throws org.dasein.cloud.InternalException,
                        org.dasein.cloud.CloudException
Specified by:
stopForward in interface org.dasein.cloud.network.IpAddressSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException


Copyright © 2012 enStratus Networks LLC. All Rights Reserved.