Github user keith-turner commented on a diff in the pull request:
https://github.com/apache/accumulo/pull/51#discussion_r44697949
--- Diff:
core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.java
---
@@ -133,4 +137,39 @@ public int getMaxWriteThreads() {
public Durability getDurability() {
return durability;
}
+
+ /**
+ * Sets the name of the classloader context on this scanner. See the
administration chapter of the user manual for details on how to configure and
use
+ * classloader contexts.
+ *
+ * @param classLoaderContext
+ * name of the classloader context
+ * @throws NullPointerException
+ * if context is null
+ * @since 1.8.0
+ */
+ public void setClassLoaderContext(String classLoaderContext) {
+ Preconditions.checkNotNull(classLoaderContext, "context name cannot be
null");
+ this.classLoaderContext = classLoaderContext;
+ }
+
+ /**
+ * Clears the current classloader context set on this scanner
+ *
+ * @since 1.8.0
+ */
+ public void clearClassLoaderContext() {
--- End diff --
AFAICT this is not used in a test. A test that scans w/ a context, clears
the context, and then scans again would be nice.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---