public class Site
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
mCurrentProcessorIndex
The index to the processor that is to be used for scheduling a job.
|
private java.lang.String |
mName
The logical name assigned to the site.
|
private int |
mNumProcessors
The number of processors making up a site.
|
private java.util.List |
mProcessors
A list of processors making up the site.
|
Constructor and Description |
---|
Site(java.lang.String name)
The default constructor.
|
Site(java.lang.String name,
int num)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAvailableProcessors()
Returns the number of available processors.
|
long |
getAvailableTime(long start)
Returns the earliest time the site is available for scheduling
a job.
|
java.lang.String |
getName()
Returns the name of the site.
|
void |
scheduleJob(long start,
long end)
Schedules a job to the site.
|
private int mNumProcessors
private java.util.List mProcessors
private int mCurrentProcessorIndex
private java.lang.String mName
public Site(java.lang.String name)
name
- the name to be assigned to the site.public Site(java.lang.String name, int num)
name
- the name to be assigned to the site.num
- the number of processors.public long getAvailableTime(long start)
start
- the time at which to start the search.public void scheduleJob(long start, long end)
start
- the start time of the job.end
- the end time for the jobpublic java.lang.String getName()
public int getAvailableProcessors()