com.hazelcast.client.proxy
Class ClientMapReduceProxy
java.lang.Object
com.hazelcast.client.spi.ClientProxy
com.hazelcast.client.proxy.ClientMapReduceProxy
- All Implemented Interfaces:
- DistributedObject, JobTracker
public class ClientMapReduceProxy
- extends ClientProxy
- implements JobTracker
Methods inherited from class com.hazelcast.client.spi.ClientProxy |
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invoke, invokeInterruptibly, listen, listen, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObject |
ClientMapReduceProxy
public ClientMapReduceProxy(String serviceName,
String objectName)
onDestroy
protected void onDestroy()
- Description copied from class:
ClientProxy
- Called before proxy is destroyed.
Overriding implementations should clean/release resources created during initialization.
- Overrides:
onDestroy
in class ClientProxy
newJob
public <K,V> Job<K,V> newJob(KeyValueSource<K,V> source)
- Description copied from interface:
JobTracker
- Builds a
Job
instance for the given KeyValueSource
instance. The returning
implementation is depending on the HazelcastInstance
that was creating
the JobTracker.
Caution: Do not use the JobTracker with data structures of other
HazelcastInstance
instances than the one used for creation of the
JobTracker. Unexpected results may happen!
- Specified by:
newJob
in interface JobTracker
- Type Parameters:
K
- type of the keyV
- type of the value- Parameters:
source
- data source the created Job should work on
- Returns:
- instance of the Job bound to the given KeyValueSource
getTrackableJob
public <V> TrackableJob<V> getTrackableJob(String jobId)
- Description copied from interface:
JobTracker
- Returns an implementation of
TrackableJob
if the job or null if the job id is not available
or is already finished.
- Specified by:
getTrackableJob
in interface JobTracker
- Type Parameters:
V
- type of the resulting value- Parameters:
jobId
- job id to search the TrackableJob for
- Returns:
- a trackable job for given job id or null if job id is not available
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.