Package com.edgytech.swingfast

Examples of com.edgytech.swingfast.FormDialog.show()


        if (index.containsField("expireAfterSeconds")) {
            isTTL = true;
            ttl = index.getLong("expireAfterSeconds");
        }
        setLongFieldValue(Item.expireAfterSeconds, ttl);
        if (!dialog.show())
            return;
       
        long newTTL = getLongFieldValue(Item.expireAfterSeconds);
        if (newTTL != ttl) {
            BasicDBObject cmd = new BasicDBObject("collMod", getIndexNode().getCollectionNode().getCollection().getName());
View Full Code Here


        list.structureComponent();
    }

    public void addOperation(ButtonBase button) {
        FormDialog od = (FormDialog) getBoundUnit(Item.addOperationDialog);
        if (!od.show()) {
            return;
        }
        String op = getStringFieldValue(Item.operation);
        BasicDBObject opObj = editOperation(null, "$" + op);
View Full Code Here

        ComboBox combo = (ComboBox) getBoundUnit(Item.rsShard);
        combo.value = 0;
        combo.items = getRouterNode().getShardNames();
        combo.structureComponent();

        if (!dialog.show())
            return;
       
        final BasicDBObject cmd = new BasicDBObject("removeshard", getStringFieldValue(Item.rsShard));
        final DB db = getRouterNode().getMongoClient().getDB("admin");
        new DbJobCmd(db, cmd, this, null).addJob();
View Full Code Here

                setStringFieldValue(Item.balStartTime, window.getString("start"));
                setStringFieldValue(Item.balStopTime, window.getString("stop"));
            }
        }

        if (!diag.show())
            return;
       
        if (balDoc == null)
            balDoc = new BasicDBObject("_id", "balancer");
        int stopped = getIntFieldValue(Item.balStopped);
View Full Code Here

        }
        result.put("shards", shardList);

        FormDialog dia = (FormDialog) getBoundUnit(Item.regenRSList);
        dia.setStringFieldValue(Item.regenRSListArea, txt);
        if (!dia.show()) {
            return;
        }

        DB config = cmongo.getDB("config");
View Full Code Here

        final DBCollection chunks = config.getCollection("chunks");
        long count = chunks.count(new BasicDBObject("ns", ns));
        if (count > 0) {
            dia = (FormDialog) getBoundUnit(Item.regenDeleteChunks);
            if (dia.show()) {
                chunks.remove(new BasicDBObject("ns", ns));
            } else {
                return;
            }
        }
View Full Code Here

        if (!hasId) {
            shardKeyFilter.put("_id", 0);
        }

        dia = (FormDialog) getBoundUnit(Item.regenConfirm);
        if (!dia.show()) {
            return;
        }

        // now fetch all records from each shard
        final AtomicInteger todo = new AtomicInteger(mongoToShard.size());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.