Class LogTunnel
java.lang.Object
QueueNet.NodeSection
NodeSections.PipeSection
NodeSections.ServiceSection
NodeSections.ServiceTunnel
NodeSections.LogTunnel
Title: LogTunnel Extension
Description: This class extends the "tunnel" service-section by adding logging (information about forward messages only). Every message sent from the input section is forwarded to the output section and every message sent the from output section is backward to the input section.
- Author:
- Michael Fercu Date: 12-lug-2008 Time: 14.04.02, Marco Bertoli Date: 12-dec-2009 Nearly rewrote everything to fix bugs with log files kept open and with log lines deleted when multiple loggers were writing on the same file. Now instead of using Log4j it relies on a fast, custom, thread-safe implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String[]Fields inherited from class NodeSection
EXCEPTION_MEASURE_DOES_NOT_EXIST, EXCEPTION_PROPERTY_NOT_AVAILABLE, INPUT, jobsList, 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 TypeMethodDescriptionprotected intprocess(NetMessage message) This method should be overridden to implement a specific NetMessage processor.Methods inherited from class ServiceSection
sendBackward, sendBackward, 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, nodeLinked, redirect, removeMessage, send, send, send, send, send, send, sendAckAfterDrop, sendMe, sendMe, updateVisitPath
-
Field Details
-
COLUMN_LOGGERNAME
- See Also:
-
COLUMN_TIMESTAMP
- See Also:
-
COLUMN_JOBID
- See Also:
-
COLUMN_CLASSID
- See Also:
-
COLUMN_INTERARRIVAL_SAMECLASS
- See Also:
-
COLUMN_INTERARRIVAL_ANYCLASS
- See Also:
-
COLUMN_START_TIME
- See Also:
-
COLUMNS
-
-
Constructor Details
-
LogTunnel
-
-
Method Details
-
process
Description copied from class:NodeSectionThis method should be overridden to implement a specific NetMessage processor.- Overrides:
processin classServiceTunnel- Parameters:
message- message to be processed.- Returns:
- message processing result.
- Throws:
NetException
-