summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/ClientJob.java
blob: 2b0bf1693de8865fa92f9db710dc800fa3d75f60 (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
30
31
32
33
34
35
36
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;
	public static int LSJOB = 7;

	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;
	}

	@Override
	public String toString() {
		return "ClientJob [JobType=" + JobType + ", gearmanJob=" + gearmanJob
				+ "]";
	}
}