|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.controllers.sge.SgeController
public class SgeController
| Nested Class Summary | |
|---|---|
protected class |
SgeController.SgeEventHandler
|
| Field Summary | |
|---|---|
protected long |
advanceTime
|
static long |
ClockSkew
|
protected int |
completedJobs
|
protected boolean |
controllerEnabled
|
protected ImageDescriptor |
image
|
protected LoggingTool |
logger
|
static java.lang.String |
MasterConfig
|
protected boolean |
needAdvanceTime
|
protected boolean |
needReservation
|
protected int |
numReserveWorkers
|
protected SgeBatch |
poller
|
static java.lang.String |
PropertyMaster
|
static java.lang.String |
PropertyMasterIP
|
static java.lang.String |
PropertyMasterName
|
static java.lang.String |
PropertyReservationType
|
static java.lang.String |
PropertyWorker
|
protected int |
queuedJobs
|
protected java.lang.String |
root
|
protected ResourceType |
rtype
|
protected int |
runningJobs
|
protected java.lang.String |
sgeRoot
|
protected Slice |
slice
|
protected IServiceManager |
sm
|
static java.lang.String |
SubmitScriptName
|
static java.lang.String |
WorkerConfig
|
| Constructor Summary | |
|---|---|
SgeController()
|
|
| Method Summary | |
|---|---|
int |
addWorker()
|
protected void |
bid(long cycle)
This bidding policy bids for one master reservation and multiple worker reservations. |
void |
disableController()
|
void |
enableController()
|
IActor |
getActor()
|
protected long |
getAdvanceTime()
|
int |
getClusterSize()
|
int |
getCompletedJobs()
|
LoggingTool |
getLogger()
Returns the logger associated with the controller. |
Node |
getMasterNode()
|
int |
getNumReserveWorkers()
|
int |
getQueueLength()
|
int |
getRunningJobs()
|
Slice |
getSlice()
Returns the slice the controller belongs to. |
java.util.Vector<Node> |
getWorkerNodes()
|
void |
initialize()
Initializes the object. |
boolean |
isActive()
|
boolean |
isControllerEnabled()
|
void |
reset(java.util.Properties p)
De-serializes the object from the given properties list. |
java.util.Properties |
save()
Serializes the object into a properties list. |
void |
save(java.util.Properties p)
Serializes the object into the given properties list. |
void |
setActor(IActor sm)
Attach the actor |
void |
setNumReserveWorkers(int numReserveWorkers)
|
void |
setSlice(Slice slice)
Sets the slice this controller will be associated with. |
int |
submitJob()
|
void |
tick(long cycle)
Informs the load source that another cycle has passed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long ClockSkew
public static final java.lang.String SubmitScriptName
public static final java.lang.String WorkerConfig
public static final java.lang.String MasterConfig
public static final java.lang.String PropertyMasterIP
public static final java.lang.String PropertyMasterName
public static final java.lang.String PropertyReservationType
public static final java.lang.String PropertyMaster
public static final java.lang.String PropertyWorker
protected int queuedJobs
protected int runningJobs
protected int completedJobs
protected int numReserveWorkers
protected ImageDescriptor image
protected IServiceManager sm
protected ResourceType rtype
protected LoggingTool logger
protected boolean needAdvanceTime
protected boolean needReservation
protected long advanceTime
protected Slice slice
protected java.lang.String root
protected java.lang.String sgeRoot
protected boolean controllerEnabled
protected SgeBatch poller
| Constructor Detail |
|---|
public SgeController()
| Method Detail |
|---|
public void initialize()
throws java.lang.Exception
IInitialize
initialize in interface IInitializejava.lang.Exceptionprotected long getAdvanceTime()
public void tick(long cycle)
tick in interface ILoadSourcecycle - this cyclepublic void enableController()
public void disableController()
public boolean isControllerEnabled()
protected void bid(long cycle)
cycle - public Node getMasterNode()
public java.util.Vector<Node> getWorkerNodes()
public java.util.Properties save()
throws java.lang.Exception
ISerialize
save in interface ISerializejava.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
ISerialize
save in interface ISerializep - properties list to serialize the object into
java.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
ISerialize
reset in interface ISerializep - properties list containing the serialized version of
the object
java.lang.Exceptionpublic int getQueueLength()
public int getRunningJobs()
public int getCompletedJobs()
public int getClusterSize()
public int addWorker()
public void setActor(IActor sm)
ILoadSource
setActor in interface ILoadSourcesm - the service managerpublic void setSlice(Slice slice)
IController
setSlice in interface IControllerpublic Slice getSlice()
IController
getSlice in interface IControllerpublic int submitJob()
public LoggingTool getLogger()
ILoadSource
getLogger in interface ILoadSourcepublic IActor getActor()
public boolean isActive()
public int getNumReserveWorkers()
public void setNumReserveWorkers(int numReserveWorkers)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||