/** * @param guid * @return * @throws IOException */ public byte[] get(int guid) throws IOException { Finger succ = locateSuccessor(guid); if (succ != null) { ChordMessageInterface succChord = rmiChord(succ.getIp(), succ.getPort()); return succChord.read( guid); // Writes bytes from the specified byte array to this file output stream } // TODO: read the file // before calling this method you need to find the node using // locateSuccessor. return null; }