|
@@ -54,7 +54,8 @@ public abstract class QueueInfo {
|
|
|
|
|
|
@Private
|
|
@Private
|
|
@Unstable
|
|
@Unstable
|
|
- public static QueueInfo newInstance(String queueName, float capacity,
|
|
|
|
|
|
+ public static QueueInfo newInstance(String queueName,
|
|
|
|
+ String queuePath, float capacity,
|
|
float maximumCapacity, float currentCapacity,
|
|
float maximumCapacity, float currentCapacity,
|
|
List<QueueInfo> childQueues, List<ApplicationReport> applications,
|
|
List<QueueInfo> childQueues, List<ApplicationReport> applications,
|
|
QueueState queueState, Set<String> accessibleNodeLabels,
|
|
QueueState queueState, Set<String> accessibleNodeLabels,
|
|
@@ -62,6 +63,7 @@ public abstract class QueueInfo {
|
|
boolean preemptionDisabled, float weight) {
|
|
boolean preemptionDisabled, float weight) {
|
|
QueueInfo queueInfo = Records.newRecord(QueueInfo.class);
|
|
QueueInfo queueInfo = Records.newRecord(QueueInfo.class);
|
|
queueInfo.setQueueName(queueName);
|
|
queueInfo.setQueueName(queueName);
|
|
|
|
+ queueInfo.setQueuePath(queuePath);
|
|
queueInfo.setCapacity(capacity);
|
|
queueInfo.setCapacity(capacity);
|
|
queueInfo.setMaximumCapacity(maximumCapacity);
|
|
queueInfo.setMaximumCapacity(maximumCapacity);
|
|
queueInfo.setCurrentCapacity(currentCapacity);
|
|
queueInfo.setCurrentCapacity(currentCapacity);
|
|
@@ -78,14 +80,15 @@ public abstract class QueueInfo {
|
|
|
|
|
|
@Private
|
|
@Private
|
|
@Unstable
|
|
@Unstable
|
|
- public static QueueInfo newInstance(String queueName, float capacity,
|
|
|
|
|
|
+ public static QueueInfo newInstance(String queueName,
|
|
|
|
+ String queuePath, float capacity,
|
|
float maximumCapacity, float currentCapacity,
|
|
float maximumCapacity, float currentCapacity,
|
|
List<QueueInfo> childQueues, List<ApplicationReport> applications,
|
|
List<QueueInfo> childQueues, List<ApplicationReport> applications,
|
|
QueueState queueState, Set<String> accessibleNodeLabels,
|
|
QueueState queueState, Set<String> accessibleNodeLabels,
|
|
String defaultNodeLabelExpression, QueueStatistics queueStatistics,
|
|
String defaultNodeLabelExpression, QueueStatistics queueStatistics,
|
|
boolean preemptionDisabled, float weight,
|
|
boolean preemptionDisabled, float weight,
|
|
Map<String, QueueConfigurations> queueConfigurations) {
|
|
Map<String, QueueConfigurations> queueConfigurations) {
|
|
- QueueInfo queueInfo = QueueInfo.newInstance(queueName, capacity,
|
|
|
|
|
|
+ QueueInfo queueInfo = QueueInfo.newInstance(queueName, queuePath, capacity,
|
|
maximumCapacity, currentCapacity,
|
|
maximumCapacity, currentCapacity,
|
|
childQueues, applications,
|
|
childQueues, applications,
|
|
queueState, accessibleNodeLabels,
|
|
queueState, accessibleNodeLabels,
|
|
@@ -97,7 +100,8 @@ public abstract class QueueInfo {
|
|
|
|
|
|
@Private
|
|
@Private
|
|
@Unstable
|
|
@Unstable
|
|
- public static QueueInfo newInstance(String queueName, float capacity,
|
|
|
|
|
|
+ public static QueueInfo newInstance(String queueName,
|
|
|
|
+ String queuePath, float capacity,
|
|
float maximumCapacity, float currentCapacity,
|
|
float maximumCapacity, float currentCapacity,
|
|
List<QueueInfo> childQueues, List<ApplicationReport> applications,
|
|
List<QueueInfo> childQueues, List<ApplicationReport> applications,
|
|
QueueState queueState, Set<String> accessibleNodeLabels,
|
|
QueueState queueState, Set<String> accessibleNodeLabels,
|
|
@@ -105,7 +109,7 @@ public abstract class QueueInfo {
|
|
boolean preemptionDisabled, float weight,
|
|
boolean preemptionDisabled, float weight,
|
|
Map<String, QueueConfigurations> queueConfigurations,
|
|
Map<String, QueueConfigurations> queueConfigurations,
|
|
boolean intraQueuePreemptionDisabled) {
|
|
boolean intraQueuePreemptionDisabled) {
|
|
- QueueInfo queueInfo = QueueInfo.newInstance(queueName, capacity,
|
|
|
|
|
|
+ QueueInfo queueInfo = QueueInfo.newInstance(queueName, queuePath, capacity,
|
|
maximumCapacity, currentCapacity,
|
|
maximumCapacity, currentCapacity,
|
|
childQueues, applications,
|
|
childQueues, applications,
|
|
queueState, accessibleNodeLabels,
|
|
queueState, accessibleNodeLabels,
|
|
@@ -126,6 +130,18 @@ public abstract class QueueInfo {
|
|
@Private
|
|
@Private
|
|
@Unstable
|
|
@Unstable
|
|
public abstract void setQueueName(String queueName);
|
|
public abstract void setQueueName(String queueName);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Get the <em>path</em> of the queue.
|
|
|
|
+ * @return <em>path</em> of the queue
|
|
|
|
+ */
|
|
|
|
+ @Public
|
|
|
|
+ @Stable
|
|
|
|
+ public abstract String getQueuePath();
|
|
|
|
+
|
|
|
|
+ @Private
|
|
|
|
+ @Unstable
|
|
|
|
+ public abstract void setQueuePath(String queuePath);
|
|
|
|
|
|
/**
|
|
/**
|
|
* Get the <em>configured capacity</em> of the queue.
|
|
* Get the <em>configured capacity</em> of the queue.
|