@Test public void getPermissionsCached() throws Exception { Mockito.when(mClient.getS3AccountOwner()).thenReturn(new Owner("0", "test")); Mockito.when(mClient.getBucketAcl(Mockito.anyString())).thenReturn(new AccessControlList()); mS3UnderFileSystem.getPermissions(); mS3UnderFileSystem.getPermissions(); Mockito.verify(mClient).getS3AccountOwner(); Mockito.verify(mClient).getBucketAcl(Mockito.anyString()); }
@Override protected ObjectPermissions getPermissions() { return mPermissions.get(); }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } protected  S3AUnderFileSystem(AlluxioURI uri, AmazonS3Client amazonS3Client, String bucketName,
      ExecutorService executor, TransferManager transferManager, UnderFileSystemConfiguration conf,
      boolean streamingUploadEnabled); }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } protected  S3AUnderFileSystem(AlluxioURI uri, AmazonS3Client amazonS3Client, String bucketName,
      ExecutorService executor, TransferManager transferManager, UnderFileSystemConfiguration conf,
      boolean streamingUploadEnabled); static AWSCredentialsProvider createAwsCredentialsProvider(
      UnderFileSystemConfiguration conf); static S3AUnderFileSystem createInstance(AlluxioURI uri,
      UnderFileSystemConfiguration conf); @Override String getUnderFSType(); @Override void setOwner(String path, String user, String group); @Override void setMode(String path, short mode); @Override void cleanup(); @Override boolean createEmptyObject(String key); }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } protected  S3AUnderFileSystem(AlluxioURI uri, AmazonS3Client amazonS3Client, String bucketName,
      ExecutorService executor, TransferManager transferManager, UnderFileSystemConfiguration conf,
      boolean streamingUploadEnabled); static AWSCredentialsProvider createAwsCredentialsProvider(
      UnderFileSystemConfiguration conf); static S3AUnderFileSystem createInstance(AlluxioURI uri,
      UnderFileSystemConfiguration conf); @Override String getUnderFSType(); @Override void setOwner(String path, String user, String group); @Override void setMode(String path, short mode); @Override void cleanup(); @Override boolean createEmptyObject(String key);  }