org.dasein.cloud.cloudstack.network
Class Network

java.lang.Object
  extended by org.dasein.cloud.network.AbstractVLANSupport
      extended by org.dasein.cloud.cloudstack.network.Network
All Implemented Interfaces:
AccessControlledService, VLANSupport

public class Network
extends AbstractVLANSupport


Nested Class Summary
static class Network.NetworkOffering
           
 
Field Summary
static String CREATE_NETWORK
           
static String LIST_NETWORK_OFFERINGS
           
static String LIST_NETWORKS
           
 
Fields inherited from interface org.dasein.cloud.network.VLANSupport
ADD_ROUTE, ANY, ASSIGN_ROUTE_TO_SUBNET, ASSIGN_ROUTE_TO_VLAN, ATTACH_INTERNET_GATEWAY, ATTACH_NIC, CREATE_INTERNET_GATEWAY, CREATE_NIC, CREATE_ROUTING_TABLE, CREATE_SUBNET, CREATE_VLAN, DETACH_NIC, GET_NIC, GET_ROUTING_TABLE, GET_SUBNET, GET_VLAN, LIST_NIC, LIST_ROUTING_TABLE, LIST_SUBNET, LIST_VLAN, REMOVE_INTERNET_GATEWAY, REMOVE_NIC, REMOVE_ROUTE, REMOVE_ROUTING_TABLE, REMOVE_SUBNET, REMOVE_VLAN
 
Method Summary
 boolean allowsNewVlanCreation()
           
 VLAN createVlan(String cidr, String name, String description, String domainName, String[] dnsServers, String[] ntpServers)
           
 List<String> findFreeNetworks()
           
 int getMaxNetworkInterfaceCount()
           
 int getMaxVlanCount()
           
 Collection<Network.NetworkOffering> getNetworkOfferings(String regionId)
           
 String getProviderTermForNetworkInterface(Locale locale)
           
 String getProviderTermForSubnet(Locale locale)
           
 String getProviderTermForVlan(Locale locale)
           
 Requirement getRoutingTableSupport()
           
 Requirement getSubnetSupport()
           
 VLAN getVlan(String vlanId)
           
 boolean isNetworkInterfaceSupportEnabled()
           
 boolean isSubnetDataCenterConstrained()
           
 boolean isSubscribed()
           
 boolean isVlanDataCenterConstrained()
           
 Iterable<VLAN> listDefaultNetworks(boolean shared, boolean forDeploy)
           
 Iterable<Networkable> listResources(String inVlanId)
           
 Iterable<IPVersion> listSupportedIPVersions()
           
 Iterable<VLAN> listVlans()
           
 Iterable<ResourceStatus> listVlanStatus()
           
 boolean supportsInternetGatewayCreation()
           
 boolean supportsRawAddressRouting()
           
 VLAN toNetwork(Node node, ProviderContext ctx)
           
 ResourceStatus toVLANStatus(Node node)
           
 
Methods inherited from class org.dasein.cloud.network.AbstractVLANSupport
addRouteToAddress, addRouteToGateway, addRouteToNetworkInterface, addRouteToVirtualMachine, allowsMultipleTrafficTypesOverSubnet, allowsMultipleTrafficTypesOverVlan, allowsNewNetworkInterfaceCreation, allowsNewSubnetCreation, assignRoutingTableToSubnet, assignRoutingTableToVlan, attachNetworkInterface, createInternetGateway, createNetworkInterface, createRoutingTable, createSubnet, createSubnet, createVlan, detachNetworkInterface, getContext, getNetworkInterface, getProvider, getRoutingTableForSubnet, getRoutingTableForVlan, getSubnet, identifySubnetDCRequirement, isConnectedViaInternetGateway, listFirewallIdsForNIC, listNetworkInterfaces, listNetworkInterfacesForVM, listNetworkInterfacesInSubnet, listNetworkInterfacesInVLAN, listNetworkInterfaceStatus, listRoutingTables, listSubnets, mapServiceAction, removeInternetGateway, removeNetworkInterface, removeRoute, removeRoutingTable, removeSubnet, removeVlan, removeVLANTags, removeVLANTags, updateVLANTags, updateVLANTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_NETWORK

public static final String CREATE_NETWORK
See Also:
Constant Field Values

LIST_NETWORK_OFFERINGS

public static final String LIST_NETWORK_OFFERINGS
See Also:
Constant Field Values

LIST_NETWORKS

public static final String LIST_NETWORKS
See Also:
Constant Field Values
Method Detail

allowsNewVlanCreation

public boolean allowsNewVlanCreation()
                              throws CloudException,
                                     InternalException
Specified by:
allowsNewVlanCreation in interface VLANSupport
Overrides:
allowsNewVlanCreation in class AbstractVLANSupport
Throws:
CloudException
InternalException

findFreeNetworks

public List<String> findFreeNetworks()
                              throws CloudException,
                                     InternalException
Throws:
CloudException
InternalException

getMaxVlanCount

public int getMaxVlanCount()
                    throws CloudException,
                           InternalException
Specified by:
getMaxVlanCount in interface VLANSupport
Overrides:
getMaxVlanCount in class AbstractVLANSupport
Throws:
CloudException
InternalException

getNetworkOfferings

@Nonnull
public Collection<Network.NetworkOffering> getNetworkOfferings(@Nonnull
                                                                       String regionId)
                                                        throws InternalException,
                                                               CloudException
Throws:
InternalException
CloudException

getVlan

@Nullable
public VLAN getVlan(@Nonnull
                             String vlanId)
             throws CloudException,
                    InternalException
Specified by:
getVlan in interface VLANSupport
Overrides:
getVlan in class AbstractVLANSupport
Throws:
CloudException
InternalException

isNetworkInterfaceSupportEnabled

public boolean isNetworkInterfaceSupportEnabled()
                                         throws CloudException,
                                                InternalException
Specified by:
isNetworkInterfaceSupportEnabled in interface VLANSupport
Overrides:
isNetworkInterfaceSupportEnabled in class AbstractVLANSupport
Throws:
CloudException
InternalException

isSubscribed

public boolean isSubscribed()
                     throws CloudException,
                            InternalException
Throws:
CloudException
InternalException

listVlans

@Nonnull
public Iterable<VLAN> listVlans()
                         throws CloudException,
                                InternalException
Specified by:
listVlans in interface VLANSupport
Overrides:
listVlans in class AbstractVLANSupport
Throws:
CloudException
InternalException

listDefaultNetworks

@Nonnull
public Iterable<VLAN> listDefaultNetworks(boolean shared,
                                                  boolean forDeploy)
                                   throws CloudException,
                                          InternalException
Throws:
CloudException
InternalException

createVlan

@Nonnull
public VLAN createVlan(@Nonnull
                               String cidr,
                               @Nonnull
                               String name,
                               @Nonnull
                               String description,
                               @Nullable
                               String domainName,
                               @Nullable
                               String[] dnsServers,
                               @Nullable
                               String[] ntpServers)
                throws CloudException,
                       InternalException
Specified by:
createVlan in interface VLANSupport
Overrides:
createVlan in class AbstractVLANSupport
Throws:
CloudException
InternalException

getMaxNetworkInterfaceCount

public int getMaxNetworkInterfaceCount()
                                throws CloudException,
                                       InternalException
Specified by:
getMaxNetworkInterfaceCount in interface VLANSupport
Overrides:
getMaxNetworkInterfaceCount in class AbstractVLANSupport
Throws:
CloudException
InternalException

supportsInternetGatewayCreation

public boolean supportsInternetGatewayCreation()
                                        throws CloudException,
                                               InternalException
Specified by:
supportsInternetGatewayCreation in interface VLANSupport
Overrides:
supportsInternetGatewayCreation in class AbstractVLANSupport
Throws:
CloudException
InternalException

supportsRawAddressRouting

public boolean supportsRawAddressRouting()
                                  throws CloudException,
                                         InternalException
Specified by:
supportsRawAddressRouting in interface VLANSupport
Overrides:
supportsRawAddressRouting in class AbstractVLANSupport
Throws:
CloudException
InternalException

toNetwork

@Nullable
public VLAN toNetwork(@Nullable
                               Node node,
                               @Nonnull
                               ProviderContext ctx)

getProviderTermForNetworkInterface

@Nonnull
public String getProviderTermForNetworkInterface(@Nonnull
                                                         Locale locale)

getProviderTermForSubnet

@Nonnull
public String getProviderTermForSubnet(@Nonnull
                                               Locale locale)

getProviderTermForVlan

@Nonnull
public String getProviderTermForVlan(@Nonnull
                                             Locale locale)

getRoutingTableSupport

@Nonnull
public Requirement getRoutingTableSupport()
                                   throws CloudException,
                                          InternalException
Specified by:
getRoutingTableSupport in interface VLANSupport
Overrides:
getRoutingTableSupport in class AbstractVLANSupport
Throws:
CloudException
InternalException

getSubnetSupport

@Nonnull
public Requirement getSubnetSupport()
                             throws CloudException,
                                    InternalException
Specified by:
getSubnetSupport in interface VLANSupport
Overrides:
getSubnetSupport in class AbstractVLANSupport
Throws:
CloudException
InternalException

isVlanDataCenterConstrained

public boolean isVlanDataCenterConstrained()
                                    throws CloudException,
                                           InternalException
Specified by:
isVlanDataCenterConstrained in interface VLANSupport
Overrides:
isVlanDataCenterConstrained in class AbstractVLANSupport
Throws:
CloudException
InternalException

listResources

@Nonnull
public Iterable<Networkable> listResources(@Nonnull
                                                   String inVlanId)
                                    throws CloudException,
                                           InternalException
Specified by:
listResources in interface VLANSupport
Overrides:
listResources in class AbstractVLANSupport
Throws:
CloudException
InternalException

isSubnetDataCenterConstrained

public boolean isSubnetDataCenterConstrained()
                                      throws CloudException,
                                             InternalException
Specified by:
isSubnetDataCenterConstrained in interface VLANSupport
Overrides:
isSubnetDataCenterConstrained in class AbstractVLANSupport
Throws:
CloudException
InternalException

listSupportedIPVersions

@Nonnull
public Iterable<IPVersion> listSupportedIPVersions()
                                            throws CloudException,
                                                   InternalException
Specified by:
listSupportedIPVersions in interface VLANSupport
Overrides:
listSupportedIPVersions in class AbstractVLANSupport
Throws:
CloudException
InternalException

listVlanStatus

@Nonnull
public Iterable<ResourceStatus> listVlanStatus()
                                        throws CloudException,
                                               InternalException
Specified by:
listVlanStatus in interface VLANSupport
Overrides:
listVlanStatus in class AbstractVLANSupport
Throws:
CloudException
InternalException

toVLANStatus

@Nullable
public ResourceStatus toVLANStatus(@Nullable
                                            Node node)


Copyright © 2013 enstratius, Inc.. All Rights Reserved.