类 AlibabaCloudObjectStorage

  • 所有已实现的接口:
    cn.dustlight.storage.core.RestfulStorage, cn.dustlight.storage.core.Storage, cn.dustlight.storage.core.UrlStorage

    public class AlibabaCloudObjectStorage
    extends Object
    implements cn.dustlight.storage.core.RestfulStorage
    阿里云对象储存器
    • 构造器详细资料

      • AlibabaCloudObjectStorage

        public AlibabaCloudObjectStorage​(com.aliyun.oss.OSS oss,
                                         String bucket,
                                         Integer threadCount)
    • 方法详细资料

      • create

        public cn.dustlight.storage.core.StorableObject create​(String key,
                                                               int permission)
                                                        throws IOException
        指定者:
        create 在接口中 cn.dustlight.storage.core.Storage
        抛出:
        IOException
      • get

        public cn.dustlight.storage.core.StorableObject get​(String key)
                                                     throws IOException
        指定者:
        get 在接口中 cn.dustlight.storage.core.Storage
        抛出:
        IOException
      • put

        public cn.dustlight.storage.core.StorableObject put​(String key,
                                                            cn.dustlight.storage.core.StorableObject source)
                                                     throws IOException
        指定者:
        put 在接口中 cn.dustlight.storage.core.Storage
        抛出:
        IOException
      • put

        public cn.dustlight.storage.core.StorableObject put​(String key,
                                                            cn.dustlight.storage.core.StorableObject source,
                                                            int permission)
                                                     throws IOException
        指定者:
        put 在接口中 cn.dustlight.storage.core.Storage
        抛出:
        IOException
      • remove

        public void remove​(String key)
                    throws IOException
        指定者:
        remove 在接口中 cn.dustlight.storage.core.Storage
        抛出:
        IOException
      • setPermission

        public void setPermission​(String key,
                                  int permission)
                           throws IOException
        指定者:
        setPermission 在接口中 cn.dustlight.storage.core.Storage
        抛出:
        IOException
      • isExist

        public boolean isExist​(String key)
                        throws IOException
        指定者:
        isExist 在接口中 cn.dustlight.storage.core.Storage
        抛出:
        IOException
      • generateGetUrl

        public String generateGetUrl​(String key,
                                     Long expiration)
                              throws IOException
        指定者:
        generateGetUrl 在接口中 cn.dustlight.storage.core.UrlStorage
        抛出:
        IOException
      • generatePutUrl

        public String generatePutUrl​(String key,
                                     int permission,
                                     Long expiration)
                              throws IOException
        指定者:
        generatePutUrl 在接口中 cn.dustlight.storage.core.UrlStorage
        抛出:
        IOException
      • generateRemoveUrl

        public String generateRemoveUrl​(String key,
                                        Long expiration)
                                 throws IOException
        指定者:
        generateRemoveUrl 在接口中 cn.dustlight.storage.core.UrlStorage
        抛出:
        IOException
      • getACL

        protected static com.aliyun.oss.model.CannedAccessControlList getACL​(int permission)