Codota Logo
GSBucketLoggingStatus.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.jets3t.service.model.GSBucketLoggingStatus
constructor

Best Java code snippets using org.jets3t.service.model.GSBucketLoggingStatus.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: net.java.dev.jets3t/jets3t

@Override
public void startElement(String name) {
  if (name.equals("Logging")) {
    bucketLoggingStatus = new GSBucketLoggingStatus();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

@Override
public void startElement(String name) {
  if (name.equals("Logging")) {
    bucketLoggingStatus = new GSBucketLoggingStatus();
  }
}
origin: iterate-ch/cyberduck

  @Override
  public void setConfiguration(final Path container, final LoggingConfiguration configuration) throws BackgroundException {
    try {
      // Logging target bucket
      final GSBucketLoggingStatus status = new GSBucketLoggingStatus(
          StringUtils.isNotBlank(configuration.getLoggingTarget()) ? configuration.getLoggingTarget() : container.getName(), null);
      if(configuration.isEnabled()) {
        status.setLogfilePrefix(PreferencesFactory.get().getProperty("google.logging.prefix"));
      }
      // Grant write for Google to logging target bucket
      final AccessControlList acl = session.getClient().getBucketAcl(container.getName());
      final GroupByEmailAddressGrantee grantee = new GroupByEmailAddressGrantee(
          "cloud-storage-analytics@google.com");
      if(!acl.getPermissionsForGrantee(grantee).contains(Permission.PERMISSION_WRITE)) {
        acl.grantPermission(grantee, Permission.PERMISSION_WRITE);
        session.getClient().putBucketAcl(container.getName(), acl);
      }
      session.getClient().setBucketLoggingStatusImpl(container.getName(), status);
    }
    catch(ServiceException e) {
      throw new S3ExceptionMappingService().map("Failure to write attributes of {0}", e);
    }
  }
}
org.jets3t.service.modelGSBucketLoggingStatus<init>

Popular methods of GSBucketLoggingStatus

  • getLogfilePrefix
  • getTargetBucketName
  • isLoggingEnabled
  • setPredefinedAcl
  • setLogfilePrefix

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getSystemService (Context)
  • startActivity (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now