private CacheInfo setCacheConfigValue(CacheInfo c, int opCode, int value) throws AdminException {

    if (c.isClosed()) {
      return c;
    }
    CacheConfigResponse resp =
        (CacheConfigResponse) sendAndWait(CacheConfigRequest.create(c, opCode, value));
    if (resp.getException() != null) {
      Exception ex = resp.getException();
      throw new AdminException(ex.getMessage(), ex);

    } else if (resp.getCacheInfo() == null) {
      c.setClosed();
      return c;

    } else {
      return resp.getCacheInfo();
    }
  }
Changes a Cache configuration value in a remote cache by sending the remote member a
{@link CacheConfigRequest}.

@param c The remote cache to be changed
@param opCode The code of the operation to perform
@param value A value that is an argument to the operation

@throws AdminException If a problem is encountered in the remote VM while changing the
        configuration.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/RemoteGemFireVM.java