summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/ClientJob.java
blob: f9e4bbd23bda1e6cb7aa67372ab1fd177a557975 (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
37
package ControllerWorker;

import java.util.HashMap;

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 clientID;
	private int JobType;
	private GearmanJob gearmanJob;

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

	public int getClientID() {
		return clientID;
	}

	public int getJobType() {
		return JobType;
	}

	public GearmanJob getGearmanJob() {
		return gearmanJob;
	}
}