import java.rmi.Remote;

public interface MetaDataInterface extends Remote {
    // CALLS FROM STORAGE SERVER
    void addStorageServer(String hostname, String top_dir) throws Exception;

    void delStorageServer(String hostname, String top_dir) throws Exception;

    void addStorageItem(String item, NodeType nodeType) throws Exception;

    void delStorageItem(String item) throws Exception;

    // CALLS FROM CLIENT
    String find(String item) throws Exception;

    Stat lstat(String item) throws Exception;

    boolean checkExists(String item) throws Exception;

    boolean isDir(String item) throws Exception;

    boolean isFile(String item) throws Exception;
}

import java.rmi.Remote;

public interface MetaDataInterface extends Remote {
    // CALLS FROM STORAGE SERVER
    void addStorageServer(String hostname, String top_dir) throws Exception;

    void delStorageServer(String hostname, String top_dir) throws Exception;

    void addStorageItem(String item, NodeType type) throws Exception;

    void delStorageItem(String item) throws Exception;

    // CALLS FROM CLIENT
    String find(String item) throws Exception;

    Stat lstat(String item) throws Exception;

    boolean isDir(String item) throws Exception;

    boolean isFile(String item) throws Exception;

    boolean checkExists(String item) throws Exception;
}

Reorder methods, change argument name
Reorder methods, change argument name

Signed-off-by: Nuno Azevedo <7b5d26f0698b3f6c15a9789c87d309f80e3742b1@movvo.com>
