/** * Set the outgoing message value data from the option * * @param option EnumConfOption option to use * @param conf Configuration */ public void setOutgoingMessage(BooleanConfOption option, Configuration conf) { outgoingMessage = option.get(conf); }
/** * Check whether to enable heap memory supervisor thread * * @return true if jmap dumper is reactively enabled */ public boolean isReactiveJmapHistogramDumpEnabled() { return REACTIVE_JMAP_ENABLE.get(this); }
/** * Check if VertexOutputFormat is thread-safe * * @return True iff VertexOutputFormat is thread-safe */ public final boolean vertexOutputFormatThreadSafe() { return VERTEX_OUTPUT_FORMAT_THREAD_SAFE.get(this); }
/** * Use the log thread layout option? * * @return True if use the log thread layout option, false otherwise */ public boolean useLogThreadLayout() { return LOG_THREAD_LAYOUT.get(this); }
/** * Use message size encoding? This feature may help with complex message * objects. * * @return Whether to use message size encoding */ public boolean useMessageSizeEncoding() { return USE_MESSAGE_SIZE_ENCODING.get(this); }
/** * Was ZooKeeper provided externally? * * @return true iff was zookeeper is external */ public boolean isZookeeperExternal() { return ZOOKEEPER_IS_EXTERNAL.get(this); }
/** * Check if we want to prioritize input splits which reside on the host. * * @return True iff we want to use input split locality */ public boolean useInputSplitLocality() { return USE_INPUT_SPLIT_LOCALITY.get(this); }
/** * Set the edge value data from the option * * @param option EnumConfOption option to use * @param conf Configuration */ public void setEdgeValue(BooleanConfOption option, Configuration conf) { edgeValue = option.get(conf); }
/** * Use authentication? (if supported) * * @return True if should authenticate, false otherwise */ public boolean authenticate() { return AUTHENTICATE.get(this); }
/** * Get option whether to create a source vertex present only in edge input * * @return CREATE_EDGE_SOURCE_VERTICES option */ public boolean getCreateSourceVertex() { return CREATE_EDGE_SOURCE_VERTICES.get(this); }
/** * Check if value is false * * @param conf Configuration * @return true if value is set and true, false otherwise */ public boolean isTrue(Configuration conf) { return get(conf); }
/** * Set the vertex value data from the option * * @param option EnumConfOption option to use * @param conf Configuration */ public void setVertexValue(BooleanConfOption option, Configuration conf) { vertexValue = option.get(conf); }
/** * Check if output should be done during computation * * @return True iff output should be done during computation */ public final boolean doOutputDuringComputation() { return DO_OUTPUT_DURING_COMPUTATION.get(this); }
/** * Whether to create a vertex that doesn't exist when it receives messages. * This only affects DefaultVertexResolver. * * @return true if we should create non existent vertices that get messages. */ public final boolean getResolverCreateVertexOnMessages() { return RESOLVER_CREATE_VERTEX_ON_MSGS.get(this); }
/** * Set the vertex id data from the option * * @param option EnumConfOption option to use * @param conf Configuration */ public void setVertexId(BooleanConfOption option, Configuration conf) { vertexId = option.get(conf); }
/** * Check whether to track job progress on client or not * * @return True if job progress should be tracked on client */ public boolean trackJobProgressOnClient() { return TRACK_JOB_PROGRESS_ON_CLIENT.get(this); }
private static boolean useFullDigraphTests(GiraphConfiguration conf) { return USE_FULL_GIRAPH_ENV_IN_TESTS.get(conf) || System.getProperty("test_setup.UseFullGiraphEnvInTests") != null; }
@Override public void setConf(ImmutableClassesGiraphConfiguration configuration) { sleepMillis = GiraphConstants.JMAP_SLEEP_MILLIS.get(configuration); linesToPrint = GiraphConstants.JMAP_PRINT_LINES.get(configuration); liveObjectsOnly = GiraphConstants.JMAP_LIVE_ONLY.get(configuration); }
/** * Constructor * * @param conf Configuration */ public SaslServerHandler( Configuration conf) throws IOException { SaslNettyServer.init(conf); setupSecretManager(conf); closeFirstRequest = NETTY_SIMULATE_FIRST_REQUEST_CLOSED.get(conf); }
@Override public final void initialize(InputSplit inputSplit, TaskAttemptContext context) throws IOException { totalRecords = GeneratedVertexReader.READER_VERTICES.get(getConf()); reverseIdOrder = GeneratedVertexReader.REVERSE_ID_ORDER.get(getConf()); this.inputSplit = (BspInputSplit) inputSplit; }