@InterfaceAudience.Public public final class CoprocessorDescriptorBuilder extends Object
CoprocessorDescriptor
Modifier and Type | Class and Description |
---|---|
private static class |
CoprocessorDescriptorBuilder.CoprocessorDescriptorImpl |
Modifier and Type | Field and Description |
---|---|
private String |
className |
private String |
jarPath |
private int |
priority |
private Map<String,String> |
properties |
Modifier | Constructor and Description |
---|---|
private |
CoprocessorDescriptorBuilder(String className) |
Modifier and Type | Method and Description |
---|---|
CoprocessorDescriptor |
build() |
static CoprocessorDescriptorBuilder |
newBuilder(String className) |
static CoprocessorDescriptor |
of(String className) |
CoprocessorDescriptorBuilder |
setJarPath(String jarPath) |
CoprocessorDescriptorBuilder |
setPriority(int priority) |
CoprocessorDescriptorBuilder |
setProperties(Map<String,String> properties) |
CoprocessorDescriptorBuilder |
setProperty(String key,
String value) |
private int priority
private Map<String,String> properties
private CoprocessorDescriptorBuilder(String className)
public static CoprocessorDescriptor of(String className)
public static CoprocessorDescriptorBuilder newBuilder(String className)
public CoprocessorDescriptorBuilder setJarPath(String jarPath)
public CoprocessorDescriptorBuilder setPriority(int priority)
public CoprocessorDescriptorBuilder setProperty(String key, String value)
public CoprocessorDescriptorBuilder setProperties(Map<String,String> properties)
public CoprocessorDescriptor build()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.