public class TestProcessorContext extends Object implements Processor.Context
Processor.Context
.Constructor and Description |
---|
TestProcessorContext()
Constructor with default values.
|
Modifier and Type | Method and Description |
---|---|
int |
globalProcessorIndex()
Returns the index of the processor among all the processors created for
this vertex on all nodes: its unique cluster-wide index.
|
JetInstance |
jetInstance()
Returns the current Jet instance
|
com.hazelcast.logging.ILogger |
logger()
Return a logger for the processor
|
ProcessingGuarantee |
processingGuarantee()
Returns the guarantee for current job.
|
TestProcessorContext |
setGlobalProcessorIndex(int globalProcessorIndex)
Set the global processor index
|
TestProcessorContext |
setJetInstance(JetInstance jetInstance)
Set the jet instance.
|
TestProcessorContext |
setLogger(com.hazelcast.logging.ILogger logger)
Set the logger.
|
TestProcessorContext |
setProcessingGuarantee(ProcessingGuarantee processingGuarantee)
Sets the processing guarantee.
|
TestProcessorContext |
setVertexName(String vertexName)
Set the vertex name.
|
String |
vertexName()
Returns the name of the vertex associated with this processor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
snapshottingEnabled
public TestProcessorContext()
@Nonnull public JetInstance jetInstance()
Processor.Context
jetInstance
in interface Processor.Context
public TestProcessorContext setJetInstance(JetInstance jetInstance)
@Nonnull public com.hazelcast.logging.ILogger logger()
Processor.Context
logger
in interface Processor.Context
public TestProcessorContext setLogger(@Nonnull com.hazelcast.logging.ILogger logger)
@Nonnull public String vertexName()
Processor.Context
vertexName
in interface Processor.Context
public TestProcessorContext setVertexName(@Nonnull String vertexName)
public int globalProcessorIndex()
Processor.Context
globalProcessorIndex
in interface Processor.Context
public TestProcessorContext setGlobalProcessorIndex(int globalProcessorIndex)
public ProcessingGuarantee processingGuarantee()
Processor.Context
processingGuarantee
in interface Processor.Context
public TestProcessorContext setProcessingGuarantee(ProcessingGuarantee processingGuarantee)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.