Tabnine Logo
ExportedBlockKeys.getKeyUpdateInterval
Code IndexAdd Tabnine to your IDE (free)

How to use
getKeyUpdateInterval
method
in
org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys

Best Java code snippets using org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys.getKeyUpdateInterval (Showing top 11 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

long blockKeyUpdateInterval = keys.getKeyUpdateInterval();
long blockTokenLifetime = keys.getTokenLifetime();
LOG.info("Block token params received from NN: " +
origin: org.apache.hadoop/hadoop-hdfs

this.isBlockTokenEnabled = keys.isBlockTokenEnabled();
if (isBlockTokenEnabled) {
 long updateInterval = keys.getKeyUpdateInterval();
 long tokenLifetime = keys.getTokenLifetime();
 LOG.info("Block token params received from NN: update interval="
origin: org.apache.hadoop/hadoop-hdfs

public static ExportedBlockKeysProto convert(ExportedBlockKeys keys) {
 ExportedBlockKeysProto.Builder builder = ExportedBlockKeysProto
   .newBuilder();
 builder.setIsBlockTokenEnabled(keys.isBlockTokenEnabled())
   .setKeyUpdateInterval(keys.getKeyUpdateInterval())
   .setTokenLifeTime(keys.getTokenLifetime())
   .setCurrentKey(convert(keys.getCurrentKey()));
 for (BlockKey k : keys.getAllKeys()) {
  builder.addAllKeys(convert(k));
 }
 return builder.build();
}
origin: ch.cern.hadoop/hadoop-hdfs

long blockKeyUpdateInterval = keys.getKeyUpdateInterval();
long blockTokenLifetime = keys.getTokenLifetime();
LOG.info("Block token params received from NN: for block pool " +
origin: ch.cern.hadoop/hadoop-hdfs

public KeyManager(String blockpoolID, NamenodeProtocol namenode,
  boolean encryptDataTransfer, Configuration conf) throws IOException {
 this.namenode = namenode;
 this.encryptDataTransfer = encryptDataTransfer;
 this.timer = new Timer();
 final ExportedBlockKeys keys = namenode.getBlockKeys();
 this.isBlockTokenEnabled = keys.isBlockTokenEnabled();
 if (isBlockTokenEnabled) {
  long updateInterval = keys.getKeyUpdateInterval();
  long tokenLifetime = keys.getTokenLifetime();
  LOG.info("Block token params received from NN: update interval="
    + StringUtils.formatTime(updateInterval)
    + ", token lifetime=" + StringUtils.formatTime(tokenLifetime));
  String encryptionAlgorithm = conf.get(
    DFSConfigKeys.DFS_DATA_ENCRYPTION_ALGORITHM_KEY);
  this.blockTokenSecretManager = new BlockTokenSecretManager(
    updateInterval, tokenLifetime, blockpoolID, encryptionAlgorithm);
  this.blockTokenSecretManager.addKeys(keys);
  // sync block keys with NN more frequently than NN updates its block keys
  this.blockKeyUpdater = new BlockKeyUpdater(updateInterval / 4);
  this.shouldRun = true;
 } else {
  this.blockTokenSecretManager = null;
  this.blockKeyUpdater = null;
 }
}

origin: io.prestosql.hadoop/hadoop-apache

long blockKeyUpdateInterval = keys.getKeyUpdateInterval();
long blockTokenLifetime = keys.getTokenLifetime();
LOG.info("Block token params received from NN: for block pool " +
origin: io.prestosql.hadoop/hadoop-apache

public KeyManager(String blockpoolID, NamenodeProtocol namenode,
  boolean encryptDataTransfer, Configuration conf) throws IOException {
 this.namenode = namenode;
 this.encryptDataTransfer = encryptDataTransfer;
 this.timer = new Timer();
 final ExportedBlockKeys keys = namenode.getBlockKeys();
 this.isBlockTokenEnabled = keys.isBlockTokenEnabled();
 if (isBlockTokenEnabled) {
  long updateInterval = keys.getKeyUpdateInterval();
  long tokenLifetime = keys.getTokenLifetime();
  LOG.info("Block token params received from NN: update interval="
    + StringUtils.formatTime(updateInterval)
    + ", token lifetime=" + StringUtils.formatTime(tokenLifetime));
  String encryptionAlgorithm = conf.get(
    DFSConfigKeys.DFS_DATA_ENCRYPTION_ALGORITHM_KEY);
  this.blockTokenSecretManager = new BlockTokenSecretManager(
    updateInterval, tokenLifetime, blockpoolID, encryptionAlgorithm);
  this.blockTokenSecretManager.addKeys(keys);
  // sync block keys with NN more frequently than NN updates its block keys
  this.blockKeyUpdater = new BlockKeyUpdater(updateInterval / 4);
  this.shouldRun = true;
 } else {
  this.blockTokenSecretManager = null;
  this.blockKeyUpdater = null;
 }
}

origin: io.fabric8/fabric-hadoop

this.isBlockTokenEnabled = keys.isBlockTokenEnabled();
if (isBlockTokenEnabled) {
 long blockKeyUpdateInterval = keys.getKeyUpdateInterval();
 long blockTokenLifetime = keys.getTokenLifetime();
 LOG.info("Block token params received from NN: keyUpdateInterval="
origin: io.prestosql.hadoop/hadoop-apache

public static ExportedBlockKeysProto convert(ExportedBlockKeys keys) {
 ExportedBlockKeysProto.Builder builder = ExportedBlockKeysProto
   .newBuilder();
 builder.setIsBlockTokenEnabled(keys.isBlockTokenEnabled())
   .setKeyUpdateInterval(keys.getKeyUpdateInterval())
   .setTokenLifeTime(keys.getTokenLifetime())
   .setCurrentKey(convert(keys.getCurrentKey()));
 for (BlockKey k : keys.getAllKeys()) {
  builder.addAllKeys(convert(k));
 }
 return builder.build();
}
origin: ch.cern.hadoop/hadoop-hdfs

void compare(ExportedBlockKeys expKeys, ExportedBlockKeys expKeys1) {
 BlockKey[] allKeys = expKeys.getAllKeys();
 BlockKey[] allKeys1 = expKeys1.getAllKeys();
 assertEquals(allKeys.length, allKeys1.length);
 for (int i = 0; i < allKeys.length; i++) {
  compare(allKeys[i], allKeys1[i]);
 }
 compare(expKeys.getCurrentKey(), expKeys1.getCurrentKey());
 assertEquals(expKeys.getKeyUpdateInterval(),
   expKeys1.getKeyUpdateInterval());
 assertEquals(expKeys.getTokenLifetime(), expKeys1.getTokenLifetime());
}
origin: ch.cern.hadoop/hadoop-hdfs

public static ExportedBlockKeysProto convert(ExportedBlockKeys keys) {
 ExportedBlockKeysProto.Builder builder = ExportedBlockKeysProto
   .newBuilder();
 builder.setIsBlockTokenEnabled(keys.isBlockTokenEnabled())
   .setKeyUpdateInterval(keys.getKeyUpdateInterval())
   .setTokenLifeTime(keys.getTokenLifetime())
   .setCurrentKey(convert(keys.getCurrentKey()));
 for (BlockKey k : keys.getAllKeys()) {
  builder.addAllKeys(convert(k));
 }
 return builder.build();
}
org.apache.hadoop.hdfs.security.token.blockExportedBlockKeysgetKeyUpdateInterval

Popular methods of ExportedBlockKeys

  • getTokenLifetime
  • <init>
  • getAllKeys
  • getCurrentKey
  • isBlockTokenEnabled

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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