summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/ClientJob.java
blob: 549220859c127d6f157a987f9d1834ef85ff4209 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package ControllerWorker;

import org.gearman.client.GearmanJob;

public class ClientJob {
	public static int WOLJOB = 0;
	public static int PINGJOB = 1;
	public static int OSJOB = 2;
	public static int WHOJOB = 3;
	public static int PSJOB = 4;
	public static int RESTARTJOB = 5;
	public static int SHUTDOWNJOB = 6;

	private int JobType;
	private GearmanJob gearmanJob;

	public ClientJob(int jobType, GearmanJob gearmanJob) {
		this.JobType = jobType;
		this.gearmanJob = gearmanJob;
	}

	public int getJobType() {
		return JobType;
	}

	public GearmanJob getGearmanJob() {
		return gearmanJob;
	}
}