|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.jini.master.TaskMaster.JobState
public static class TaskMaster.JobState
State describing the job to be executed. The various properties are all
defined by TaskMaster.ConfigurationOptions.
| Field Summary | |
|---|---|
ServiceMap |
aggregatorServiceMap
The mapping of aggregators onto the IRemoteExecutors on
which that aggregator will execute. |
ServicesTemplate |
aggregatorsTemplate
The ServicesTemplate describing the types of services and the
minimum #of services for aggregating asynchronous index writes
performed by the clients. |
ServiceMap |
clientServiceMap
The mapping of clients onto the IRemoteExecutors on which
that client will execute. |
ServicesTemplate |
clientsTemplate
The ServicesTemplate describing the types of services and the
minimum #of services to which the clients will be distributed for
remote execution. |
String |
component
The name component in the jini Configuration whose
values will be used to configure the TaskMaster.JobState. |
boolean |
forceOverflow
true iff overflow will be forced on the data services
after the client tasks are done. |
protected Map<Integer,Future<?>> |
futures
A map giving the Future for each client. |
File |
indexDumpDir
The directory into which scheduled dumps of the index partition metadata will be written by a DumpFederation.ScheduledDumpTask (optional). |
String |
indexDumpNamespace
The namespace to be used for the scheduled dumps of the index partition metadata (optional). |
String |
jobName
The job name. |
int |
naggregators
The #of aggregator tasks. |
int |
nclients
The #of client tasks. |
long |
servicesDiscoveryTimeout
|
ServicesTemplate[] |
servicesTemplates
An array of zero or more ServicesTemplate describing the
types of services, and the minimum #of services of each type, that
must be discovered before the job may begin. |
| Constructor Summary | |
|---|---|
protected |
TaskMaster.JobState(String component,
net.jini.config.Configuration config)
|
| Method Summary | |
|---|---|
String |
getClientZPath(JiniFederation fed,
int clientNum)
Return the zpath to the node which corresponds to the specified client task. |
long |
getElapsedMillis()
Elapsed run time for the job in milliseconds. |
String |
getJobClassZPath(JiniFederation fed)
Return the zpath of the node for all jobs which are instances of the configured master's class. |
String |
getJobZPath(JiniFederation fed)
Return the zpath to the znode which corresponds to the job which is being executed. |
String |
getLockNodeZPath(JiniFederation fed,
int clientNum)
Return the zpath of the locknode for the specified client task. |
boolean |
isResumedJob()
Return true iff an existing job is being resumed. |
String |
toString()
|
protected void |
toString(StringBuilder sb)
Allows extension of toString() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient Map<Integer,Future<?>> futures
Future for each client. The keys of the map
are the client numbers in [0:N-1].
TaskMaster.startClients(),
#awaitAll(Map),
#cancelAll(Map, boolean)public final String component
Configuration whose
values will be used to configure the TaskMaster.JobState. This defaults
to the name of the concrete TaskMaster instance. You may
override this value using -Dbigdata.component=foo on
the command line. This makes it possible to have multiple
parameterizations for the same master class in a single
Configuration file.
public final String jobName
TaskMaster.ConfigurationOptions.JOB_NAMEpublic final int nclients
TaskMaster.ConfigurationOptions.NCLIENTSpublic final ServicesTemplate clientsTemplate
ServicesTemplate describing the types of services and the
minimum #of services to which the clients will be distributed for
remote execution.
TaskMaster.ConfigurationOptions.CLIENTS_TEMPLATEpublic final int naggregators
TaskMaster.ConfigurationOptions.NAGGREGATORSpublic final ServicesTemplate aggregatorsTemplate
ServicesTemplate describing the types of services and the
minimum #of services for aggregating asynchronous index writes
performed by the clients.
TaskMaster.ConfigurationOptions.AGGREGATORS_TEMPLATEpublic final ServicesTemplate[] servicesTemplates
ServicesTemplate describing the
types of services, and the minimum #of services of each type, that
must be discovered before the job may begin.
TaskMaster.ConfigurationOptions.SERVICES_TEMPLATESpublic final long servicesDiscoveryTimeout
ConfigurationOptions#AWAIT_SERVICES_TIMEOUT}public final boolean forceOverflow
true iff overflow will be forced on the data services
after the client tasks are done.
TaskMaster.ConfigurationOptions.FORCE_OVERFLOWpublic final File indexDumpDir
DumpFederation.ScheduledDumpTask (optional).
TaskMaster.ConfigurationOptions.INDEX_DUMP_DIRpublic final String indexDumpNamespace
TaskMaster.ConfigurationOptions.INDEX_DUMP_NAMESPACEpublic final ServiceMap clientServiceMap
IRemoteExecutors on which
that client will execute.
public final ServiceMap aggregatorServiceMap
IRemoteExecutors on
which that aggregator will execute.
| Constructor Detail |
|---|
protected TaskMaster.JobState(String component,
net.jini.config.Configuration config)
throws net.jini.config.ConfigurationException
net.jini.config.ConfigurationException| Method Detail |
|---|
public boolean isResumedJob()
true iff an existing job is being resumed.
public long getElapsedMillis()
protected void toString(StringBuilder sb)
toString()
sb - public String toString()
toString in class Objectpublic final String getJobClassZPath(JiniFederation fed)
componentpublic final String getJobZPath(JiniFederation fed)
TaskMaster.JobState.
public final String getClientZPath(JiniFederation fed,
int clientNum)
ZLocks used by the client and
scoped to its work should be created as children of this zpath.
clientNum - The client number.TaskMaster.ConfigurationOptions.JOB_NAME
public final String getLockNodeZPath(JiniFederation fed,
int clientNum)
ZLock
which permits it to run the task. This prevents concurrent execution
of the task for the specified client in the event that more than one
master is running for the same TaskMaster.JobState.
clientNum - The client number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||