Package com.sun.grid.jgdi.configuration

Examples of com.sun.grid.jgdi.configuration.ShareTree


    }

    //SHARETREE
    @OptionAnnotation(value = "-astree", min = 0)
    public void addShareTree(final OptionInfo oi) throws JGDIException {
        ShareTree stree = null;
        try {
            stree = jgdi.getShareTree("Root");
        } catch (JGDIException je) {
            // ignore no sharetree defined and fill in a template element instead
        }
View Full Code Here


        addShareTreeFromFile(oi);
    }

    @OptionAnnotation(value = "-sstree", min = 0)
    public void showShareTree(final OptionInfo oi) throws JGDIException {
        ShareTree stree = jgdi.getShareTree("Root");
        out.println(showShareTree(stree, "Root", true));
    }
View Full Code Here

        out.println(showShareTree(stree, "Root", true));
    }

    @OptionAnnotation(value = "-dstree", min = 0)
    public void deleteShareTree(final OptionInfo oi) throws JGDIException {
        ShareTree empty = new ShareTreeImpl(true);
        List<JGDIAnswer> answers = new LinkedList<JGDIAnswer>();
        jgdi.deleteShareTreeWithAnswer(answers);
        printAnswers(answers);
    }
View Full Code Here

     * @return
     * @throws com.sun.grid.jgdi.JGDIException
     */
    String showShareTreeNode(final OptionInfo oi) throws JGDIException {
        final String name = oi.getFirstArg();
        ShareTree stree = jgdi.getShareTree(name);
        return showShareTree(stree, name, false);
    }
View Full Code Here

        StringBuilder sb = new StringBuilder();
        List<ShareTree> sharetree = new LinkedList<ShareTree>();
        List<ShareTree> childList;
        String childStr;
        String stName;
        ShareTree tempTree;
        sharetree.add(node);
        while (!sharetree.isEmpty()) {
            node = sharetree.remove(0);
            //Add children to queue
            childList = new LinkedList<ShareTree>();
View Full Code Here

    private static DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);

    public void eventOccured(Event evt) {
        System.out.println(evt);
        if (evt instanceof ShareTreeModEvent) {
            ShareTree st = ((ShareTreeModEvent)evt).get();
            System.out.println(st.dump());
        }
        System.out.flush();
    }
View Full Code Here

TOP

Related Classes of com.sun.grid.jgdi.configuration.ShareTree

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.