Class RandStrategy
java.lang.Object
NetStrategies.QueuePutStrategy
NetStrategies.QueuePutStrategies.RandStrategy
- All Implemented Interfaces:
AutoCheck
This class implements a specific queue put strategy: all arriving jobs
are put at random positions of the queue.
- Author:
- Lulai Zhu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidput(Job job, JobInfoList queue, NodeSection callingSection) This method should be overridden to implement a specific job strategy.Methods inherited from class QueuePutStrategy
check
-
Constructor Details
-
RandStrategy
public RandStrategy()
-
-
Method Details
-
put
Description copied from class:QueuePutStrategyThis method should be overridden to implement a specific job strategy.- Specified by:
putin classQueuePutStrategy- Parameters:
job- Job to be added to the queue.queue- Job queue.callingSection- Node section which applies this strategy.- Throws:
NetException
-