public static class ProcessorMetaSupplier.SpecificMemberPms extends Object implements ProcessorMetaSupplier, IdentifiedDataSerializable
ProcessorSupplier
on a node with given Address.ProcessorMetaSupplier.Context, ProcessorMetaSupplier.ExpectNothingProcessorSupplier, ProcessorMetaSupplier.SpecificMemberPms| Modifier and Type | Method and Description |
|---|---|
Function<? super Address,? extends ProcessorSupplier> |
get(List<Address> addresses)
Called to create a mapping from member
Address to the
ProcessorSupplier that will be sent to that member. |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
void |
init(ProcessorMetaSupplier.Context context)
Called on the cluster member that receives the client request, after
deserializing the meta-supplier instance.
|
int |
preferredLocalParallelism()
Returns the local parallelism the vertex should be configured with.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, closeIsCooperative, forceTotalParallelismOne, forceTotalParallelismOne, forceTotalParallelismOne, forceTotalParallelismOne, forceTotalParallelismOne, getRequiredPermission, getTags, initIsCooperative, of, of, of, of, of, of, of, of, preferLocalParallelismOne, preferLocalParallelismOne, preferLocalParallelismOne, preferLocalParallelismOnepublic void init(@Nonnull ProcessorMetaSupplier.Context context) throws Exception
ProcessorMetaSupplierinit in interface ProcessorMetaSupplierException@Nonnull public Function<? super Address,? extends ProcessorSupplier> get(@Nonnull List<Address> addresses)
ProcessorMetaSupplierAddress to the
ProcessorSupplier that will be sent to that member. Jet calls
this method with a list of all cluster members' addresses and the
returned function must be a mapping that returns a non-null value for
each given address.
The method will be called once per job execution on the job's
coordinator member. init() will have already
been called.
get in interface ProcessorMetaSupplierpublic int preferredLocalParallelism()
ProcessorMetaSupplierVertex.LOCAL_PARALLELISM_USE_DEFAULT.preferredLocalParallelism in interface ProcessorMetaSupplierpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableCopyright © 2022 Hazelcast, Inc.. All rights reserved.