@Test public void getStatus() throws Exception { final Path container = new Path("test-us-east-1-cyberduck", EnumSet.of(Path.Type.volume)); final S3TransferAccelerationService service = new S3TransferAccelerationService(session); service.getStatus(container); }
@Override public boolean getStatus(final Path file) throws BackgroundException { final Path bucket = containerService.getContainer(file); try { return session.getClient().getAccelerateConfig(bucket.getName()).isEnabled(); } catch(S3ServiceException failure) { throw new S3ExceptionMappingService().map("Failure to read attributes of {0}", failure, bucket); } }
S3TransferAccelerationService implements TransferAcceleration { @Override public boolean getStatus(final Path file) throws BackgroundException { final Path bucket = containerService.getContainer(file); try { return session.getClient().getAccelerateConfig(bucket.getName()).isEnabled(); } catch(S3ServiceException failure) { throw new S3ExceptionMappingService().map("Failure to read attributes of {0}", failure, bucket); } } }
S3TransferAccelerationService implements TransferAcceleration { @Override public boolean getStatus(final Path file) throws BackgroundException { final Path bucket = containerService.getContainer(file); try { return session.getClient().getAccelerateConfig(bucket.getName()).isEnabled(); } catch(S3ServiceException failure) { throw new S3ExceptionMappingService().map("Failure to read attributes of {0}", failure, bucket); } } S3TransferAccelerationService(final S3Session session);  S3TransferAccelerationService(final S3Session session, final String hostname); }
S3TransferAccelerationService implements TransferAcceleration { @Override public boolean getStatus(final Path file) throws BackgroundException { final Path bucket = containerService.getContainer(file); try { return session.getClient().getAccelerateConfig(bucket.getName()).isEnabled(); } catch(S3ServiceException failure) { throw new S3ExceptionMappingService().map("Failure to read attributes of {0}", failure, bucket); } } S3TransferAccelerationService(final S3Session session);  S3TransferAccelerationService(final S3Session session, final String hostname); @Override boolean getStatus(final Path file); @Override void setStatus(final Path file, final boolean enabled); @Override boolean prompt(final Host bookmark, final Path file, final ConnectionCallback prompt); @Override void configure(final boolean enable, final Path file); @Override String toString(); }
S3TransferAccelerationService implements TransferAcceleration { @Override public boolean getStatus(final Path file) throws BackgroundException { final Path bucket = containerService.getContainer(file); try { return session.getClient().getAccelerateConfig(bucket.getName()).isEnabled(); } catch(S3ServiceException failure) { throw new S3ExceptionMappingService().map("Failure to read attributes of {0}", failure, bucket); } } S3TransferAccelerationService(final S3Session session);  S3TransferAccelerationService(final S3Session session, final String hostname); @Override boolean getStatus(final Path file); @Override void setStatus(final Path file, final boolean enabled); @Override boolean prompt(final Host bookmark, final Path file, final ConnectionCallback prompt); @Override void configure(final boolean enable, final Path file); @Override String toString(); static final String S3_ACCELERATE_HOSTNAME; static final String S3_ACCELERATE_DUALSTACK_HOSTNAME; }