Examples of MetadataHandler


Examples of cu.ftpd.filesystem.metadata.MetadataHandler

        return permissions;
    }

    // MetadataHandler
    protected void configureMetadataHandler() {
        metadataHandler = new MetadataHandler();
        Server.getInstance().getTimer().schedule(new Saver(metadataHandler), 15000, 15000); // this doesn't actually save anything, it just clears the cache of dead things
    }
View Full Code Here

Examples of cu.ftpd.filesystem.metadata.MetadataHandler

            throw new PermissionDeniedException(ActionPermission.MKDIR, ftpPathToDir, user);
        }
        if (!mkd.exists()) {
            boolean success = mkd.mkdirs();
            if (success) {
              MetadataHandler metadataHandler = ServiceManager.getServices().getMetadataHandler();
              metadataHandler.setOwnership(mkd, user.getUsername(), user.getPrimaryGroup());
              File f = mkd.getParentFile();
              while (f != null && !metadataHandler.hasOwner(f) && isLegalPath(f.getParentFile())) {
                metadataHandler.setOwnership(f, user.getUsername(), user.getPrimaryGroup());
                f = f.getParentFile();
              }
                return resolvePath(mkd);
            } else {
                throw new IOException("Could not create directory.");
View Full Code Here

Examples of org.apache.hadoop.hbase.InterProcessLock.MetadataHandler

  public void checkTableLocks() throws IOException {
    TableLockManager tableLockManager
      = TableLockManager.createTableLockManager(zkWatcher.getConfiguration(), zkWatcher, null);
    final long expireDate = EnvironmentEdgeManager.currentTimeMillis() - expireTimeout;

    MetadataHandler handler = new MetadataHandler() {
      @Override
      public void handleMetadata(byte[] ownerMetadata) {
        ZooKeeperProtos.TableLock data = TableLockManager.fromBytes(ownerMetadata);
        String msg = "Table lock acquire attempt found:";
        if (data != null) {
View Full Code Here

Examples of org.apache.hadoop.hbase.InterProcessLock.MetadataHandler

    MultithreadedTestUtil.assertOnFutures(results);
  }

  private static ZKInterProcessReadWriteLock getReadWriteLock(String testName)
      throws IOException {
    MetadataHandler handler = new MetadataHandler() {
      @Override
      public void handleMetadata(byte[] ownerMetadata) {
        LOG.info("Lock info: " + Bytes.toString(ownerMetadata));
      }
    };
View Full Code Here

Examples of org.apache.hadoop.hbase.InterProcessLock.MetadataHandler

  public void checkTableLocks() throws IOException {
    TableLockManager tableLockManager
      = TableLockManager.createTableLockManager(zkWatcher.getConfiguration(), zkWatcher, null);
    final long expireDate = EnvironmentEdgeManager.currentTime() - expireTimeout;

    MetadataHandler handler = new MetadataHandler() {
      @Override
      public void handleMetadata(byte[] ownerMetadata) {
        ZooKeeperProtos.TableLock data = TableLockManager.fromBytes(ownerMetadata);
        String msg = "Table lock acquire attempt found:";
        if (data != null) {
View Full Code Here

Examples of org.apache.hadoop.hbase.InterProcessLock.MetadataHandler

  public void checkTableLocks() throws IOException {
    TableLockManager tableLockManager
      = TableLockManager.createTableLockManager(zkWatcher.getConfiguration(), zkWatcher, null);
    final long expireDate = EnvironmentEdgeManager.currentTimeMillis() - expireTimeout;

    MetadataHandler handler = new MetadataHandler() {
      @Override
      public void handleMetadata(byte[] ownerMetadata) {
        ZooKeeperProtos.TableLock data = TableLockManager.fromBytes(ownerMetadata);
        String msg = "Table lock acquire attempt found:";
        if (data != null) {
View Full Code Here

Examples of org.apache.hadoop.hbase.InterProcessLock.MetadataHandler

    MultithreadedTestUtil.assertOnFutures(results);
  }

  private static ZKInterProcessReadWriteLock getReadWriteLock(String testName)
      throws IOException {
    MetadataHandler handler = new MetadataHandler() {
      @Override
      public void handleMetadata(byte[] ownerMetadata) {
        LOG.info("Lock info: " + Bytes.toString(ownerMetadata));
      }
    };
View Full Code Here

Examples of org.apache.hadoop.hbase.InterProcessLock.MetadataHandler

    MultithreadedTestUtil.assertOnFutures(results);
  }

  private static ZKInterProcessReadWriteLock getReadWriteLock(String testName)
      throws IOException {
    MetadataHandler handler = new MetadataHandler() {
      @Override
      public void handleMetadata(byte[] ownerMetadata) {
        LOG.info("Lock info: " + Bytes.toString(ownerMetadata));
      }
    };
View Full Code Here

Examples of org.apache.tika.parser.xml.MetadataHandler

            ContentHandler ch, Metadata md, String name, String element) {
        Matcher matcher = new CompositeMatcher(
                META_XPATH.parse("//meta:" + element),
                META_XPATH.parse("//meta:" + element + "//text()"));
        ContentHandler branch =
            new MatchingContentHandler(new MetadataHandler(md, name), matcher);
        return new TeeContentHandler(ch, branch);
    }
View Full Code Here

Examples of org.apache.tika.parser.xml.MetadataHandler

    private static ContentHandler getStatistic(
            ContentHandler ch, Metadata md, String name, String attribute) {
        Matcher matcher =
            META_XPATH.parse("//meta:document-statistic/@meta:" + attribute);
        ContentHandler branch =
            new MatchingContentHandler(new MetadataHandler(md, name), matcher);
        return new TeeContentHandler(ch, branch);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.