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, wait
close, closeIsCooperative, forceTotalParallelismOne, forceTotalParallelismOne, forceTotalParallelismOne, forceTotalParallelismOne, forceTotalParallelismOne, getRequiredPermission, getTags, initIsCooperative, of, of, of, of, of, of, of, of, preferLocalParallelismOne, preferLocalParallelismOne, preferLocalParallelismOne, preferLocalParallelismOne
public void init(@Nonnull ProcessorMetaSupplier.Context context) throws Exception
ProcessorMetaSupplier
init
in interface ProcessorMetaSupplier
Exception
@Nonnull public Function<? super Address,? extends ProcessorSupplier> get(@Nonnull List<Address> addresses)
ProcessorMetaSupplier
Address
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 ProcessorMetaSupplier
public int preferredLocalParallelism()
ProcessorMetaSupplier
Vertex.LOCAL_PARALLELISM_USE_DEFAULT
.preferredLocalParallelism
in interface ProcessorMetaSupplier
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- 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
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2022 Hazelcast, Inc.. All rights reserved.