1
/*___INFO__MARK_BEGIN__*/
2
/*************************************************************************
4
* The Contents of this file are made available subject to the terms of
5
* the Sun Industry Standards Source License Version 1.2
7
* Sun Microsystems Inc., March, 2001
10
* Sun Industry Standards Source License Version 1.2
11
* =================================================
12
* The contents of this file are subject to the Sun Industry Standards
13
* Source License Version 1.2 (the "License"); You may not use this file
14
* except in compliance with the License. You may obtain a copy of the
15
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
17
* Software provided under this License is provided on an "AS IS" basis,
18
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
19
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
20
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
21
* See the License for the specific provisions governing your rights and
22
* obligations concerning the Software.
24
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
26
* Copyright: 2001 by Sun Microsystems, Inc.
28
* All Rights Reserved.
30
************************************************************************/
31
/*___INFO__MARK_END__*/
32
package com.sun.grid.jgdi.monitoring;
34
import java.util.ArrayList;
35
import java.util.Collections;
36
import java.util.HashMap;
37
import java.util.List;
42
* Implementating classes of this interface represent the results of a
46
public interface QueueInstanceSummary {
48
* Get the name of the queue instance
49
* @return name of the queue instance
51
public String getName();
54
* Get the type of the queue
55
* @return type of the queue
57
public String getQueueType();
60
* Get the number of reserved slots.
61
* @return number of reserved slots
63
public int getReservedSlots();
67
* Get the number of used slots.
68
* @return number of used slots
70
public int getUsedSlots();
73
* Get the number of free slots
74
* @return number of free slots
76
public int getFreeSlots();
79
* Get the architecture of the queue instance
80
* @return architecture of the queue instance
82
public String getArch();
85
* Get the state of the queue instance
86
* @return state of the queue instance
88
public String getState();
91
* Get the string representation of the load average
93
* @return the string representation of the load average
95
public String getLoadAvgStr();
98
* Determine if the queue instance has a load value
99
* @return <code>true</code> if the queue instance has a load value
101
public boolean hasLoadValue();
104
* Determine if the load value is derived from an object
105
* @return <code>true</code> if the load value is derived from an object
107
public boolean isHasLoadValueFromObject();
110
* Get the load average of the queue instance. Return only a meanful
111
* value if <code>hasHasLoadValue</code> returns <code>true</code>.
113
* @return The load average of the queue instance
116
public double getLoadAvg();
119
* Get the list of jobs which are assigned to the queue instance
120
* @return list of jobs (instances of {@link JobSummary})
122
public List<JobSummary> getJobList();
125
* Get the load alarm reason for the queue instance
126
* @return the load alarm reason
128
public String getLoadAlarmReason();
131
* Get the suspend alarm reason for the queue instance
132
* @return the suspend alarm reason
134
public String getSuspendAlarmReason();
137
* Get the list of explain messages
138
* @return list of explain messages
140
public List<String> getExplainMessageList();
143
* Get avaialable dominances for the resource values
144
* @return set of avaialable dominances
146
public Set<String> getResourceDominanceSet();
149
* Get all resources names which have the dominane <code>dom</code>
150
* @return set of resource names
152
public Set<String> getResourceNames(String dom);
155
* Get a resource value
156
* @param dom dominance of the resource value
157
* @param name name of the resource
158
* @return the resource value
160
public String getResourceValue(String dom, String name);