code: public boolean setReplication(String src,
                                  short replication
                                  ) throws IOException {
      try {
        return namenode.setReplication(src, replication);
      } catch(RemoteException re) {
        throw re.unwrapRemoteException(AccessControlException.class,
                                       NSQuotaExceededException.class,
                                       DSQuotaExceededException.class);
      }
    }
docs: Set replication for an existing file.
  
  @see ClientProtocol#setReplication(String, short)
  @param replication
  @throws IOException
  @return true is successful or false if file does not exist