Package com.flaptor.hounder

Examples of com.flaptor.hounder.IRemoteIndexUpdater


        return host + ":" + String.valueOf(port);
    }


    public static void main(String[] args) throws Exception {
        IRemoteIndexUpdater updater = new IndexUpdatesListenerStub(Integer.parseInt(args[1]), args[0]);
        IndexDescriptor idxDesc = new IndexDescriptor("0of1@defaultCluster");
        if (args[2].contains(":")) {
            idxDesc.setRsyncAccessString(args[2].split(":")[0]);
            idxDesc.setLocalPath(args[2].split(":")[1]);
        } else {
            idxDesc.setRsyncAccessString("");
            idxDesc.setLocalPath(args[2]);
        }
        System.out.println("Updating " + idxDesc.getRemotePath() +" : " + updater.setNewIndex(idxDesc));
    }
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.IRemoteIndexUpdater

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.