summaryrefslogblamecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/ClientJob.java
blob: 2b0bf1693de8865fa92f9db710dc800fa3d75f60 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                         
                                          
                                    
 


                                      
                                                              



                                             






                                           





                                                                                     
 
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
				+ "]";
	}
}