blob: 84bd594eee0cab9b637f475000e251e220298bcf [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="de">
<head>
<!-- Generated by javadoc (17) -->
<title>HdfsBlobStore (Storm 2.6.2 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.storm.hdfs.blobstore, class: HdfsBlobStore">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="class-use/HdfsBlobStore.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li><a href="#nested-class-summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field-summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.storm.hdfs.blobstore</a></div>
<h1 title="Class HdfsBlobStore" class="title">Class HdfsBlobStore</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance"><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">org.apache.storm.blobstore.BlobStore</a>
<div class="inheritance">org.apache.storm.hdfs.blobstore.HdfsBlobStore</div>
</div>
</div>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/AutoCloseable.html" title="class or interface in java.lang" class="external-link">AutoCloseable</a></code>, <code><a href="../../daemon/Shutdownable.html" title="interface in org.apache.storm.daemon">Shutdownable</a></code></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">HdfsBlobStore</span>
<span class="extends-implements">extends <a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></span></div>
<div class="block">Provides a HDFS file system backed blob store implementation.
Note that this provides an api for having HDFS be the backing store for the blobstore,
it is not a service/daemon.
<p>We currently have NIMBUS_ADMINS and SUPERVISOR_ADMINS configuration. NIMBUS_ADMINS are given READ, WRITE and ADMIN
access whereas the SUPERVISOR_ADMINS are given READ access in order to read and download the blobs form the nimbus.
<p>The ACLs for the blob store are validated against whether the subject is a NIMBUS_ADMIN, SUPERVISOR_ADMIN or USER
who has read, write or admin privileges in order to perform respective operations on the blob.
<p>For hdfs blob store
1. The USER interacts with nimbus to upload and access blobs through NimbusBlobStore Client API. Here, unlike
local blob store which stores the blobs locally, the nimbus talks to HDFS to upload the blobs.
2. The USER sets the ACLs, and the blob access is validated against these ACLs.
3. The SUPERVISOR interacts with nimbus through HdfsClientBlobStore to download the blobs. Here, unlike local
blob store the supervisor interacts with HDFS directly to download the blobs. The call to HdfsBlobStore is made as a "null"
subject. The blobstore gets the hadoop user and validates permissions for the supervisor.</div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<li>
<section class="nested-class-summary" id="nested-class-summary">
<h2>Nested Class Summary</h2>
<div class="inherited-list">
<h2 id="nested-classes-inherited-from-class-org.apache.storm.blobstore.BlobStore">Nested classes/interfaces inherited from class&nbsp;org.apache.storm.blobstore.<a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></h2>
<code><a href="../../blobstore/BlobStore.BlobStoreFileInputStream.html" title="class in org.apache.storm.blobstore">BlobStore.BlobStoreFileInputStream</a>, <a href="../../blobstore/BlobStore.BlobStoreFileOutputStream.html" title="class in org.apache.storm.blobstore">BlobStore.BlobStoreFileOutputStream</a>, <a href="../../blobstore/BlobStore.KeyTranslationIterator.html" title="class in org.apache.storm.blobstore">BlobStore.KeyTranslationIterator</a></code></div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li>
<section class="field-summary" id="field-summary">
<h2>Field Summary</h2>
<div class="inherited-list">
<h3 id="fields-inherited-from-class-org.apache.storm.blobstore.BlobStore">Fields inherited from class&nbsp;org.apache.storm.blobstore.<a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></h3>
<code><a href="../../blobstore/BlobStore.html#BASE_BLOBS_DIR_NAME">BASE_BLOBS_DIR_NAME</a></code></div>
</section>
</li>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li>
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">HdfsBlobStore</a>()</code></div>
<div class="col-last even-row-color">&nbsp;</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#blobExists(java.lang.String,javax.security.auth.Subject)" class="member-name-link">blobExists</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Checks if a blob exists.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../blobstore/AtomicOutputStream.html" title="class in org.apache.storm.blobstore">AtomicOutputStream</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#createBlob(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)" class="member-name-link">createBlob</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="../../generated/SettableBlobMeta.html" title="class in org.apache.storm.generated">SettableBlobMeta</a>&nbsp;meta,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Creates the blob.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#deleteBlob(java.lang.String,javax.security.auth.Subject)" class="member-name-link">deleteBlob</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Deletes the blob data and metadata.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#fullCleanup(long)" class="member-name-link">fullCleanup</a><wbr>(long&nbsp;age)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../blobstore/InputStreamWithMeta.html" title="class in org.apache.storm.blobstore">InputStreamWithMeta</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getBlob(java.lang.String,javax.security.auth.Subject)" class="member-name-link">getBlob</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Gets the InputStream to read the blob details.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../generated/ReadableBlobMeta.html" title="class in org.apache.storm.generated">ReadableBlobMeta</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getBlobMeta(java.lang.String,javax.security.auth.Subject)" class="member-name-link">getBlobMeta</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Gets the current version of metadata for a blob to be viewed by the user or downloaded by the supervisor.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getBlobReplication(java.lang.String,javax.security.auth.Subject)" class="member-name-link">getBlobReplication</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Gets the replication factor of the blob.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>long</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getLastBlobUpdateTime()" class="member-name-link">getLastBlobUpdateTime</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a>&lt;<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#listKeys()" class="member-name-link">listKeys</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns an iterator with all the list of keys currently available on the blob store.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#prepare(java.util.Map,java.lang.String,org.apache.storm.nimbus.NimbusInfo,org.apache.storm.nimbus.ILeaderElector)" class="member-name-link">prepare</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;conf,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;overrideBase,
<a href="../../nimbus/NimbusInfo.html" title="class in org.apache.storm.nimbus">NimbusInfo</a>&nbsp;nimbusInfo,
<a href="../../nimbus/ILeaderElector.html" title="interface in org.apache.storm.nimbus">ILeaderElector</a>&nbsp;leaderElector)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Allows us to initialize the blob store.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>protected void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#prepareInternal(java.util.Map,java.lang.String,org.apache.hadoop.conf.Configuration)" class="member-name-link">prepareInternal</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;conf,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;overrideBase,
org.apache.hadoop.conf.Configuration&nbsp;hadoopConf)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Allow a Hadoop Configuration to be passed for testing.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setBlobMeta(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)" class="member-name-link">setBlobMeta</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="../../generated/SettableBlobMeta.html" title="class in org.apache.storm.generated">SettableBlobMeta</a>&nbsp;meta,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Sets the metadata with renewed acls for the blob.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setLeaderElector(org.apache.storm.nimbus.ILeaderElector)" class="member-name-link">setLeaderElector</a><wbr>(<a href="../../nimbus/ILeaderElector.html" title="interface in org.apache.storm.nimbus">ILeaderElector</a>&nbsp;leaderElector)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Sets leader elector (only used by LocalFsBlobStore to help sync blobs between Nimbi.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#shutdown()" class="member-name-link">shutdown</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../blobstore/AtomicOutputStream.html" title="class in org.apache.storm.blobstore">AtomicOutputStream</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#updateBlob(java.lang.String,javax.security.auth.Subject)" class="member-name-link">updateBlob</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Updates the blob data.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#updateBlobReplication(java.lang.String,int,javax.security.auth.Subject)" class="member-name-link">updateBlobReplication</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
int&nbsp;replication,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Modifies the replication factor of the blob.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#updateLastBlobUpdateTime()" class="member-name-link">updateLastBlobUpdateTime</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Updates the last update time of existing blobs in the blobstore to the current time.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#validateBlobUpdateTime()" class="member-name-link">validateBlobUpdateTime</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Validates that the blob update time of the blobstore is up to date with the current existing blobs.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#writeMetadata(java.lang.String,org.apache.storm.generated.SettableBlobMeta)" class="member-name-link">writeMetadata</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="../../generated/SettableBlobMeta.html" title="class in org.apache.storm.generated">SettableBlobMeta</a>&nbsp;meta)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.apache.storm.blobstore.BlobStore">Methods inherited from class&nbsp;org.apache.storm.blobstore.<a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></h3>
<code><a href="../../blobstore/BlobStore.html#close()">close</a>, <a href="../../blobstore/BlobStore.html#createBlob(java.lang.String,byte%5B%5D,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">createBlob</a>, <a href="../../blobstore/BlobStore.html#createBlob(java.lang.String,java.io.InputStream,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">createBlob</a>, <a href="../../blobstore/BlobStore.html#filterAndListKeys(org.apache.storm.blobstore.KeyFilter)">filterAndListKeys</a>, <a href="../../blobstore/BlobStore.html#readBlob(java.lang.String,javax.security.auth.Subject)">readBlob</a>, <a href="../../blobstore/BlobStore.html#readBlobTo(java.lang.String,java.io.OutputStream,javax.security.auth.Subject)">readBlobTo</a>, <a href="../../blobstore/BlobStore.html#startSyncBlobs()">startSyncBlobs</a>, <a href="../../blobstore/BlobStore.html#storedTopoIds()">storedTopoIds</a>, <a href="../../blobstore/BlobStore.html#updateBlob(java.lang.String,byte%5B%5D,javax.security.auth.Subject)">updateBlob</a>, <a href="../../blobstore/BlobStore.html#validateKey(java.lang.String)">validateKey</a></code></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li>
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;()">
<h3>HdfsBlobStore</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">HdfsBlobStore</span>()</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="prepare(java.util.Map,java.lang.String,org.apache.storm.nimbus.NimbusInfo,org.apache.storm.nimbus.ILeaderElector)">
<h3>prepare</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">prepare</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;conf,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;overrideBase,
<a href="../../nimbus/NimbusInfo.html" title="class in org.apache.storm.nimbus">NimbusInfo</a>&nbsp;nimbusInfo,
<a href="../../nimbus/ILeaderElector.html" title="interface in org.apache.storm.nimbus">ILeaderElector</a>&nbsp;leaderElector)</span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#prepare(java.util.Map,java.lang.String,org.apache.storm.nimbus.NimbusInfo,org.apache.storm.nimbus.ILeaderElector)">BlobStore</a></code></span></div>
<div class="block">Allows us to initialize the blob store.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#prepare(java.util.Map,java.lang.String,org.apache.storm.nimbus.NimbusInfo,org.apache.storm.nimbus.ILeaderElector)">prepare</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>conf</code> - The storm configuration</dd>
<dd><code>overrideBase</code> - The directory path to store the blobs</dd>
<dd><code>nimbusInfo</code> - Contains the nimbus host, port and leadership information</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="prepareInternal(java.util.Map,java.lang.String,org.apache.hadoop.conf.Configuration)">
<h3>prepareInternal</h3>
<div class="member-signature"><span class="modifiers">protected</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">prepareInternal</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;conf,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;overrideBase,
org.apache.hadoop.conf.Configuration&nbsp;hadoopConf)</span></div>
<div class="block">Allow a Hadoop Configuration to be passed for testing. If it's null then the hadoop configs
must be in your classpath.</div>
</section>
</li>
<li>
<section class="detail" id="createBlob(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">
<h3>createBlob</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../../blobstore/AtomicOutputStream.html" title="class in org.apache.storm.blobstore">AtomicOutputStream</a></span>&nbsp;<span class="element-name">createBlob</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="../../generated/SettableBlobMeta.html" title="class in org.apache.storm.generated">SettableBlobMeta</a>&nbsp;meta,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyAlreadyExistsException.html" title="class in org.apache.storm.generated">KeyAlreadyExistsException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#createBlob(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Creates the blob.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#createBlob(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">createBlob</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>meta</code> - Metadata which contains the acls information</dd>
<dd><code>who</code> - Is the subject creating the blob</dd>
<dt>Returns:</dt>
<dd>AtomicOutputStream returns a stream into which the data can be written</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyAlreadyExistsException.html" title="class in org.apache.storm.generated">KeyAlreadyExistsException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="updateBlob(java.lang.String,javax.security.auth.Subject)">
<h3>updateBlob</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../../blobstore/AtomicOutputStream.html" title="class in org.apache.storm.blobstore">AtomicOutputStream</a></span>&nbsp;<span class="element-name">updateBlob</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#updateBlob(java.lang.String,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Updates the blob data.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#updateBlob(java.lang.String,javax.security.auth.Subject)">updateBlob</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>who</code> - Is the subject having the write privilege for the blob</dd>
<dt>Returns:</dt>
<dd>AtomicOutputStream returns a stream into which the data can be written</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBlobMeta(java.lang.String,javax.security.auth.Subject)">
<h3>getBlobMeta</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../../generated/ReadableBlobMeta.html" title="class in org.apache.storm.generated">ReadableBlobMeta</a></span>&nbsp;<span class="element-name">getBlobMeta</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#getBlobMeta(java.lang.String,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Gets the current version of metadata for a blob to be viewed by the user or downloaded by the supervisor.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#getBlobMeta(java.lang.String,javax.security.auth.Subject)">getBlobMeta</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>who</code> - Is the subject having the read privilege for the blob</dd>
<dt>Returns:</dt>
<dd>AtomicOutputStream returns a stream into which the data can be written</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLeaderElector(org.apache.storm.nimbus.ILeaderElector)">
<h3>setLeaderElector</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">setLeaderElector</span><wbr><span class="parameters">(<a href="../../nimbus/ILeaderElector.html" title="interface in org.apache.storm.nimbus">ILeaderElector</a>&nbsp;leaderElector)</span></div>
<div class="block">Sets leader elector (only used by LocalFsBlobStore to help sync blobs between Nimbi.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#setLeaderElector(org.apache.storm.nimbus.ILeaderElector)">setLeaderElector</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>leaderElector</code> - the leader elector</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setBlobMeta(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">
<h3>setBlobMeta</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">setBlobMeta</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="../../generated/SettableBlobMeta.html" title="class in org.apache.storm.generated">SettableBlobMeta</a>&nbsp;meta,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#setBlobMeta(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Sets the metadata with renewed acls for the blob.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#setBlobMeta(java.lang.String,org.apache.storm.generated.SettableBlobMeta,javax.security.auth.Subject)">setBlobMeta</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>meta</code> - Metadata which contains the updated acls information</dd>
<dd><code>who</code> - Is the subject having the write privilege for the blob</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteBlob(java.lang.String,javax.security.auth.Subject)">
<h3>deleteBlob</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">deleteBlob</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#deleteBlob(java.lang.String,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Deletes the blob data and metadata.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#deleteBlob(java.lang.String,javax.security.auth.Subject)">deleteBlob</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>who</code> - Is the subject having write privilege for the blob</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBlob(java.lang.String,javax.security.auth.Subject)">
<h3>getBlob</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../../blobstore/InputStreamWithMeta.html" title="class in org.apache.storm.blobstore">InputStreamWithMeta</a></span>&nbsp;<span class="element-name">getBlob</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#getBlob(java.lang.String,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Gets the InputStream to read the blob details.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#getBlob(java.lang.String,javax.security.auth.Subject)">getBlob</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>who</code> - Is the subject having the read privilege for the blob</dd>
<dt>Returns:</dt>
<dd>InputStreamWithMeta has the additional file length and version information</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="blobExists(java.lang.String,javax.security.auth.Subject)">
<h3>blobExists</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">blobExists</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></span></div>
<div class="block">Checks if a blob exists.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>key</code> - blobstore key</dd>
<dd><code>who</code> - subject</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code> - if authorization is failed</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="listKeys()">
<h3>listKeys</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a>&lt;<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</span>&nbsp;<span class="element-name">listKeys</span>()</div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#listKeys()">BlobStore</a></code></span></div>
<div class="block">Returns an iterator with all the list of keys currently available on the blob store.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#listKeys()">listKeys</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Returns:</dt>
<dd><code>Iterator&lt;String&gt;</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="shutdown()">
<h3>shutdown</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">shutdown</span>()</div>
</section>
</li>
<li>
<section class="detail" id="getBlobReplication(java.lang.String,javax.security.auth.Subject)">
<h3>getBlobReplication</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">getBlobReplication</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#getBlobReplication(java.lang.String,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Gets the replication factor of the blob.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#getBlobReplication(java.lang.String,javax.security.auth.Subject)">getBlobReplication</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>who</code> - Is the subject having the read privilege for the blob</dd>
<dt>Returns:</dt>
<dd>BlobReplication object containing the replication factor for the blob</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="updateBlobReplication(java.lang.String,int,javax.security.auth.Subject)">
<h3>updateBlobReplication</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">updateBlobReplication</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
int&nbsp;replication,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/Subject.html" title="class or interface in javax.security.auth" class="external-link">Subject</a>&nbsp;who)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#updateBlobReplication(java.lang.String,int,javax.security.auth.Subject)">BlobStore</a></code></span></div>
<div class="block">Modifies the replication factor of the blob.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#updateBlobReplication(java.lang.String,int,javax.security.auth.Subject)">updateBlobReplication</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - Key for the blob</dd>
<dd><code>replication</code> - The replication factor the blob has to be set</dd>
<dd><code>who</code> - Is the subject having the update privilege for the blob</dd>
<dt>Returns:</dt>
<dd>BlobReplication object containing the updated replication factor for the blob</dd>
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="writeMetadata(java.lang.String,org.apache.storm.generated.SettableBlobMeta)">
<h3>writeMetadata</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">writeMetadata</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;key,
<a href="../../generated/SettableBlobMeta.html" title="class in org.apache.storm.generated">SettableBlobMeta</a>&nbsp;meta)</span>
throws <span class="exceptions"><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a>,
<a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code><a href="../../generated/AuthorizationException.html" title="class in org.apache.storm.generated">AuthorizationException</a></code></dd>
<dd><code><a href="../../generated/KeyNotFoundException.html" title="class in org.apache.storm.generated">KeyNotFoundException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="fullCleanup(long)">
<h3>fullCleanup</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">fullCleanup</span><wbr><span class="parameters">(long&nbsp;age)</span>
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLastBlobUpdateTime()">
<h3>getLastBlobUpdateTime</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">long</span>&nbsp;<span class="element-name">getLastBlobUpdateTime</span>()
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="updateLastBlobUpdateTime()">
<h3>updateLastBlobUpdateTime</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">updateLastBlobUpdateTime</span>()
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#updateLastBlobUpdateTime()">BlobStore</a></code></span></div>
<div class="block">Updates the last update time of existing blobs in the blobstore to the current time.</div>
<dl class="notes">
<dt>Overrides:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#updateLastBlobUpdateTime()">updateLastBlobUpdateTime</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code> - on any error</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="validateBlobUpdateTime()">
<h3>validateBlobUpdateTime</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">validateBlobUpdateTime</span>()
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div>
<div class="block"><span class="descfrm-type-label">Description copied from class:&nbsp;<code><a href="../../blobstore/BlobStore.html#validateBlobUpdateTime()">BlobStore</a></code></span></div>
<div class="block">Validates that the blob update time of the blobstore is up to date with the current existing blobs.</div>
<dl class="notes">
<dt>Overrides:</dt>
<dd><code><a href="../../blobstore/BlobStore.html#validateBlobUpdateTime()">validateBlobUpdateTime</a></code>&nbsp;in class&nbsp;<code><a href="../../blobstore/BlobStore.html" title="class in org.apache.storm.blobstore">BlobStore</a></code></dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code> - on any error</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &#169; 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>