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;
 import  javax.annotation.Nullable;
Describes the capabilities of Azure with respect to Dasein vlan operations.

Created by Danielle Mayne: 4/03/14 14:30 PM

Author(s):
Danielle Mayne
Version:
2014.03 initial version
Since:
2014.03
 
 public class VlanCapabilities extends AbstractCapabilities<Azureimplements VLANCapabilities{
     public VlanCapabilities(@Nonnull Azure provider) {
         super(provider);
     }
 
     @Override
     public boolean allowsNewNetworkInterfaceCreation() throws CloudExceptionInternalException {
         return false;
     }
 
     @Override
     public boolean allowsNewVlanCreation() throws CloudExceptionInternalException {
         return true;
     }
 
     @Override
     public boolean allowsNewRoutingTableCreation() throws CloudExceptionInternalException {
         return false;
     }
 
     @Override
     public boolean allowsNewSubnetCreation() throws CloudExceptionInternalException {
         return true;
     }
 
     @Override
         return false;
     }
 
     @Override
     public boolean allowsMultipleTrafficTypesOverVlan() throws CloudExceptionInternalException {
         return false;
     }
 
     @Override
     public int getMaxNetworkInterfaceCount() throws CloudExceptionInternalException {
         return 0;
     }
 
     @Override
     public int getMaxVlanCount() throws CloudExceptionInternalException {
         return 5;
     }
 
     @Nonnull
     @Override
     public String getProviderTermForNetworkInterface(@Nonnull Locale locale) {
         return "network interface";
     }
 
     @Nonnull
     @Override
     public String getProviderTermForSubnet(@Nonnull Locale locale) {
         return "subnet";
     }
 
     @Nonnull
     @Override
     public String getProviderTermForVlan(@Nonnull Locale locale) {
         return "address space";
    }
    @Nonnull
    @Override
        return .;
    }
    @Nonnull
    @Override
        return .;
    }
    @Nullable
    @Override
    public VisibleScope getVLANVisibleScope() {
        return null;
    }
    @Nonnull
    @Override
        return .;
    }
    @Override
        return false;
    }
    @Override
    public boolean isSubnetDataCenterConstrained() throws CloudExceptionInternalException {
        return true;
    }
    @Override
    public boolean isVlanDataCenterConstrained() throws CloudExceptionInternalException {
        return true;
    }
    @Nonnull
    @Override
        return Collections.singletonList(.);
    }
    @Override
        return false;
    }
    @Override
    public boolean supportsRawAddressRouting() throws CloudExceptionInternalException {
        return false;
    }
    @Override
    public @Nonnull NamingConstraints getVlanNamingConstraints() {
        return NamingConstraints.getStrictInstance(3, 15).constrainedBy(new char[]{'-'});
    }
New to GrepCode? Check out our FAQ X