Tabnine Logo
CacheDirectiveInfo.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo

Best Java code snippets using org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo.toString (Showing top 10 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

BatchedListEntries<CacheDirectiveEntry> listCacheDirectives(
  long startId, CacheDirectiveInfo filter) throws IOException {
 final String operationName = "listCacheDirectives";
 checkOperation(OperationCategory.READ);
 BatchedListEntries<CacheDirectiveEntry> results;
 cacheManager.waitForRescanIfNeeded();
 readLock();
 boolean success = false;
 try {
  checkOperation(OperationCategory.READ);
  results = FSNDNCacheOp.listCacheDirectives(this, cacheManager, startId,
    filter);
  success = true;
 } catch (AccessControlException ace) {
  logAuditEvent(success, operationName, filter.toString(), null,
    null);
  throw ace;
 } finally {
  readUnlock(operationName);
 }
 logAuditEvent(success, operationName, filter.toString(), null,
   null);
 return results;
}
origin: org.apache.hadoop/hadoop-hdfs

void modifyCacheDirective(CacheDirectiveInfo directive,
  EnumSet<CacheFlag> flags, boolean logRetryCache) throws IOException {
 final String operationName = "modifyCacheDirective";
 boolean success = false;
 final String idStr = "{id: " + directive.getId() + "}";
 if (!flags.contains(CacheFlag.FORCE)) {
  cacheManager.waitForRescanIfNeeded();
 }
 checkOperation(OperationCategory.WRITE);
 writeLock();
 try {
  checkOperation(OperationCategory.WRITE);
  checkNameNodeSafeMode("Cannot add cache directive");
  FSNDNCacheOp.modifyCacheDirective(this, cacheManager, directive, flags,
    logRetryCache);
  success = true;
 } catch (AccessControlException ace) {
  logAuditEvent(success, operationName, idStr,
    directive.toString(), null);
  throw ace;
 } finally {
  writeUnlock(operationName);
  if (success) {
   getEditLog().logSync();
  }
 }
 logAuditEvent(success, operationName, idStr,
   directive.toString(), null);
}
origin: org.apache.hadoop/hadoop-hdfs

effectiveDirectiveStr = effectiveDirective.toString();
logAuditEvent(success, operationName, effectiveDirectiveStr,
  null, null);
origin: ch.cern.hadoop/hadoop-hdfs

    throws Exception {
LOG.info("Polling listCacheDirectives " + 
  ((filter == null) ? "ALL" : filter.toString()) + " for " +
  targetBytesNeeded + " targetBytesNeeded, " +
  targetBytesCached + " targetBytesCached, " +
origin: ch.cern.hadoop/hadoop-hdfs

void modifyCacheDirective(CacheDirectiveInfo directive,
  EnumSet<CacheFlag> flags, boolean logRetryCache) throws IOException {
 final String operationName = "modifyCacheDirective";
 boolean success = false;
 if (!flags.contains(CacheFlag.FORCE)) {
  cacheManager.waitForRescanIfNeeded();
 }
 writeLock();
 try {
  checkOperation(OperationCategory.WRITE);
  if (isInSafeMode()) {
   throw new SafeModeException(
     "Cannot add cache directive", safeMode);
  }
  FSNDNCacheOp.modifyCacheDirective(this, cacheManager, directive, flags,
    logRetryCache);
  success = true;
 } finally {
  writeUnlock(operationName);
  if (success) {
   getEditLog().logSync();
  }
  String idStr = "{id: " + directive.getId().toString() + "}";
  logAuditEvent(success, "modifyCacheDirective", idStr,
    directive.toString(), null);
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

BatchedListEntries<CacheDirectiveEntry> listCacheDirectives(
  long startId, CacheDirectiveInfo filter) throws IOException {
 final String operationName = "listCacheDirectives";
 checkOperation(OperationCategory.READ);
 BatchedListEntries<CacheDirectiveEntry> results;
 cacheManager.waitForRescanIfNeeded();
 readLock();
 boolean success = false;
 try {
  checkOperation(OperationCategory.READ);
  results = FSNDNCacheOp.listCacheDirectives(this, cacheManager, startId,
    filter);
  success = true;
 } finally {
  readUnlock(operationName);
  logAuditEvent(success, operationName, filter.toString(), null,
    null);
 }
 return results;
}
origin: io.prestosql.hadoop/hadoop-apache

void modifyCacheDirective(CacheDirectiveInfo directive,
  EnumSet<CacheFlag> flags, boolean logRetryCache) throws IOException {
 final String operationName = "modifyCacheDirective";
 boolean success = false;
 if (!flags.contains(CacheFlag.FORCE)) {
  cacheManager.waitForRescanIfNeeded();
 }
 writeLock();
 try {
  checkOperation(OperationCategory.WRITE);
  if (isInSafeMode()) {
   throw new SafeModeException(
     "Cannot add cache directive", safeMode);
  }
  FSNDNCacheOp.modifyCacheDirective(this, cacheManager, directive, flags,
    logRetryCache);
  success = true;
 } finally {
  writeUnlock(operationName);
  if (success) {
   getEditLog().logSync();
  }
  String idStr = "{id: " + directive.getId().toString() + "}";
  logAuditEvent(success, "modifyCacheDirective", idStr,
    directive.toString(), null);
 }
}
origin: io.prestosql.hadoop/hadoop-apache

BatchedListEntries<CacheDirectiveEntry> listCacheDirectives(
  long startId, CacheDirectiveInfo filter) throws IOException {
 final String operationName = "listCacheDirectives";
 checkOperation(OperationCategory.READ);
 BatchedListEntries<CacheDirectiveEntry> results;
 cacheManager.waitForRescanIfNeeded();
 readLock();
 boolean success = false;
 try {
  checkOperation(OperationCategory.READ);
  results = FSNDNCacheOp.listCacheDirectives(this, cacheManager, startId,
    filter);
  success = true;
 } finally {
  readUnlock(operationName);
  logAuditEvent(success, operationName, filter.toString(), null,
    null);
 }
 return results;
}
origin: ch.cern.hadoop/hadoop-hdfs

long addCacheDirective(CacheDirectiveInfo directive,
            EnumSet<CacheFlag> flags, boolean logRetryCache)
  throws IOException {
 final String operationName = "addCacheDirective";
 CacheDirectiveInfo effectiveDirective = null;
 if (!flags.contains(CacheFlag.FORCE)) {
  cacheManager.waitForRescanIfNeeded();
 }
 writeLock();
 try {
  checkOperation(OperationCategory.WRITE);
  if (isInSafeMode()) {
   throw new SafeModeException(
     "Cannot add cache directive", safeMode);
  }
  effectiveDirective = FSNDNCacheOp.addCacheDirective(this, cacheManager,
    directive, flags, logRetryCache);
 } finally {
  writeUnlock(operationName);
  boolean success = effectiveDirective != null;
  if (success) {
   getEditLog().logSync();
  }
  String effectiveDirectiveStr = effectiveDirective != null ?
    effectiveDirective.toString() : null;
  logAuditEvent(success, operationName, effectiveDirectiveStr,
    null, null);
 }
 return effectiveDirective != null ? effectiveDirective.getId() : 0;
}
origin: io.prestosql.hadoop/hadoop-apache

long addCacheDirective(CacheDirectiveInfo directive,
            EnumSet<CacheFlag> flags, boolean logRetryCache)
  throws IOException {
 final String operationName = "addCacheDirective";
 CacheDirectiveInfo effectiveDirective = null;
 if (!flags.contains(CacheFlag.FORCE)) {
  cacheManager.waitForRescanIfNeeded();
 }
 writeLock();
 try {
  checkOperation(OperationCategory.WRITE);
  if (isInSafeMode()) {
   throw new SafeModeException(
     "Cannot add cache directive", safeMode);
  }
  effectiveDirective = FSNDNCacheOp.addCacheDirective(this, cacheManager,
    directive, flags, logRetryCache);
 } finally {
  writeUnlock(operationName);
  boolean success = effectiveDirective != null;
  if (success) {
   getEditLog().logSync();
  }
  String effectiveDirectiveStr = effectiveDirective != null ?
    effectiveDirective.toString() : null;
  logAuditEvent(success, operationName, effectiveDirectiveStr,
    null, null);
 }
 return effectiveDirective != null ? effectiveDirective.getId() : 0;
}
org.apache.hadoop.hdfs.protocolCacheDirectiveInfotoString

Popular methods of CacheDirectiveInfo

  • getExpiration
  • getId
  • getPath
  • getPool
  • getReplication
  • <init>

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JList (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now