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