org.dasein.cloud.google.network
Class NetworkSupport

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

public class NetworkSupport
extends org.dasein.cloud.network.AbstractVLANSupport

Implements the network services supported in the Google API.

Since:
2013.01
Version:
2013.01 initial version
Author:
INSERT NAME HERE

Field Summary
 
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
 org.dasein.cloud.network.Route addRouteToAddress(String toRoutingTableId, org.dasein.cloud.network.IPVersion version, String destinationCidr, String address)
           
 org.dasein.cloud.network.Route addRouteToGateway(String toRoutingTableId, org.dasein.cloud.network.IPVersion version, String destinationCidr, String gatewayId)
           
 org.dasein.cloud.network.Route addRouteToNetworkInterface(String toRoutingTableId, org.dasein.cloud.network.IPVersion version, String destinationCidr, String nicId)
           
 org.dasein.cloud.network.Route addRouteToVirtualMachine(String toRoutingTableId, org.dasein.cloud.network.IPVersion version, String destinationCidr, String vmId)
           
 org.dasein.cloud.network.VLAN createVlan(String cidr, String name, String description, String domainName, String[] dnsServers, String[] ntpServers)
           
 String getAttachedInternetGatewayId(String vlanId)
           
 GCENetworkCapabilities getCapabilities()
           
 org.dasein.cloud.network.InternetGateway getInternetGatewayById(String gatewayId)
           
 org.dasein.cloud.network.NetworkInterface getNetworkInterface(String nicId)
           
 String getProviderTermForNetworkInterface(Locale locale)
          Deprecated. 
 String getProviderTermForSubnet(Locale locale)
          Deprecated. 
 String getProviderTermForVlan(Locale locale)
          Deprecated. 
 org.dasein.cloud.network.RoutingTable getRoutingTableForVlan(String vlanId)
           
 org.dasein.cloud.network.VLAN getVlan(String vlanId)
           
 boolean isSubscribed()
           
 Collection<String> listFirewallIdsForNIC(String nicId)
           
 Collection<org.dasein.cloud.network.InternetGateway> listInternetGateways(String vlanId)
           
 Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfaces()
           
 Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfacesForVM(String forVmId)
           
 Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfacesInSubnet(String subnetId)
           
 Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfacesInVLAN(String vlanId)
           
 Iterable<org.dasein.cloud.ResourceStatus> listNetworkInterfaceStatus()
           
 Iterable<org.dasein.cloud.network.Networkable> listResources(String inVlanId)
           
 Iterable<org.dasein.cloud.network.RoutingTable> listRoutingTables(String inVlanId)
           
 Iterable<org.dasein.cloud.network.Subnet> listSubnets(String inVlanId)
           
 Iterable<org.dasein.cloud.network.VLAN> listVlans()
           
 Iterable<org.dasein.cloud.ResourceStatus> listVlanStatus()
           
 void removeInternetGatewayById(String id)
           
 void removeInternetGatewayTags(String internetGatewayId, org.dasein.cloud.Tag... tags)
           
 void removeRoutingTableTags(String routingTableId, org.dasein.cloud.Tag... tags)
           
 void removeVlan(String vlanId)
           
 void updateInternetGatewayTags(String internetGatewayId, org.dasein.cloud.Tag... tags)
           
 void updateRoutingTableTags(String routingTableId, org.dasein.cloud.Tag... tags)
           
 
Methods inherited from class org.dasein.cloud.network.AbstractVLANSupport
allowsMultipleTrafficTypesOverSubnet, allowsMultipleTrafficTypesOverVlan, allowsNewNetworkInterfaceCreation, allowsNewRoutingTableCreation, allowsNewSubnetCreation, allowsNewVlanCreation, assignRoutingTableToSubnet, assignRoutingTableToVlan, attachNetworkInterface, createInternetGateway, createNetworkInterface, createRoutingTable, createSubnet, createSubnet, createVlan, detachNetworkInterface, disassociateRoutingTableFromSubnet, getContext, getMaxNetworkInterfaceCount, getMaxVlanCount, getProvider, getRoutingTable, getRoutingTableForSubnet, getRoutingTableSupport, getSubnet, getSubnetSupport, identifySubnetDCRequirement, isConnectedViaInternetGateway, isNetworkInterfaceSupportEnabled, isSubnetDataCenterConstrained, isVlanDataCenterConstrained, listRoutingTablesForSubnet, listRoutingTablesForVlan, listSupportedIPVersions, mapServiceAction, removeInternetGateway, removeInternetGatewayTags, removeNetworkInterface, removeRoute, removeRoutingTable, removeRoutingTableTags, removeSubnet, removeSubnetTags, removeSubnetTags, removeVLANTags, removeVLANTags, supportsInternetGatewayCreation, supportsRawAddressRouting, updateInternetGatewayTags, updateRoutingTableTags, updateSubnetTags, updateSubnetTags, updateVLANTags, updateVLANTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addRouteToAddress

public org.dasein.cloud.network.Route addRouteToAddress(String toRoutingTableId,
                                                        org.dasein.cloud.network.IPVersion version,
                                                        String destinationCidr,
                                                        String address)
                                                 throws org.dasein.cloud.CloudException,
                                                        org.dasein.cloud.InternalException
Specified by:
addRouteToAddress in interface org.dasein.cloud.network.VLANSupport
Overrides:
addRouteToAddress in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

addRouteToGateway

public org.dasein.cloud.network.Route addRouteToGateway(String toRoutingTableId,
                                                        org.dasein.cloud.network.IPVersion version,
                                                        String destinationCidr,
                                                        String gatewayId)
                                                 throws org.dasein.cloud.CloudException,
                                                        org.dasein.cloud.InternalException
Specified by:
addRouteToGateway in interface org.dasein.cloud.network.VLANSupport
Overrides:
addRouteToGateway in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

addRouteToNetworkInterface

public org.dasein.cloud.network.Route addRouteToNetworkInterface(String toRoutingTableId,
                                                                 org.dasein.cloud.network.IPVersion version,
                                                                 String destinationCidr,
                                                                 String nicId)
                                                          throws org.dasein.cloud.CloudException,
                                                                 org.dasein.cloud.InternalException
Specified by:
addRouteToNetworkInterface in interface org.dasein.cloud.network.VLANSupport
Overrides:
addRouteToNetworkInterface in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

addRouteToVirtualMachine

public org.dasein.cloud.network.Route addRouteToVirtualMachine(String toRoutingTableId,
                                                               org.dasein.cloud.network.IPVersion version,
                                                               String destinationCidr,
                                                               String vmId)
                                                        throws org.dasein.cloud.CloudException,
                                                               org.dasein.cloud.InternalException
Specified by:
addRouteToVirtualMachine in interface org.dasein.cloud.network.VLANSupport
Overrides:
addRouteToVirtualMachine in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

createVlan

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

getCapabilities

@Nonnull
public GCENetworkCapabilities getCapabilities()

getProviderTermForNetworkInterface

@Deprecated
@Nonnull
public String getProviderTermForNetworkInterface(@Nonnull
                                                                    Locale locale)
Deprecated. 


getProviderTermForVlan

@Deprecated
@Nonnull
public String getProviderTermForVlan(@Nonnull
                                                        Locale locale)
Deprecated. 


getProviderTermForSubnet

@Deprecated
@Nonnull
public String getProviderTermForSubnet(@Nonnull
                                                          Locale locale)
Deprecated. 


getNetworkInterface

public org.dasein.cloud.network.NetworkInterface getNetworkInterface(@Nonnull
                                                                     String nicId)
                                                              throws org.dasein.cloud.CloudException,
                                                                     org.dasein.cloud.InternalException
Specified by:
getNetworkInterface in interface org.dasein.cloud.network.VLANSupport
Overrides:
getNetworkInterface in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getRoutingTableForVlan

public org.dasein.cloud.network.RoutingTable getRoutingTableForVlan(@Nonnull
                                                                    String vlanId)
                                                             throws org.dasein.cloud.CloudException,
                                                                    org.dasein.cloud.InternalException
Specified by:
getRoutingTableForVlan in interface org.dasein.cloud.network.VLANSupport
Overrides:
getRoutingTableForVlan in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getVlan

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

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listFirewallIdsForNIC

@Nonnull
public Collection<String> listFirewallIdsForNIC(@Nonnull
                                                        String nicId)
                                         throws org.dasein.cloud.CloudException,
                                                org.dasein.cloud.InternalException
Specified by:
listFirewallIdsForNIC in interface org.dasein.cloud.network.VLANSupport
Overrides:
listFirewallIdsForNIC in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listInternetGateways

@Nonnull
public Collection<org.dasein.cloud.network.InternetGateway> listInternetGateways(@Nullable
                                                                                         String vlanId)
                                                                          throws org.dasein.cloud.CloudException,
                                                                                 org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getInternetGatewayById

public org.dasein.cloud.network.InternetGateway getInternetGatewayById(@Nonnull
                                                                       String gatewayId)
                                                                throws org.dasein.cloud.CloudException,
                                                                       org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getAttachedInternetGatewayId

@Nullable
public String getAttachedInternetGatewayId(@Nonnull
                                                    String vlanId)
                                    throws org.dasein.cloud.CloudException,
                                           org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeInternetGatewayById

public void removeInternetGatewayById(@Nonnull
                                      String id)
                               throws org.dasein.cloud.CloudException,
                                      org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listNetworkInterfaceStatus

@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listNetworkInterfaceStatus()
                                                                     throws org.dasein.cloud.CloudException,
                                                                            org.dasein.cloud.InternalException
Specified by:
listNetworkInterfaceStatus in interface org.dasein.cloud.network.VLANSupport
Overrides:
listNetworkInterfaceStatus in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listNetworkInterfaces

@Nonnull
public Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfaces()
                                                                          throws org.dasein.cloud.CloudException,
                                                                                 org.dasein.cloud.InternalException
Specified by:
listNetworkInterfaces in interface org.dasein.cloud.network.VLANSupport
Overrides:
listNetworkInterfaces in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listNetworkInterfacesForVM

@Nonnull
public Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfacesForVM(@Nonnull
                                                                                              String forVmId)
                                                                               throws org.dasein.cloud.CloudException,
                                                                                      org.dasein.cloud.InternalException
Specified by:
listNetworkInterfacesForVM in interface org.dasein.cloud.network.VLANSupport
Overrides:
listNetworkInterfacesForVM in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listNetworkInterfacesInSubnet

@Nonnull
public Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfacesInSubnet(@Nonnull
                                                                                                 String subnetId)
                                                                                  throws org.dasein.cloud.CloudException,
                                                                                         org.dasein.cloud.InternalException
Specified by:
listNetworkInterfacesInSubnet in interface org.dasein.cloud.network.VLANSupport
Overrides:
listNetworkInterfacesInSubnet in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listNetworkInterfacesInVLAN

@Nonnull
public Iterable<org.dasein.cloud.network.NetworkInterface> listNetworkInterfacesInVLAN(@Nonnull
                                                                                               String vlanId)
                                                                                throws org.dasein.cloud.CloudException,
                                                                                       org.dasein.cloud.InternalException
Specified by:
listNetworkInterfacesInVLAN in interface org.dasein.cloud.network.VLANSupport
Overrides:
listNetworkInterfacesInVLAN in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listResources

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

listRoutingTables

@Nonnull
public Iterable<org.dasein.cloud.network.RoutingTable> listRoutingTables(@Nonnull
                                                                                 String inVlanId)
                                                                  throws org.dasein.cloud.CloudException,
                                                                         org.dasein.cloud.InternalException
Specified by:
listRoutingTables in interface org.dasein.cloud.network.VLANSupport
Overrides:
listRoutingTables in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSubnets

@Nonnull
public Iterable<org.dasein.cloud.network.Subnet> listSubnets(@Nonnull
                                                                     String inVlanId)
                                                      throws org.dasein.cloud.CloudException,
                                                             org.dasein.cloud.InternalException
Specified by:
listSubnets in interface org.dasein.cloud.network.VLANSupport
Overrides:
listSubnets in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listVlanStatus

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

listVlans

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

removeVlan

public void removeVlan(String vlanId)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeVlan in interface org.dasein.cloud.network.VLANSupport
Overrides:
removeVlan in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeInternetGatewayTags

public void removeInternetGatewayTags(String internetGatewayId,
                                      org.dasein.cloud.Tag... tags)
                               throws org.dasein.cloud.CloudException,
                                      org.dasein.cloud.InternalException
Specified by:
removeInternetGatewayTags in interface org.dasein.cloud.network.VLANSupport
Overrides:
removeInternetGatewayTags in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeRoutingTableTags

public void removeRoutingTableTags(String routingTableId,
                                   org.dasein.cloud.Tag... tags)
                            throws org.dasein.cloud.CloudException,
                                   org.dasein.cloud.InternalException
Specified by:
removeRoutingTableTags in interface org.dasein.cloud.network.VLANSupport
Overrides:
removeRoutingTableTags in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateRoutingTableTags

public void updateRoutingTableTags(String routingTableId,
                                   org.dasein.cloud.Tag... tags)
                            throws org.dasein.cloud.CloudException,
                                   org.dasein.cloud.InternalException
Specified by:
updateRoutingTableTags in interface org.dasein.cloud.network.VLANSupport
Overrides:
updateRoutingTableTags in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateInternetGatewayTags

public void updateInternetGatewayTags(String internetGatewayId,
                                      org.dasein.cloud.Tag... tags)
                               throws org.dasein.cloud.CloudException,
                                      org.dasein.cloud.InternalException
Specified by:
updateInternetGatewayTags in interface org.dasein.cloud.network.VLANSupport
Overrides:
updateInternetGatewayTags in class org.dasein.cloud.network.AbstractVLANSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2014 Dell, Inc. All Rights Reserved.