public class TestProcessorMetaSupplierContext extends Object implements ProcessorMetaSupplier.Context
ProcessorMetaSupplier.Context implementation suitable to be used
 in tests.| Constructor and Description | 
|---|
| TestProcessorMetaSupplierContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkPermission(Permission permission)Check if the current Subject has the given permission granted (or implied). | 
| ClassLoader | classLoader()Processor classloader configured via  JobConfig.addCustomClasspath(String, String) | 
| DataConnectionService | dataConnectionService()A service to access  DataConnections in processors. | 
| long | executionId()Returns the job execution ID. | 
| HazelcastInstance | hazelcastInstance()Returns the current Hazelcast instance. | 
| boolean | isLightJob()Returns if this job runs as a light job, see  JetService.newLightJob(Pipeline). | 
| JetInstance | jetInstance()Deprecated.  | 
| JobConfig | jobConfig()Returns the  JobConfig. | 
| long | jobId()Returns the job ID. | 
| int | localParallelism()Returns the number of processors that each  ProcessorSupplierwill be asked to create once deserialized on each member. | 
| ILogger | logger()Returns a logger for the associated  ProcessorMetaSupplier. | 
| protected String | loggerName() | 
| long | maxProcessorAccumulatedRecords()Returns the maximum number of records that can be accumulated by any
 single  Processor. | 
| int | memberCount()Returns the number of members running this job. | 
| Map<Address,int[]> | partitionAssignment()Returns the partition assignment used by this job. | 
| ProcessingGuarantee | processingGuarantee()Returns the guarantee for current job. | 
| TestProcessorMetaSupplierContext | setClassLoader(ClassLoader classLoader) | 
| TestProcessorMetaSupplierContext | setExecutionId(long executionId)Sets the execution ID. | 
| TestProcessorMetaSupplierContext | setHazelcastInstance(HazelcastInstance instance)Sets the Hazelcast instance. | 
| TestProcessorMetaSupplierContext | setIsLightJob(boolean isLightJob)Sets the isLightJob flag. | 
| TestProcessorMetaSupplierContext | setJobConfig(JobConfig jobConfig)Sets the config for the job. | 
| TestProcessorMetaSupplierContext | setJobId(long jobId)Sets the job ID. | 
| TestProcessorMetaSupplierContext | setLocalParallelism(int localParallelism)Sets local parallelism. | 
| TestProcessorMetaSupplierContext | setLogger(ILogger logger)Sets the logger. | 
| void | setMaxProcessorAccumulatedRecords(long maxProcessorAccumulatedRecords) | 
| TestProcessorMetaSupplierContext | setPartitionAssignment(Map<Address,int[]> partitionAssignment)Sets the partition assignment. | 
| TestProcessorMetaSupplierContext | setProcessingGuarantee(ProcessingGuarantee processingGuarantee)Sets the processing guarantee. | 
| TestProcessorMetaSupplierContext | setTotalParallelism(int totalParallelism)Sets the total parallelism. | 
| TestProcessorMetaSupplierContext | setVertexName(String vertexName)Sets the vertex name. | 
| int | totalParallelism()Returns the total number of  Processors that will be created
 across the cluster. | 
| String | vertexName()Returns the name of the associated vertex. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsnapshottingEnabledprotected ILogger logger
@Nonnull public HazelcastInstance hazelcastInstance()
ProcessorMetaSupplier.ContexthazelcastInstance in interface ProcessorMetaSupplier.Context@Nonnull @Deprecated public JetInstance jetInstance()
ProcessorMetaSupplier.ContextjetInstance in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setHazelcastInstance(@Nonnull HazelcastInstance instance)
public long jobId()
ProcessorMetaSupplier.ContextjobId in interface ProcessorMetaSupplier.Contextpublic TestProcessorMetaSupplierContext setJobId(long jobId)
public long executionId()
ProcessorMetaSupplier.ContextexecutionId in interface ProcessorMetaSupplier.Contextpublic TestProcessorMetaSupplierContext setExecutionId(long executionId)
@Nonnull public JobConfig jobConfig()
ProcessorMetaSupplier.ContextJobConfig.jobConfig in interface ProcessorMetaSupplier.Contextpublic TestProcessorMetaSupplierContext setJobConfig(@Nonnull JobConfig jobConfig)
public int totalParallelism()
ProcessorMetaSupplier.ContextProcessors that will be created
 across the cluster. This number remains stable for entire job
 execution. It is equal to ProcessorMetaSupplier.Context.memberCount() * ProcessorMetaSupplier.Context.localParallelism().totalParallelism in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setTotalParallelism(int totalParallelism)
public int localParallelism()
ProcessorMetaSupplier.ContextProcessorSupplier
 will be asked to create once deserialized on each member. All
 members have equal local parallelism. The count doesn't change
 unless the job restarts.localParallelism in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setLocalParallelism(int localParallelism)
@Nonnull public ILogger logger()
ProcessorMetaSupplier.ContextProcessorMetaSupplier.logger in interface ProcessorMetaSupplier.Contextpublic TestProcessorMetaSupplierContext setLogger(@Nonnull ILogger logger)
public int memberCount()
ProcessorMetaSupplier.ContextNote that the value might be lower than current member count if members were added after the job started. The count doesn't change unless the job restarts.
memberCount in interface ProcessorMetaSupplier.Context@Nonnull public String vertexName()
ProcessorMetaSupplier.ContextvertexName in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setVertexName(@Nonnull String vertexName)
protected String loggerName()
public ProcessingGuarantee processingGuarantee()
ProcessorMetaSupplier.ContextprocessingGuarantee in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setProcessingGuarantee(@Nonnull ProcessingGuarantee processingGuarantee)
public long maxProcessorAccumulatedRecords()
ProcessorMetaSupplier.ContextProcessor. The returned value is strictly positive (>=1).maxProcessorAccumulatedRecords in interface ProcessorMetaSupplier.Contextpublic void setMaxProcessorAccumulatedRecords(long maxProcessorAccumulatedRecords)
public boolean isLightJob()
ProcessorMetaSupplier.ContextJetService.newLightJob(Pipeline).isLightJob in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setIsLightJob(boolean isLightJob)
public Map<Address,int[]> partitionAssignment()
ProcessorMetaSupplier.ContextpartitionAssignment in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setPartitionAssignment(Map<Address,int[]> partitionAssignment)
public ClassLoader classLoader()
ProcessorMetaSupplier.ContextJobConfig.addCustomClasspath(String, String)classLoader in interface ProcessorMetaSupplier.Contextpublic DataConnectionService dataConnectionService()
ProcessorMetaSupplier.ContextDataConnections in processors.dataConnectionService in interface ProcessorMetaSupplier.Context@Nonnull public TestProcessorMetaSupplierContext setClassLoader(ClassLoader classLoader)
public void checkPermission(Permission permission) throws AccessControlException
ProcessorMetaSupplier.ContextcheckPermission in interface ProcessorMetaSupplier.Contextpermission - Permission to be checkedAccessControlException - when the security is enabled and the checked permission is not implied for the current
         SubjectCopyright © 2024 Hazelcast, Inc.. All rights reserved.