|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.policy.ClusterAssignmentByMonitorPolicy
public class ClusterAssignmentByMonitorPolicy
This policy takes the assignment from another policy, and assigns clusters depending on the result of the monitoring information. The class will have a primary cluster and a secondary cluster. If the secondary cluster is not completely full, some jobs will be diverted there. All the jobs that won't fit in the secondary cluster will be diverted to the primary cluster. One can set a specific queue for which jobs will be sent to the secondary, leaving all the other queues to the primary.
Constructor Summary | |
---|---|
ClusterAssignmentByMonitorPolicy()
|
Method Summary | |
---|---|
java.util.List |
assignTargetMachine(Request request)
Decides how and where to run the job according to its requirements. |
ClusterInfoFinder |
getClusterMonitoring()
Getter for property clusterMonitoring. |
Policy |
getPolicy()
Getter for property policy. |
java.lang.String |
getPrimaryCluster()
Getter for property primaryCluster. |
java.lang.String |
getQueueToRedirect()
Getter for property queueToRedirect. |
java.lang.String |
getSecondaryCluster()
Getter for property secondaryCluster. |
void |
setClusterMonitoring(ClusterInfoFinder clusterMonitoring)
Setter for property clusterMonitoring. |
void |
setPolicy(Policy policy)
Setter for property policy. |
void |
setPrimaryCluster(java.lang.String primaryCluster)
Setter for property primaryCluster. |
void |
setQueueToRedirect(java.lang.String queueToRedirect)
Setter for property queueToRedirect. |
void |
setSecondaryCluster(java.lang.String secondaryCluster)
Setter for property secondaryCluster. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterAssignmentByMonitorPolicy()
Method Detail |
---|
public java.util.List assignTargetMachine(Request request)
Policy
The Policy is allowed to query the farm status, use the catalog and trigger file movements. It can slice the job into more than one process, according to, for example, where the input files are located.
assignTargetMachine
in interface Policy
request
- the job description and its requirementspublic Policy getPolicy()
public void setPolicy(Policy policy)
policy
- New value of property policy.public ClusterInfoFinder getClusterMonitoring()
public void setClusterMonitoring(ClusterInfoFinder clusterMonitoring)
clusterMonitoring
- New value of property clusterMonitoring.public java.lang.String getPrimaryCluster()
public void setPrimaryCluster(java.lang.String primaryCluster)
primaryCluster
- New value of property primaryCluster.public java.lang.String getSecondaryCluster()
public void setSecondaryCluster(java.lang.String secondaryCluster)
secondaryCluster
- New value of property secondaryCluster.public java.lang.String getQueueToRedirect()
public void setQueueToRedirect(java.lang.String queueToRedirect)
queueToRedirect
- New value of property queueToRedirect.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |