Class AbstractNodeDecorator
java.lang.Object
kieker.visualization.trace.dependency.graph.AbstractNodeDecorator
- Direct Known Subclasses:
ResponseTimeColorNodeDecorator
,ResponseTimeNodeDecorator
public abstract class AbstractNodeDecorator
extends java.lang.Object
Abstract superclass for all node decorators.
- Since:
- 1.5
- Author:
- Holger Knoche
-
Constructor Summary
Constructors Constructor Description AbstractNodeDecorator()
-
Method Summary
Modifier and Type Method Description static AbstractNodeDecorator
createFromName(java.lang.String optionName)
Creates a node decorator from its option name.abstract void
processMessage(AbstractMessage message, DependencyGraphNode<?> sourceNode, DependencyGraphNode<?> targetNode, java.util.concurrent.TimeUnit timeunit)
Processes a message sent from the given source to the given target node.
-
Constructor Details
-
AbstractNodeDecorator
public AbstractNodeDecorator()
-
-
Method Details
-
createFromName
Creates a node decorator from its option name.- Parameters:
optionName
- The option name to create a decorator for- Returns:
- An appropriate node decorator or
null
if none can be determined
-
processMessage
public abstract void processMessage(AbstractMessage message, DependencyGraphNode<?> sourceNode, DependencyGraphNode<?> targetNode, java.util.concurrent.TimeUnit timeunit)Processes a message sent from the given source to the given target node.- Parameters:
message
- The sent messagesourceNode
- The source node sending the messagetargetNode
- The target node receiving the messagetimeunit
- The time unit which determines how to interpret times.
-