org.dasein.cloud.services.address
Interface AddressServices


public interface AddressServices


Method Summary
 void assign(String addressId, String serverId)
           
 String create()
           
 void delete(String addressId)
           
 String forward(String addressId, int publicPort, Protocol protocol, int privatePort, String onServerId)
           
 IpAddress getIpAddress(String addressId)
           
 String getProviderTermForIpAddress(Locale locale)
           
 boolean isAssigned()
           
 boolean isForwarding()
           
 Collection<IpAddress> list()
           
 Collection<IpForwardingRule> listRules(String addressId)
           
 void release(String addressId)
           
 void stopForward(String ruleId)
           
 

Method Detail

assign

void assign(String addressId,
            String serverId)
            throws InternalException,
                   CloudException
Throws:
InternalException
CloudException

create

String create()
              throws InternalException,
                     CloudException
Throws:
InternalException
CloudException

delete

void delete(String addressId)
            throws InternalException,
                   CloudException
Throws:
InternalException
CloudException

forward

String forward(String addressId,
               int publicPort,
               Protocol protocol,
               int privatePort,
               String onServerId)
               throws InternalException,
                      CloudException
Throws:
InternalException
CloudException

getIpAddress

IpAddress getIpAddress(String addressId)
                       throws InternalException,
                              CloudException
Throws:
InternalException
CloudException

getProviderTermForIpAddress

String getProviderTermForIpAddress(Locale locale)

isAssigned

boolean isAssigned()

isForwarding

boolean isForwarding()

list

Collection<IpAddress> list()
                           throws InternalException,
                                  CloudException
Throws:
InternalException
CloudException

listRules

Collection<IpForwardingRule> listRules(String addressId)
                                       throws InternalException,
                                              CloudException
Throws:
InternalException
CloudException

release

void release(String addressId)
             throws InternalException,
                    CloudException
Throws:
InternalException
CloudException

stopForward

void stopForward(String ruleId)
                 throws InternalException,
                        CloudException
Throws:
InternalException
CloudException