Class Join
java.lang.Object
QueueNet.NodeSection
NodeSections.PipeSection
NodeSections.InputSection
NodeSections.Join
Title: Join
Description: This class is a Join input section, used to re-assemble previously forked jobs. Jobs are kept until all fragments are collected. If a non-fragmented job is received, it is simply routed to service section.
- Author:
- Bertoli Marco Date: 13-mar-2006 Time: 16.19.58 Modified by J. Shuai & M. Cazzoli, implemented join strategies
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidanalyzeJoin(int name, JobClass jobClass, Measure measurement) 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.protected intprocess(NetMessage message) Assembles split tasks and sends an EVENT_JOIN to reference fork when done.Methods inherited from class InputSection
sendForward, sendForwardMethods inherited from class NodeSection
analyze, analyze, analyzeFCR, 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
-
Constructor Details
-
Join
public Join()Constructs a new Join. -
Join
-
-
Method Details
-
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
-
process
Assembles split tasks and sends an EVENT_JOIN to reference fork when done.- Specified by:
processin classNodeSection- Parameters:
message- message to be processed.- Returns:
- message processing result.
- Throws:
NetException- if something goes wrong.
-
analyzeJoin
- Overrides:
analyzeJoinin classNodeSection- Throws:
NetException
-
analyzeFJ
- Overrides:
analyzeFJin classNodeSection- Throws:
NetException
-