Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2013-2014 Dell, Inc ==================================================================== Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ====================================================================
 
 
 package org.dasein.cloud.azure.network;
 
 
 import  javax.annotation.Nonnull;
Created by Vlad_Munthiu on 8/8/2014.
 
 
     public AzureIpAddressCapabilities(@Nonnull Azure provider) {
         super(provider);
     }

    
The cloud provider-specific term for an IP address. It's hard to fathom what other than "IP address" anyone could use.

Parameters:
locale the locale into which the term should be translated
Returns:
the cloud provider-specific term for an IP address
 
     @Nonnull
     @Override
     public String getProviderTermForIpAddress(@Nonnull Locale locale) {
         return "IP Address";
     }

    
Indicates whether you need to specify which VLAN you are tying a static IP address to when creating an IP address for use in a VLAN. REQUIRED means you must specify the VLAN, OPTIONAL means you may, and NONE means you do not specify a VLAN.

Returns:
the level of requirement for specifying a VLAN when creating a VLAN IP address
Throws:
org.dasein.cloud.CloudException an error occurred processing the request in the cloud
org.dasein.cloud.InternalException an internal error occurred inside the Dasein Cloud implementation
 
     @Nonnull
     @Override
         return .;
     }
 
     @Override
     public @Nonnull Requirement identifyVlanForIPRequirement() throws CloudExceptionInternalException {return .;}
 
     @Nonnull
     @Override
         return .;
     }
 
    /* */
Indicates whether you need to specify which VLAN you are tying a static IP address to when creating any IP address. REQUIRED means you must specify the VLAN, OPTIONAL means you may, and NONE means you do not specify a VLAN.

Returns:
the level of requirement for specifying a VLAN when creating an IP address
Throws:
org.dasein.cloud.CloudException an error occurred processing the request in the cloud
org.dasein.cloud.InternalException an internal error occurred inside the Dasein Cloud implementation
 /*
     @Nonnull
     @Override
     public Requirement identifyVlanForIPRequirement() throws CloudException, InternalException {
         return null;
     }*/

    
Indicates whether the underlying cloud supports the assignment of addresses of the specified version

Parameters:
version the IP version being checked
Returns:
true if the addresses of the specified version are assignable to cloud resources for public routing
Throws:
org.dasein.cloud.CloudException an error occurred with the cloud provider determining support
org.dasein.cloud.InternalException a local error occurred determining support
    @Override
    public boolean isAssigned(@Nonnull IPVersion versionthrows CloudExceptionInternalException {
        return false;
    }

    
Indicates whether the IPAddress can be assigned to a VM in the given state

Parameters:
vmState the queried state of the VM
Returns:
true if the IPAddress can be assigned when a VM is in the specified state
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
    @Override
    public boolean canBeAssigned(@Nonnull VmState vmStatethrows CloudExceptionInternalException {
        return false;
    }

    
When addresses are assignable, they may be assigned at launch, post-launch, or both. org.dasein.cloud.compute.VirtualMachineSupport.identifyStaticIPRequirement() will tell you what must be done at launch time. This method indicates whether or not assignable IPs may be assigned after launch. This method should never return true when isAssigned(org.dasein.cloud.network.IPVersion) returns false.

Parameters:
version the IP version being checked
Returns:
true if IP addresses of the specified version can be assigned post launch
Throws:
org.dasein.cloud.CloudException an error occurred with the cloud provider determining support
org.dasein.cloud.InternalException a local error occurred determining support
    @Override
    public boolean isAssignablePostLaunch(@Nonnull IPVersion versionthrows CloudExceptionInternalException {
        return false;
    }

    
Indicates whether the underlying cloud supports the forwarding of traffic on individual ports targeted to addresses of the specified version on to resources in the cloud.

Parameters:
version the IP version being checked
Returns:
true if forwarding is supported
Throws:
org.dasein.cloud.CloudException an error occurred with the cloud provider determining support
org.dasein.cloud.InternalException a local error occurred determining support
    @Override
    public boolean isForwarding(IPVersion versionthrows CloudExceptionInternalException {
        return false;
    }

    
Indicates whether or not you can request static IP addresses of the specified Internet Protocol version.

Parameters:
version the IP version you may want to request
Returns:
true if you can make requests from the cloud provider to add addresses of this version to your pool
Throws:
org.dasein.cloud.CloudException an error occurred with the cloud provider while determining if your account has support
org.dasein.cloud.InternalException a local exception occurred while determining support
    @Override
    public boolean isRequestable(@Nonnull IPVersion versionthrows CloudExceptionInternalException {
        return false;
    }

    
Lists all IP protocol versions supported for static IP addresses in this cloud.

Returns:
a list of supported versions
Throws:
org.dasein.cloud.CloudException an error occurred checking support for IP versions with the cloud provider
org.dasein.cloud.InternalException a local error occurred preparing the supported version
    @Nonnull
    @Override
        return Collections.emptyList();
    }

    
Indicates whether or not IP addresses can be allocated for VLAN use. Only makes sense when the cloud actually supports VLANS.

Parameters:
ofVersion the version of public IP address that might be routed to a VLAN resource
Returns:
true if an IP address may be allocated for use by VLANs
Throws:
org.dasein.cloud.InternalException a local error occurred determining support
org.dasein.cloud.CloudException an error occurred with the cloud provider in determining support
    @Override
    public boolean supportsVLANAddresses(@Nonnull IPVersion ofVersionthrows InternalExceptionCloudException {
        return false;
    }
New to GrepCode? Check out our FAQ X