From b940326231702e8a07dc7e2d3fb5da440bf171cf Mon Sep 17 00:00:00 2001
From: gjoranv Constructs a new instance of this class. Constructs a new instance of this class. Adds all the entries of the given map to this. This is the same as calling {@link #add(String, List)} for each
- * entry in values.values
.
key
, or null
if there was no mapping for
+ * key
.
*/
public ListSummaryExpression
,
* this processor expands to write all appropriate summary fields.
*
* @author Simon Thoresen Hult
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/package-info.java b/config-model/src/main/java/com/yahoo/vespa/model/package-info.java
index e5f76dd398e..f88eda4e7a2 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/package-info.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/package-info.java
@@ -99,7 +99,7 @@ com.yahoo.config.model.producer.AbstractConfigProducer
- Each highest-level node in the setup file from the user's application specification corresponds to a {@link @@ -138,7 +138,7 @@ com.yahoo.config.model.producer.AbstractConfigProducer -
Each {@link com.yahoo.vespa.model.Host Host} has an available dynamic port range running from {@link diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/MetricConsumerFactory.java b/container-core/src/main/java/com/yahoo/container/jdisc/MetricConsumerFactory.java index 50052bbf70c..d0cf07584e4 100644 --- a/container-core/src/main/java/com/yahoo/container/jdisc/MetricConsumerFactory.java +++ b/container-core/src/main/java/com/yahoo/container/jdisc/MetricConsumerFactory.java @@ -4,7 +4,7 @@ package com.yahoo.container.jdisc; import com.yahoo.jdisc.application.MetricConsumer; /** - *
This is the interface to implement if one wishes to configure a non-default MetricConsumer. Simply + *
This is the interface to implement if one wishes to configure a non-default MetricConsumer
. Simply
* add the implementing class as a component in your services.xml file.
If more than one {@link MetricConsumerFactory} is registered in a container, calls to Metric need to be - * forwarded to all the underlying MetricConsumers. That is the responsibility of this class. Instances of this + *
If more than one {@link MetricConsumerFactory} is registered in a container, calls to Metric
need to be
+ * forwarded to all the underlying MetricConsumers
. That is the responsibility of this class. Instances of this
* class is created by the {@link MetricConsumerProvider} in those cases.
The purpose of this class it to be the only provider for the MetricConsumer interface in a component + *
The purpose of this class it to be the only provider for the MetricConsumer
interface in a component
* graph. This component is automatically registered in the graph by the config server. Configuring a different
- * MetricConsumer is done by registering one or more {@link MetricConsumerFactory} in the services-file.
MetricConsumer
is done by registering one or more {@link MetricConsumerFactory} in the services-file.
*
* Because this class depends on the {@link ComponentRegistry} of {@link MetricConsumerFactory}, any added or removed * {@link MetricConsumerFactory} will cause this component to be reconfigured. Because {@link MetricProvider} depends on - * this class, which means any component that uses Metric will be reconfigured. Any component that depends - * directly on MetricConsumer will also be reconfigured.
+ * this class, which means any component that usesMetric
will be reconfigured. Any component that depends
+ * directly on MetricConsumer
will also be reconfigured.
*
* @author Simon Thoresen Hult
*/
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/metric/MetricProvider.java b/container-disc/src/main/java/com/yahoo/container/jdisc/metric/MetricProvider.java
index bcd75c0b36b..57613113e73 100644
--- a/container-disc/src/main/java/com/yahoo/container/jdisc/metric/MetricProvider.java
+++ b/container-disc/src/main/java/com/yahoo/container/jdisc/metric/MetricProvider.java
@@ -6,9 +6,9 @@ import com.yahoo.jdisc.Metric;
import com.yahoo.jdisc.application.MetricConsumer;
/**
- * This class implements a {@link Provider} component of Metric. Because this class depends on {@link + *
This class implements a {@link Provider} component of Metric
. Because this class depends on {@link
* MetricConsumerProvider}, any change to the consumer configuration will trigger reconfiguration of this component,
- * which in turn triggers reconfiguration of any component that depends on Metric.
Metric
.
*
* @author Simon Thoresen Hult
*/
diff --git a/container-search/src/main/java/com/yahoo/search/grouping/result/BucketGroupId.java b/container-search/src/main/java/com/yahoo/search/grouping/result/BucketGroupId.java
index 07729b4524a..e1f74df7172 100644
--- a/container-search/src/main/java/com/yahoo/search/grouping/result/BucketGroupId.java
+++ b/container-search/src/main/java/com/yahoo/search/grouping/result/BucketGroupId.java
@@ -30,9 +30,9 @@ public abstract class BucketGroupIdfrom
argument.
* @param to The exclusive-to of the range.
- * @param toImage The String representation of the to argument.
+ * @param toImage The String representation of the to
argument.
*/
public BucketGroupId(String type, T from, String fromImage, T to, String toImage) {
super(type, fromImage, toImage);
diff --git a/container-search/src/main/java/com/yahoo/search/grouping/result/ValueGroupId.java b/container-search/src/main/java/com/yahoo/search/grouping/result/ValueGroupId.java
index bebd3fd85b0..a76af885180 100644
--- a/container-search/src/main/java/com/yahoo/search/grouping/result/ValueGroupId.java
+++ b/container-search/src/main/java/com/yahoo/search/grouping/result/ValueGroupId.java
@@ -27,7 +27,7 @@ public abstract class ValueGroupIdvalue
argument.
*/
public ValueGroupId(String type, T value, String valueImage) {
super(type, valueImage);
diff --git a/container-search/src/main/java/com/yahoo/search/query/parser/ParserFactory.java b/container-search/src/main/java/com/yahoo/search/query/parser/ParserFactory.java
index 69d46527255..a57c0f98b45 100644
--- a/container-search/src/main/java/com/yahoo/search/query/parser/ParserFactory.java
+++ b/container-search/src/main/java/com/yahoo/search/query/parser/ParserFactory.java
@@ -18,7 +18,7 @@ public final class ParserFactory {
}
/**
- * Creates a {@link Parser} appropriate for the given Query.Type, providing the Parser with access to
+ * Creates a {@link Parser} appropriate for the given Query.Type
, providing the Parser with access to
* the {@link ParserEnvironment} given.
*
* @param type the query type for which to create a Parser
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/HeaderFields.java b/jdisc_core/src/main/java/com/yahoo/jdisc/HeaderFields.java
index 500b1258735..5c35bed2cec 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/HeaderFields.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/HeaderFields.java
@@ -8,7 +8,7 @@ import java.util.*;
/**
* This is an encapsulation of the header fields that belong to either a {@link Request} or a {@link Response}. It is
* a multimap from String to String, with some additional methods for convenience. The keys of this map are compared by
- * ignoring their case, so that get("foo") returns the same entry as get("FOO").
+ * ignoring their case, so that get("foo")
returns the same entry as get("FOO")
.
*
* @author Simon Thoresen Hult
*/
@@ -121,7 +121,7 @@ public class HeaderFields implements MapAdds all the entries of the given map to this. This is the same as calling {@link #add(String, List)} for each - * entry in values.
+ * entry invalues
.
*
* @param values The values to be added to this.
*/
@@ -137,8 +137,8 @@ public class HeaderFields implements Mapkey
, or null
if there was no mapping for
+ * key
.
*/
public Listnull
.
* @throws IndexOutOfBoundsException If there is no group in the match with the given index.
*/
public String group(int idx) {
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java b/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java
index d9bf67b530f..f060f1840ff 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java
@@ -39,7 +39,7 @@ import java.util.Map;
public interface MetricConsumer {
/**
- * Consume a call to Metric.set(String, Number, Metric.Context).
+ *Consume a call to Metric.set(String, Number, Metric.Context)
.
Consume a call to Metric.add(String, Number, Metric.Context).
+ *Consume a call to Metric.add(String, Number, Metric.Context)
.
Creates a Metric.Context object that encapsulates the given properties. The returned Context object - * will be passed along every future call to set(String, Number, Metric.Context) and - * add(String, Number, Metric.Context) where the properties match those given here.
+ *Creates a Metric.Context
object that encapsulates the given properties. The returned Context object
+ * will be passed along every future call to set(String, Number, Metric.Context)
and
+ * add(String, Number, Metric.Context)
where the properties match those given here.
Installs a bundle from the specified location. The specified location identifier will be used as the identity
- * of the bundle. If a bundle containing the same location identifier is already installed, the Bundle
+ * of the bundle. If a bundle containing the same location identifier is already installed, the Bundle
* object for that bundle is returned. All bundles listed in the {@link OsgiHeader#PREINSTALL_BUNDLE} manifest
- * header are also installed. The bundle at index 0 of the returned list matches the bundleLocation
+ * header are also installed. The bundle at index 0 of the returned list matches the bundleLocation
* argument.
NOTE: When this method installs more than one bundle, AND one of those bundles throw an @@ -29,8 +29,8 @@ public interface OsgiFramework { * BundleInstallationException} that contains the list of successfully installed bundles.
* *It would be preferable if this method was exception-safe (that it would roll-back all installed bundles in the - * case of an exception), but that can not be implemented thread-safely since an Application may choose to - * install bundles concurrently through any available BundleContext.
+ * case of an exception), but that can not be implemented thread-safely since anApplication
may choose to
+ * install bundles concurrently through any available BundleContext
.
*
* @param bundleLocation The location identifier of the bundle to install.
* @return The list of Bundle objects installed, the object at index 0 matches the given location.
@@ -41,7 +41,7 @@ public interface OsgiFramework {
ListStarts the given {@link Bundle}s. The parameter privileged tells the framework whether or not + *
Starts the given {@link Bundle}s. The parameter privileged
tells the framework whether or not
* privileges are available, and is checked against the {@link OsgiHeader#PRIVILEGED_ACTIVATOR} header of each
* Bundle being started. Any bundle that is a fragment is silently ignored.
Returns the BundleContext of this framework's system bundle. The returned BundleContext can be used by the
- * caller to act on behalf of this bundle. This method may return null if it has no valid
+ * caller to act on behalf of this bundle. This method may return null
if it has no valid
* BundleContext.
BundleContext
for the system bundle, or null
.
* @throws SecurityException If the caller does not have the appropriate permissions.
*/
BundleContext bundleContext();
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java b/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java
index 279d99f63b7..ccbd1693b21 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java
@@ -87,8 +87,8 @@ public final class ResourcePool extends AbstractResource implements AutoCloseabl
* destroyed, it will release the main reference to the resource (by calling {@link SharedResource#release()}).
*
* @param t The SharedResource to add.
- * @param t
.
+ * @return The parameter t
, to allow inlined calls to this function.
*/
public t
.
+ * @return The parameter t
, to allow inlined calls to this function.
*/
public Creates a new instance of this class that represents the given pattern string, with a priority of 0. + *
Creates a new instance of this class that represents the given pattern string, with a priority of 0
.
* The input string must be on the form <scheme>://<host>[:<port>]<path>
, where
* '*' can be used as a wildcard character at any position.
null
.
* @throws IndexOutOfBoundsException If there is no group in the match with the given index.
*/
public String group(int idx) {
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java
index cfbd4edcf8f..135a56f2d6b 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java
@@ -8,8 +8,8 @@ import java.util.concurrent.Callable;
/**
* This is a convenient subclass of {@link RequestDispatch} that implements the {@link Callable} interface. This
* should be used in place of {@link RequestDispatch} if you intend to schedule its execution. Because {@link #call()}
- * does not return until a {@link Response} becomes available, you can use the Future return value of
- * ExecutorService.submit(Callable) to wait for it.
+ * does not return until a {@link Response} becomes available, you can use the Future
return value of
+ * ExecutorService.submit(Callable)
to wait for it.
*
* @author Simon Thoresen Hult
*/
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java
index 0471e05a5f9..e92edf15bba 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java
@@ -9,7 +9,7 @@ import java.util.concurrent.Callable;
* This is a convenient subclass of {@link ResponseDispatch} that implements the {@link Callable} interface. This
* should be used in place of {@link ResponseDispatch} if you intend to schedule its execution. Because {@link #call()}
* does not return until the entirety of the {@link Response} and its content have been consumed, you can use the
- * Future return value of ExecutorService.submit(Callable) to wait for it to complete.
+ * Future
return value of ExecutorService.submit(Callable)
to wait for it to complete.
*
* @author Simon Thoresen Hult
*/
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java
index 4380ad0cbd2..c48798ca2ab 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java
@@ -11,7 +11,7 @@ import java.util.concurrent.*;
/**
* This class implements a Future<Boolean> that is conjunction of zero or more other Future<Boolean>s,
- * i.e. it evaluates to true if, and only if, all its operands evaluate to true. To use this class,
+ * i.e. it evaluates to true
if, and only if, all its operands evaluate to true
. To use this class,
* simply create an instance of it and add operands to it using the {@link #addOperand(ListenableFuture)} method.
This methods calls {@link #newRequest()} to create a new {@link Request}, and then calls {@link
- * Request#connect(ResponseHandler)} on that. This method uses a finally block to make sure that the
+ * Request#connect(ResponseHandler)} on that. This method uses a finally
block to make sure that the
* Request is always {@link Request#release() released}.
This method calls {@link #connect()} to establish a {@link ContentChannel} for the {@link Request}, and then
* iterates through all the ByteBuffers returned by {@link #requestContent()} and writes them to that
- * ContentChannel. This method uses a finally block to make sure that the ContentChannel is always {@link
+ * ContentChannel. This method uses a finally
block to make sure that the ContentChannel is always {@link
* ContentChannel#close(CompletionHandler) closed}.
The returned Future will wait for all CompletionHandlers associated with the Request have been completed, and
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java
index e5e6b752716..22a77968dfd 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java
@@ -82,7 +82,7 @@ public abstract class ResponseDispatch extends ForwardingListenableFuturefinally
block to make sure that the ContentChannel is always
* {@link ContentChannel#close(CompletionHandler) closed}.
The returned Future will wait for all CompletionHandlers associated with the Response have been * completed.
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java index a2bea1566de..6e2895f118b 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java @@ -126,7 +126,7 @@ public abstract class ThreadedRequestHandler extends AbstractRequestHandler { /** *Implement this method if you want to access the {@link Request}'s content using a {@link ContentInputStream}. * If you do not override this method, it will dispatch a {@link Response} to the {@link ResponseHandler} with a - * Response.Status.NOT_IMPLEMENTED status.
+ *Response.Status.NOT_IMPLEMENTED
status.
*
* @param request The Request to handle.
* @param responseHandler The handler to pass the corresponding {@link Response} to.
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java b/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java
index e7039e85e5e..7e913456074 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java
@@ -49,7 +49,7 @@ public abstract class ServerProviderConformanceTest {
private static final int NUM_RUNS_EACH_TEST = 10;
/**
- * This interface declares the adapter between the general conformance test and an actual ServerProvider + *
This interface declares the adapter between the general conformance test and an actual ServerProvider
* implementation. Every test runs as follows:
ServerProvider
under test.
* @param An object that represents a remote client that can connect to the server.
* @param An instance of this exception is thrown within the conformance tests that imply that they will throw an
- * exception. If your ServerProvider is capable of exposing such information, then this class is what you
+ * exception. If your ServerProvider
is capable of exposing such information, then this class is what you
* need to look for in the output.
Convenience method for calling fromLocale(LocaleFactory.fromLanguageTag(languageTag)).
+ *Convenience method for calling fromLocale(LocaleFactory.fromLanguageTag(languageTag))
.
Language
to return.
+ * @return the corresponding Language
, or {@link #UNKNOWN} if not known.
*/
public static Language fromLanguageTag(String languageTag) {
if (languageTag == null) return UNKNOWN;
@@ -540,7 +540,7 @@ public enum Language {
}
/**
- * Returns the Language whose {@link #languageCode()} is equal to locale.getLanguage(), with + *
Returns the Language
whose {@link #languageCode()} is equal to locale.getLanguage()
, with
* the following additions:
Language
to return.
+ * @return The corresponding Language
, or {@link #UNKNOWN} if not known.
*/
public static Language fromLocale(Locale locale) {
String str = locale.getLanguage();
@@ -582,7 +582,7 @@ public enum Language {
/**
* Returns the language from an encoding, or {@link #UNKNOWN} if it cannot be determined.
*
- * @param encoding The name of the encoding to derive the Language from.
+ * @param encoding The name of the encoding to derive the Language
from.
* @return the language given by the encoding, or {@link #UNKNOWN} if not determined.
*/
public static Language fromEncoding(String encoding) {
diff --git a/messagebus/src/main/java/com/yahoo/messagebus/Routable.java b/messagebus/src/main/java/com/yahoo/messagebus/Routable.java
index e761a874ac1..792ec4d27cd 100755
--- a/messagebus/src/main/java/com/yahoo/messagebus/Routable.java
+++ b/messagebus/src/main/java/com/yahoo/messagebus/Routable.java
@@ -60,7 +60,7 @@ public abstract class Routable {
/**
* This is a convenience method for calling {@link CallStack#pop(Routable)} on the {@link CallStack} of this - * Routable. It equals calling routable.getCallStack().pop(routable).
+ * Routable. It equals callingroutable.getCallStack().pop(routable)
.
*
* @return The handler that was popped.
* @see CallStack#pop(Routable)
diff --git a/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingNode.java b/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingNode.java
index 3049639586d..d2d8031a689 100755
--- a/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingNode.java
+++ b/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingNode.java
@@ -258,7 +258,7 @@ public class RoutingNode implements ReplyHandler {
}
/**
- * If a reply has been set containing an error, and {@link #shouldIgnoreResult()} returns true, this method
+ * If a reply has been set containing an error, and {@link #shouldIgnoreResult()} returns true
, this method
* replaces that reply with one that has no error.
*
* @return Whether or not the reply was replaced.
diff --git a/parent/pom.xml b/parent/pom.xml
index 398d136c155..2e22c36cee3 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -279,28 +279,6 @@
level
argument is null.
*/
public Grouping addLevel(GroupingLevel level) {
level.getClass(); // throws NullPointerException
@@ -231,7 +231,7 @@ public class Grouping extends Identifiable {
*
* @param root The group to set as root.
* @return This, to allow chaining.
- * @throws NullPointerException If root argument is null.
+ * @throws NullPointerException If root
argument is null.
*/
public Grouping setRoot(Group root) {
root.getClass(); // throws NullPointerException
@@ -249,7 +249,7 @@ public class Grouping extends Identifiable {
}
/**
- * Sets whether or not grouping should be forced to execute in a single pass. If false, this Grouping + *
Sets whether or not grouping should be forced to execute in a single pass. If false, this Grouping
* might still execute in a single pass due to other constraints.
This class implements a thread-safe, lock-free list of Objects that supports multiple readers and a single writer.
* Because there are no locks or other memory barriers involved, there exists no happens-before relationship
- * among calls to either methods of the ThreadRobustList. This means that there are no guarantees as to when
+ * among calls to either methods of the ThreadRobustList
. This means that there are no guarantees as to when
* (or even if) an item {@link #add(Object)}ed becomes visible through {@link #iterator()}. If visibility is required,
* either use explicit synchronization between reader and writer thread, or move to a different concurrent collection
- * (e.g. CopyOnWriteArrayList).
Because it is lock-free, the ThreadRobustList has minimal overhead to both reading and writing. The
+ * (e.g. CopyOnWriteArrayList
).
Because it is lock-free, the ThreadRobustList
has minimal overhead to both reading and writing. The
* iterator offered by this class always observes the list in a consistent state, and it never throws a
- * ConcurrentModificationException.
The ThreadRobustList does not permit adding null items.
- *The usage of ThreadRobustList has no memory consistency effects.
+ *ConcurrentModificationException
.
+ * The ThreadRobustList
does not permit adding null
items.
The usage of ThreadRobustList
has no memory consistency effects.
Constructs a new instance of this class with an initial capacity of 10.
+ *Constructs a new instance of this class with an initial capacity of 10
.
Returns whether or not this list is empty.
* - * @return true if this list has zero items + * @returntrue
if this list has zero items
*/
public boolean isEmpty() {
return next == 0;
}
/**
- * Adds an item to this list. As opposed to CopyOnWriteArrayList, items added to this list may become + *
Adds an item to this list. As opposed to CopyOnWriteArrayList
, items added to this list may become
* visible to iterators created before a call to this method.
item
is null
*/
public void add(T item) {
if (item == null) {
@@ -74,9 +74,9 @@ public class ThreadRobustListReturns an iterator over the items in this list. As opposed to CopyOnWriteArrayList, this iterator - * may see items added to the ThreadRobustList even if they occur after a call to this method.
- *The returned iterator does not support remove().
+ *Returns an iterator over the items in this list. As opposed to CopyOnWriteArrayList
, this iterator
+ * may see items added to the ThreadRobustList
even if they occur after a call to this method.
The returned iterator does not support remove()
.
This class represents a single node in a tree of TraceNodes. The trace forms a tree where there is a - * branch for each parallel execution, and a node within such a branch for each traced event. As each TraceNode + *
This class represents a single node in a tree of TraceNodes
. The trace forms a tree where there is a
+ * branch for each parallel execution, and a node within such a branch for each traced event. As each TraceNode
* may contain a payload of any type, the trace tree can be used to exchange any thread-safe state between producers and
* consumers in different threads, whether or not the shape of the trace tree is relevant to the particular
* information.
This class uses a {@link ThreadRobustList} for its children. That list allows multiple threads to inspect the - * hierarchy of a TraceNode tree while there are other threads concurrently modifying it, without incurring the - * cost of memory synchronization. The only caveat being that for each TraceNode there can never be more than - * exactly one writer thread. If multiple threads need to mutate a single TraceNode, then the writer threads - * need to synchronize their access on the TraceNode.
+ * hierarchy of aTraceNode
tree while there are other threads concurrently modifying it, without incurring the
+ * cost of memory synchronization. The only caveat being that for each TraceNode
there can never be more than
+ * exactly one writer thread. If multiple threads need to mutate a single TraceNode
, then the writer threads
+ * need to synchronize their access on the TraceNode
.
*
* @author Steinar Knutsen
* @author bratseth
@@ -35,7 +35,7 @@ public class TraceNode {
/**
* Creates a new instance of this class.
* - * @param payload the payload to assign to this, may be null + * @param payload the payload to assign to this, may benull
* @param timestamp the timestamp to assign to this
*/
public TraceNode(Object payload, long timestamp) {
@@ -44,11 +44,11 @@ public class TraceNode {
}
/**
- * Adds another TraceNode as a child to this.
+ *Adds another TraceNode
as a child to this.
child
is not a root TraceNode
* @see #isRoot()
*/
public TraceNode add(TraceNode child) {
@@ -64,12 +64,12 @@ public class TraceNode {
}
/**
- * Returns a read-only iterable of all {@link #payload() payloads} that are instances of payloadType, - * in all its decendants. The payload of this TraceNode is ignored.
+ *Returns a read-only iterable of all {@link #payload() payloads} that are instances of payloadType
,
+ * in all its decendants. The payload of this TraceNode
is ignored.
The payloads are retrieved in depth-first, prefix order.
* * @param payloadType the type of payloads to retrieve - * @return the payloads, never null + * @return the payloads, nevernull
*/
public Returns the payload of this TraceNode, or null if none.
+ *Returns the payload of this TraceNode
, or null if none.
Returns the timestamp of this TraceNode.
+ *Returns the timestamp of this TraceNode
.
Returns the parent TraceNode of this.
+ *Returns the parent TraceNode
of this.
Returns the child TraceNodes of this.
+ *Returns the child TraceNodes
of this.
Returns whether or not this TraceNode is a root node (i.e. it has no parent).
+ *Returns whether or not this TraceNode
is a root node (i.e. it has no parent).
true
if {@link #parent()} returns null
*/
public boolean isRoot() {
return parent == null;
}
/**
- * Returns the root TraceNode of the tree that this TraceNode belongs to.
+ *Returns the root TraceNode
of the tree that this TraceNode
belongs to.
Visits this TraceNode and all of its descendants in depth-first, prefix order.
+ *Visits this TraceNode
and all of its descendants in depth-first, prefix order.
visitor
parameter.
diff --git a/yolean/src/main/java/com/yahoo/yolean/trace/TraceVisitor.java b/yolean/src/main/java/com/yahoo/yolean/trace/TraceVisitor.java
index c45823da19a..23525b65571 100644
--- a/yolean/src/main/java/com/yahoo/yolean/trace/TraceVisitor.java
+++ b/yolean/src/main/java/com/yahoo/yolean/trace/TraceVisitor.java
@@ -13,17 +13,17 @@ public abstract class TraceVisitor {
* Visits a {@link TraceNode}. Called by {@link TraceNode#accept(TraceVisitor)}, before visiting its * children.
* - * @param node the TraceNode being visited + * @param node theTraceNode
being visited
* @see TraceNode#accept(TraceVisitor)
*/
public abstract void visit(TraceNode node);
/**
* Enters a {@link TraceNode}. This method is called after {@link #visit(TraceNode)}, but before visiting its - * children. Note that this method is NOT called if a TraceNode has zero children.
+ * children. Note that this method is NOT called if aTraceNode
has zero children.
* The default implementation of this method does nothing.
* - * @param node the TraceNode being entered + * @param node theTraceNode
being entered
* @see #leaving(TraceNode)
*/
@SuppressWarnings("UnusedParameters")
@@ -33,10 +33,10 @@ public abstract class TraceVisitor {
/**
* Leaves a {@link TraceNode}. This method is called after {@link #entering(TraceNode)}, and after visiting its - * children. Note that this method is NOT called if a TraceNode has zero children.
+ * children. Note that this method is NOT called if aTraceNode
has zero children.
* The default implementation of this method does nothing.
* - * @param node the TraceNode being left + * @param node theTraceNode
being left
*/
@SuppressWarnings("UnusedParameters")
public void leaving(TraceNode node) {
--
cgit v1.2.3