summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/ClientJob.java
diff options
context:
space:
mode:
Diffstat (limited to 'gearman/controllerWorker/ControllerWorker/ClientJob.java')
-rw-r--r--gearman/controllerWorker/ControllerWorker/ClientJob.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/ClientJob.java b/gearman/controllerWorker/ControllerWorker/ClientJob.java
new file mode 100644
index 0000000..021ab91
--- /dev/null
+++ b/gearman/controllerWorker/ControllerWorker/ClientJob.java
@@ -0,0 +1,34 @@
+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;
+
+ 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;
+ }
+} \ No newline at end of file