org.dasein.cloud.aws.network
Class ElasticIP
java.lang.Object
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
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
assignToNetworkInterface
public void assignToNetworkInterface(@Nonnull
String addressId,
@Nonnull
String nicId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
assignToNetworkInterface 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
identifyVlanForVlanIPRequirement
@Nonnull
public org.dasein.cloud.Requirement identifyVlanForVlanIPRequirement()
- Specified by:
identifyVlanForVlanIPRequirement 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
isAssigned
public boolean isAssigned(@Nonnull
org.dasein.cloud.network.IPVersion version)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
isAssigned in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
isAssignablePostLaunch
public boolean isAssignablePostLaunch(@Nonnull
org.dasein.cloud.network.IPVersion version)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
isAssignablePostLaunch in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
isForwarding
public boolean isForwarding()
- Specified by:
isForwarding in interface org.dasein.cloud.network.IpAddressSupport
isForwarding
public boolean isForwarding(org.dasein.cloud.network.IPVersion version)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
isForwarding in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
isRequestable
public boolean isRequestable(@Nonnull
org.dasein.cloud.network.AddressType type)
- Specified by:
isRequestable in interface org.dasein.cloud.network.IpAddressSupport
isRequestable
public boolean isRequestable(@Nonnull
org.dasein.cloud.network.IPVersion version)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
isRequestable in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
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
listIpPool
@Nonnull
public Iterable<org.dasein.cloud.network.IpAddress> listIpPool(@Nonnull
org.dasein.cloud.network.IPVersion version,
boolean unassignedOnly)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listIpPool in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listIpPoolStatus
@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listIpPoolStatus(@Nonnull
org.dasein.cloud.network.IPVersion version)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listIpPoolStatus 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
listSupportedIPVersions
@Nonnull
public Iterable<org.dasein.cloud.network.IPVersion> listSupportedIPVersions()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
listSupportedIPVersions in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
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
request
@Nonnull
public String request(@Nonnull
org.dasein.cloud.network.IPVersion version)
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
requestForVLAN
@Nonnull
public String requestForVLAN(@Nonnull
org.dasein.cloud.network.IPVersion forVersion)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
requestForVLAN in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
requestForVLAN
@Nonnull
public String requestForVLAN(@Nonnull
org.dasein.cloud.network.IPVersion version,
@Nonnull
String vlanId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
requestForVLAN in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
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
supportsVLANAddresses
public boolean supportsVLANAddresses(@Nonnull
org.dasein.cloud.network.IPVersion version)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
supportsVLANAddresses in interface org.dasein.cloud.network.IpAddressSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.