Class Storage
java.lang.Object
QueueNet.NodeSection
NodeSections.PipeSection
NodeSections.InputSection
NodeSections.Storage
Title: Storage
Description: This class implements the storage section.
- Author:
- Lulai Zhu Date: 15-07-2016 Time: 21.00.00
-
Field Summary
FieldsFields inherited from class NodeSection
EXCEPTION_MEASURE_DOES_NOT_EXIST, EXCEPTION_PROPERTY_NOT_AVAILABLE, INPUT, jobsList, logger, MSG_NOT_PROCESSED, MSG_PROCESSED, NO_ADDRESS, OUTPUT, PROPERTY_ID_ARRIVING_JOBS, PROPERTY_ID_AVERAGE_UTILIZATION, PROPERTY_ID_DEPARTING_JOBS, PROPERTY_ID_RESIDENCE_TIME, PROPERTY_ID_RESIDENT_JOBS, PROPERTY_ID_UTILIZATION, SERVICE -
Constructor Summary
ConstructorsConstructorDescriptionStorage(Integer totalCapacity, Integer[] capacities, String[] dropRules, QueueGetStrategy getStrategy, QueuePutStrategy[] putStrategies) Creates a new instance of the storage section. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells if the redirection behaviour is turned on.protected voidnodeLinked(NetNode node) This method should be overridden to implement a specific behaviour of the node section when the node section itself is linked to the owner node.voidpreloadJobs(int[] jobsPerClass) Preloads the specified numbers of jobs for each class.protected intprocess(NetMessage message) This method should be overridden to implement a specific NetMessage processor.voidTurns off the redirection behaviour.voidredirectionTurnON(BlockingRegion region) Turns on the redirection behaviour.Methods inherited from class InputSection
sendForward, sendForwardMethods inherited from class NodeSection
analyze, analyze, analyzeFCR, analyzeFJ, analyzeJoin, analyzeTransition, getClassCompatibilities, getDoubleSectionProperty, getDoubleSectionProperty, getIntSectionProperty, getIntSectionProperty, getJobClasses, getJobInfoList, getObject, getObject, getOwnerNode, getParameter, getParameter, getSectionID, getServerTypes, isEnabled, isEnabled, isMine, isMyOwnerNode, redirect, removeMessage, send, send, send, send, send, send, sendAckAfterDrop, sendMe, sendMe, updateVisitPath
-
Field Details
-
FINITE_DROP
- See Also:
-
FINITE_BLOCK
- See Also:
-
FINITE_WAITING
- See Also:
-
-
Constructor Details
-
Storage
public Storage(Integer totalCapacity, Integer[] capacities, String[] dropRules, QueueGetStrategy getStrategy, QueuePutStrategy[] putStrategies) Creates a new instance of the storage section.
-
-
Method Details
-
isRedirectionON
public boolean isRedirectionON()Tells if the redirection behaviour is turned on. -
redirectionTurnOFF
public void redirectionTurnOFF()Turns off the redirection behaviour. -
redirectionTurnON
Turns on the redirection behaviour. -
nodeLinked
Description copied from class:NodeSectionThis method should be overridden to implement a specific behaviour of the node section when the node section itself is linked to the owner node. This method should be used to set node section properties depending on the owner node ones.- Overrides:
nodeLinkedin classNodeSection- Parameters:
node- Owner node.- Throws:
NetException
-
preloadJobs
Preloads the specified numbers of jobs for each class.- Parameters:
jobsPerClass- the specified numbers of jobs for each class.- Throws:
NetException
-
process
Description copied from class:NodeSectionThis method should be overridden to implement a specific NetMessage processor.- Specified by:
processin classNodeSection- Parameters:
message- message to be processed.- Returns:
- message processing result.
- Throws:
NetException
-