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

Created by Danielle Mayne: 5/03/14 14:00 PM

Author(s):
Danielle Mayne
Version:
2014.03 initial version
Since:
2014.03
 
 public class OSImageCapabilities extends AbstractCapabilities<Azureimplements ImageCapabilities{
     public OSImageCapabilities(@Nonnull Azure provider) {
         super(provider);
     }
 
     @Override
     public boolean canBundle(@Nonnull VmState fromStatethrows CloudExceptionInternalException {
         return false;
     }
 
     @Override
     public boolean canImage(@Nonnull VmState fromStatethrows CloudExceptionInternalException {
         return fromState.equals(.);
     }
 
     @Nonnull
     @Override
     public String getProviderTermForImage(@Nonnull Locale locale, @Nonnull ImageClass cls) {
         if (cls.equals(.)) {
             return "OS Image";
         }
         return "image";
     }
 
     @Nonnull
     @Override
     public String getProviderTermForCustomImage(@Nonnull Locale locale, @Nonnull ImageClass cls) {
         if (cls.equals(.)) {
             return "OS Image";
         }
         return "image";
     }
 
     @Nullable
     @Override
     public VisibleScope getImageVisibleScope() {
         return null;
     }
 
     @Nonnull
     @Override
         return .;
     }
 
     @Nonnull
     @Override
         return Collections.singletonList(.);
     }
 
     @Nonnull
     @Override
         return Collections.emptyList();
     }
 
     @Nonnull
     @Override
        return Collections.singletonList(.);
    }
    @Nonnull
    @Override
        return Collections.singletonList(.);
    }
    @Override
    public boolean supportsDirectImageUpload() throws CloudExceptionInternalException {
        return false;
    }
    @Override
    public boolean supportsImageCapture(@Nonnull MachineImageType typethrows CloudExceptionInternalException {
        return type.equals(.);
    }

    
Indicates whether copying of an image to another region is supported by this cloud.

Returns:
true if you can copy images in this cloud to other regions
Throws:
org.dasein.cloud.CloudException an error occurred with the cloud provider when checking this capability
org.dasein.cloud.InternalException an error occurred within the Dasein cloud implementation while check this capability
    @Override
    public boolean supportsImageCopy() throws CloudExceptionInternalException {
        return false;
    }
    @Override
    public boolean supportsImageSharing() throws CloudExceptionInternalException {
        return false;
    }
    @Override
    public boolean supportsImageSharingWithPublic() throws CloudExceptionInternalException {
        return false;
    }
    @Override
    public boolean supportsListingAllRegions() throws CloudExceptionInternalException {return true;}
    @Override
    public boolean supportsPublicLibrary(@Nonnull ImageClass clsthrows CloudExceptionInternalException {
        return true;
    }
New to GrepCode? Check out our FAQ X