|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.controllers.jaws.JawsController
public class JawsController
| Nested Class Summary | |
|---|---|
protected class |
JawsController.JawsEventHandler
|
protected class |
JawsController.PlushManager
|
| Field Summary | |
|---|---|
protected long |
advanceTime
|
static long |
ClockSkew
|
protected boolean |
controllerEnabled
|
protected JawsHandler |
handler
|
protected ImageDescriptor |
image
|
protected LoggingTool |
logger
|
static java.lang.String |
MasterConfig
|
protected boolean |
needAdvanceTime
|
protected boolean |
needReservation
|
protected int |
numReserveWorkers
|
protected java.util.Hashtable<java.lang.String,CodReservation> |
pendingReservations
|
protected int |
port
|
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 java.util.Hashtable<java.lang.Integer,java.lang.String> |
requests
|
protected java.lang.String |
root
|
protected ResourceType |
rtype
|
static java.lang.String |
ServiceName
|
protected Slice |
slice
|
protected IServiceManager |
sm
|
static java.lang.String |
TestFileName
|
protected org.apache.xmlrpc.WebServer |
webserver
|
static java.lang.String |
WorkerConfig
|
| Constructor Summary | |
|---|---|
JawsController()
|
|
| Method Summary | |
|---|---|
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()
Calls up to a default broker to query and set the advance time. |
int |
getClusterSize()
|
long |
getCompletedJobs()
|
LoggingTool |
getLogger()
Returns the logger associated with the controller. |
Node |
getMasterNode()
|
int |
getNumReserveWorkers()
|
int |
getNumWorkers()
|
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()
|
protected void |
jobCompleted(int port)
|
protected void |
queueRequest(int port,
java.lang.String fileName)
|
protected void |
queueReservation(java.lang.String port,
CodReservation r)
|
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 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
public static final java.lang.String ServiceName
public static final java.lang.String TestFileName
protected ImageDescriptor image
protected int numReserveWorkers
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 boolean controllerEnabled
protected org.apache.xmlrpc.WebServer webserver
protected int port
protected JawsHandler handler
protected java.util.Hashtable<java.lang.String,CodReservation> pendingReservations
protected java.util.Hashtable<java.lang.Integer,java.lang.String> requests
| Constructor Detail |
|---|
public JawsController()
| Method Detail |
|---|
public void initialize()
throws java.lang.Exception
IInitialize
initialize in interface IInitializejava.lang.Exception
protected void queueReservation(java.lang.String port,
CodReservation r)
protected void queueRequest(int port,
java.lang.String fileName)
protected long getAdvanceTime()
public void enableController()
public void disableController()
public boolean isControllerEnabled()
public void tick(long cycle)
tick in interface ILoadSourcecycle - this cycleprotected void bid(long cycle)
cycle - public int getQueueLength()
public int getNumWorkers()
public int getRunningJobs()
public long getCompletedJobs()
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 getClusterSize()
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()
protected void jobCompleted(int port)
public int getNumReserveWorkers()
public void setNumReserveWorkers(int numReserveWorkers)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||