org.isam.exehda.services.tips
Class TipsCellScheduler

java.lang.Object
  |
  +--org.isam.exehda.services.AbstractService
        |
        +--org.isam.exehda.services.tips.TipsCellScheduler
All Implemented Interfaces:
CollectUtility, Scheduler, Service

public class TipsCellScheduler
extends AbstractService
implements Scheduler, CollectUtility


Nested Class Summary
 
Nested classes inherited from class org.isam.exehda.services.Scheduler
Scheduler.CompositeIndex, Scheduler.DistanceToAnchorIndex, Scheduler.IndexEqualsConstraint, Scheduler.IndexValueInRangeConstraint, Scheduler.IndexValueInSetConstraint, Scheduler.MappedIndex, Scheduler.MaximizeIndexConstraint, Scheduler.MinimizeIndexConstraint, Scheduler.MobilityConstraint, Scheduler.RelationalConstraint, Scheduler.SchedConstraint, Scheduler.SchedIndex, Scheduler.SensorIndex
 
Field Summary
 
Fields inherited from interface org.isam.exehda.services.Scheduler
SERVICE_NAME
 
Constructor Summary
TipsCellScheduler()
           
 
Method Summary
 HostId chooseCreationHost(ResourceBroker.ResourceConstraint c)
          Describe chooseCreationHost method here.
 HostId chooseMigrationHost(ResourceBroker.ResourceConstraint c)
          Describe chooseMigrationHost method here.
 HostId getBestHostid()
           
 void reschedule(ObjectId o, ResourceBroker.ResourceConstraint c, boolean auto)
          Describe reschedule method here.
 void start()
           
 void stop()
           
 void updateUtility(long timeStamp, HostId src, double utility)
           
 
Methods inherited from class org.isam.exehda.services.AbstractService
log, log, log, log, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TipsCellScheduler

public TipsCellScheduler()
Method Detail

chooseCreationHost

public HostId chooseCreationHost(ResourceBroker.ResourceConstraint c)
Describe chooseCreationHost method here.

Specified by:
chooseCreationHost in interface Scheduler
Parameters:
c - a ResourceConstraints value
Returns:
a HostId value

chooseMigrationHost

public HostId chooseMigrationHost(ResourceBroker.ResourceConstraint c)
Describe chooseMigrationHost method here.

Specified by:
chooseMigrationHost in interface Scheduler
Parameters:
c - a ResourceConstraints value
Returns:
a HostId value

reschedule

public void reschedule(ObjectId o,
                       ResourceBroker.ResourceConstraint c,
                       boolean auto)
Describe reschedule method here.

Specified by:
reschedule in interface Scheduler
Parameters:
o - an ObjectHandle value
c - a ResourceConstraints value
auto - a boolean value

stop

public void stop()
Specified by:
stop in interface Service

start

public void start()
           throws java.rmi.RemoteException,
                  java.lang.ClassNotFoundException,
                  java.lang.InstantiationException,
                  java.lang.IllegalAccessException,
                  java.lang.reflect.InvocationTargetException,
                  java.lang.NoSuchMethodException
Specified by:
start in interface Service
java.rmi.RemoteException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException

updateUtility

public void updateUtility(long timeStamp,
                          HostId src,
                          double utility)
Specified by:
updateUtility in interface CollectUtility

getBestHostid

public HostId getBestHostid()