From 0ec8481c10cd8277d84c7c1a785483a0a739e5a0 Mon Sep 17 00:00:00 2001 From: abranson Date: Thu, 4 Aug 2011 00:42:34 +0200 Subject: More code cleanup: Refactored Entity Proxy Subscription to handle generics better Rewrote RemoteMap to use TreeMap instead of the internal array for order. It now sorts its keys by number if they parse, else as strings. Removed a no-longer-in-progress outcome form class --- source/com/c2kernel/entity/agent/Job.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) mode change 100755 => 100644 source/com/c2kernel/entity/agent/Job.java (limited to 'source/com/c2kernel/entity/agent/Job.java') diff --git a/source/com/c2kernel/entity/agent/Job.java b/source/com/c2kernel/entity/agent/Job.java old mode 100755 new mode 100644 index 12423d6..b5274ec --- a/source/com/c2kernel/entity/agent/Job.java +++ b/source/com/c2kernel/entity/agent/Job.java @@ -32,7 +32,7 @@ public class Job implements C2KLocalObject private int mPossibleTransition; private int mCurrentState; - + private int mTargetState; private String mStepName; @@ -61,7 +61,7 @@ public class Job implements C2KLocalObject } /*************************************************************************** - * + * **************************************************************************/ public Job(int sysKey, String path, int transition, int currState, int targState, String stepName, CastorHashMap actProps, String stepType, String agentName) { @@ -197,7 +197,8 @@ public class Job implements C2KLocalObject return mID; } - public String getName() + @Override + public String getName() { return mName; } @@ -208,7 +209,8 @@ public class Job implements C2KLocalObject mName = String.valueOf(id); } - public void setName(String name) + @Override + public void setName(String name) { mName = name; try @@ -226,7 +228,8 @@ public class Job implements C2KLocalObject item = null; } - public String getClusterType() + @Override + public String getClusterType() { return ClusterStorage.JOB; } @@ -322,7 +325,7 @@ public class Job implements C2KLocalObject /** * Returns the actType. - * + * * @return String */ public String getStepType() @@ -332,7 +335,7 @@ public class Job implements C2KLocalObject /** * Sets the actType. - * + * * @param actType * The actType to set */ -- cgit v1.2.3