Skip to content

Commit a07e21d

Browse files
committed
Clean up various javadocs to reduce javadoc warnings during build
RB=1921104 R=ybi,juncwang,kbalasub A=kbalasub
1 parent d2d1c09 commit a07e21d

File tree

70 files changed

+121
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+121
-172
lines changed

CHANGELOG

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
28.1.4
22
------
3-
3+
(RB=1921104)
4+
Clean up some javadocs to reduce javadoc warnings during build
45

56
28.1.3
67
------

d2/src/main/java/com/linkedin/d2/balancer/config/BackupRequestsConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
/**
34-
* This class converts {@link BackupRequestsBackupRequestsConfigurationArray} into a List
34+
* This class converts {@link BackupRequestsConfigurationArray} into a {@link List}
3535
* that can be stored in zookeeper and vice versa.
3636
*
3737
* @author Jaroslaw Odzga ([email protected])

d2/src/main/java/com/linkedin/d2/balancer/event/D2MonitorBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public Map<URI, D2MonitorUriInfoBuilder> getUriInfoBuilderMap()
6060
* ClusterStats is not required to reset as the new snapshot can always overwrite the old one.
6161
* However it is necessary to clean uriInfoBuilderMap since we only want to keep track of the
6262
* unhealthy hosts in the past update interval.
63-
*
64-
* @return
6563
*/
6664
public D2MonitorBuilder reset()
6765
{
@@ -76,7 +74,6 @@ public D2MonitorBuilder reset()
7674
* The interval is the duration between this build and previous build (or when D2MonitorBuilder is created).
7775
*
7876
* @param intervalMs since last emitting
79-
* @return
8077
*/
8178
public final D2Monitor build(long intervalMs)
8279
{

d2/src/main/java/com/linkedin/d2/balancer/simple/SimpleLoadBalancer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,11 @@ public void shutdown(PropertyEventShutdownCallback shutdown)
142142

143143
/**
144144
* Given a Request, returns a TransportClient that can handle requests for the Request.
145-
*
145+
* The callback is given a client that can be called to retrieve data for the URN.
146146
*
147147
* @param request
148148
* A request whose URI is a URL of the format "d2://&gt;servicename&lt;/optional/path".
149149
* @param requestContext context for this request
150-
* @return A client that can be called to retrieve data for the URN.
151150
* @throws ServiceUnavailableException
152151
* If the load balancer can't figure out how to reach a service for the given
153152
* URN, an ServiceUnavailableException will be thrown.

d2/src/main/java/com/linkedin/d2/balancer/strategies/degrader/DegraderLoadBalancerQuarantine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private enum QuarantineStates
118118
* healthCheckNTimes responsible for checking the health of the transportClient multiple times
119119
* at the given interval.
120120
*
121-
* @param n: repeat times
121+
* @param n repeat times
122122
*/
123123
private void healthCheckNTimes(int n)
124124
{
@@ -235,7 +235,7 @@ public void shutdown()
235235
/**
236236
* When resetInterval set to true, reset the interval time to Update Interval time.
237237
* Otherwise reuse the existing interval time
238-
* @param resetInterval:
238+
* @param resetInterval
239239
*/
240240
public void reset(boolean resetInterval)
241241
{

d2/src/main/java/com/linkedin/d2/balancer/strategies/degrader/DegraderLoadBalancerStrategyV3.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
/**
6464
* Implementation of {@link LoadBalancerStrategy} with additional supports partitioning of services whereas
65-
* the the prior implmentations do not.
65+
* the the prior implementations do not.
6666
*
6767
* @author David Hoa ([email protected])
6868
* @author Oby Sumampouw ([email protected])
@@ -1064,8 +1064,7 @@ public Ring<URI> getRing(long clusterGenerationId, int partitionId, List<Tracker
10641064

10651065
/**
10661066
* this call returns the ring. Ring can be null depending whether the state has been initialized or not
1067-
* @param partitionId
1068-
* @return
1067+
* @param partitionId partition id
10691068
*/
10701069
public Ring<URI> getRing(int partitionId)
10711070
{

d2/src/main/java/com/linkedin/d2/balancer/strategies/degrader/PointBasedConsistentHashRingFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public Map<T, List<Point<T>>> getPointsMap()
115115
* is configurable from cfg2. Also POINTS_CLEANUP_MIN_UNUSED_ENTRY is used to make sure we do not waste
116116
* time on clean up when the total host number is small.
117117
*
118-
* @param size: the size of new URI list
118+
* @param size the size of new URI list
119119
*/
120120
private void clearPoints(int size)
121121
{

d2/src/main/java/com/linkedin/d2/balancer/util/HostSet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import java.util.Map;
66

77
/**
8-
* This is the return type of KepMapper.getAllPartitionsMultipleHosts
9-
* {@see com.linkedin.d2.balancer.util.HostToKeyMapper}
8+
* This is the return type of {@link com.linkedin.d2.balancer.KeyMapper#getAllPartitionsMultipleHosts(URI, int)}.
109
*
10+
* @see com.linkedin.d2.balancer.util.HostToKeyMapper
1111
* @author Xialin Zhu
1212
*/
1313
public interface HostSet

d2/src/main/java/com/linkedin/d2/balancer/util/hashing/ConsistentHashRing.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class ConsistentHashRing<T> implements Ring<T>
5656

5757
/**
5858
* Create a consistent hash ring with given points
59-
* @param points: Point list;
59+
* @param points Point list;
6060
*
6161
* Note: ConsistentHashRing takes over the ownership for points and assume no
6262
* changes to the list from outside.

d2/src/main/java/com/linkedin/d2/balancer/util/hashing/HashRingProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public interface HashRingProvider
6666
*
6767
* @param serviceName for which we want to retrieve the corresponding hashFunction
6868
* @return the hashFunction used to hash requests to the given service.
69-
* @Throws ServiceUnavailableException - if the requested service is not available.
69+
* @throws ServiceUnavailableException - if the requested service is not available.
7070
*/
7171
HashFunction<Request> getRequestHashFunction(String serviceName) throws ServiceUnavailableException;
7272

0 commit comments

Comments
 (0)