public class JobStateTracker extends Object
Constructor and Description |
---|
JobStateTracker(String node,
org.apache.curator.framework.CuratorFramework zk,
boolean nodeIsTracker,
String job_trackingpath)
Constructor for a new node -- takes the jobid of an existing job
|
Modifier and Type | Method and Description |
---|---|
void |
create()
Create the parent znode for this job state.
|
void |
delete() |
String |
getJobID()
Get the jobid for this tracking node
|
static List<String> |
getTrackingJobs(org.apache.hadoop.conf.Configuration conf,
org.apache.curator.framework.CuratorFramework zk) |
String |
makeTrackingJobZnode(String nodename)
Make a ZK path to an existing tracking node
|
String |
makeTrackingZnode()
Make a ZK path to a new tracking node
|
public void create() throws IOException
IOException
public void delete() throws IOException
IOException
public String getJobID() throws IOException
IOException
public String makeTrackingZnode()
public String makeTrackingJobZnode(String nodename)
public static List<String> getTrackingJobs(org.apache.hadoop.conf.Configuration conf, org.apache.curator.framework.CuratorFramework zk) throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.