Skip to content

Commit

Permalink
GEODE-17: fix javadoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmeiliao committed Jul 22, 2016
1 parent fe28192 commit f230349
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,63 @@
*/
package com.gemstone.gemfire.distributed.internal.membership.gms.mgr;

import com.gemstone.gemfire.*;
import java.io.IOException;
import java.io.NotSerializableException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

import org.apache.logging.log4j.Logger;

import com.gemstone.gemfire.CancelException;
import com.gemstone.gemfire.ForcedDisconnectException;
import com.gemstone.gemfire.GemFireConfigException;
import com.gemstone.gemfire.InternalGemFireError;
import com.gemstone.gemfire.SystemConnectException;
import com.gemstone.gemfire.SystemFailure;
import com.gemstone.gemfire.ToDataException;
import com.gemstone.gemfire.cache.Cache;
import com.gemstone.gemfire.distributed.DistributedMember;
import com.gemstone.gemfire.distributed.DistributedSystem;
import com.gemstone.gemfire.distributed.DistributedSystemDisconnectedException;
import com.gemstone.gemfire.distributed.Locator;
import com.gemstone.gemfire.distributed.internal.*;
import com.gemstone.gemfire.distributed.internal.AdminMessageType;
import com.gemstone.gemfire.distributed.internal.DMStats;
import com.gemstone.gemfire.distributed.internal.DSClock;
import com.gemstone.gemfire.distributed.internal.DistributionConfig;
import com.gemstone.gemfire.distributed.internal.DistributionException;
import com.gemstone.gemfire.distributed.internal.DistributionManager;
import com.gemstone.gemfire.distributed.internal.DistributionMessage;
import com.gemstone.gemfire.distributed.internal.InternalDistributedSystem;
import com.gemstone.gemfire.distributed.internal.InternalLocator;
import com.gemstone.gemfire.distributed.internal.OverflowQueueWithDMStats;
import com.gemstone.gemfire.distributed.internal.SizeableRunnable;
import com.gemstone.gemfire.distributed.internal.StartupMessage;
import com.gemstone.gemfire.distributed.internal.direct.DirectChannel;
import com.gemstone.gemfire.distributed.internal.direct.DirectChannelListener;
import com.gemstone.gemfire.distributed.internal.direct.ShunnedMemberException;
import com.gemstone.gemfire.distributed.internal.membership.*;
import com.gemstone.gemfire.distributed.internal.membership.DistributedMembershipListener;
import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember;
import com.gemstone.gemfire.distributed.internal.membership.MembershipManager;
import com.gemstone.gemfire.distributed.internal.membership.MembershipTestHook;
import com.gemstone.gemfire.distributed.internal.membership.NetView;
import com.gemstone.gemfire.distributed.internal.membership.QuorumChecker;
import com.gemstone.gemfire.distributed.internal.membership.gms.GMSMember;
import com.gemstone.gemfire.distributed.internal.membership.gms.Services;
import com.gemstone.gemfire.distributed.internal.membership.gms.SuspectMember;
Expand All @@ -51,16 +97,6 @@
import com.gemstone.gemfire.internal.tcp.ConnectExceptions;
import com.gemstone.gemfire.internal.tcp.MemberShunnedException;
import com.gemstone.gemfire.internal.util.Breadcrumbs;
import org.apache.logging.log4j.Logger;

import java.io.IOException;
import java.io.NotSerializableException;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.locks.*;

public class GMSMembershipManager implements MembershipManager, Manager
{
Expand Down Expand Up @@ -2034,7 +2070,6 @@ public void run() {
*
* Concurrency: protected by {@link #latestViewLock} ReentrantReadWriteLock
*
* @guarded.By latestViewLock
* @return true if the given member is a zombie
*/
public boolean isShunned(DistributedMember m) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public static Object postProcess(String regionPath, Object key, Object result){
* @param className
* @param expectedClazz
* @param <T>
* @return
* @return the expected object loadded by using the className
*/
public static <T> T getObjectOfTypeFromClassName(String className, Class<T> expectedClazz) {
Class actualClass = null;
Expand Down Expand Up @@ -407,7 +407,7 @@ public static <T> T getObjectOfTypeFromClassName(String className, Class<T> expe
* @param factoryMethodName
* @param expectedClazz
* @param <T>
* @return
* @return the expected object loaded by the factory method
*/
public static <T> T getObjectOfTypeFromFactoryMethod(String factoryMethodName, Class<T> expectedClazz){
T actualObject = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,29 @@ public enum Operation {
}

/**
* Returns the resource, could be either DATA or CLUSTER
* @return
* Returns
* @return the resource, could be either DATA or CLUSTER
*/
public Resource getResource() {
return resource;
}

/**
* Returns the operation, could be either MANAGE, WRITE or READ
* @return
* @return the operation, could be either MANAGE, WRITE or READ
*/
public Operation getOperation() {
return operation;
}

/**
* returns the regionName, could be "*", meaning all regions
* @return
* @return the regionName, could be "*", meaning all regions
*/
public String getRegionName() {
return regionName;
}

/**
* returns the key, could be "*" meaning all keys.
* @return
* @return the key, could be "*" meaning all keys.
*/
public String getKey() {
return key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void init(final Properties securityProps) {
* the key of the value that's been accessed. This could be null.
* @param value
* the value, this could be null.
* @return
* @return the processed value
*/
@Override
public Object processRegionValue(Principal principal,
Expand Down

0 comments on commit f230349

Please sign in to comment.