Examples of DeploymentStore


Examples of org.jboss.as.console.client.shared.model.DeploymentStore

    }

    @Test
    public void loadDeployments() throws Exception
    {
        DeploymentStore store = injector.getInstance(DeploymentStore.class);
        TestCallback<List<DeploymentRecord>> callback = new TestCallback<List<DeploymentRecord>>() {

            @Override
            public void onSuccess(List<DeploymentRecord> result) {
                assertTrue("Expected no deployments", result.isEmpty());
                didCallback = true;
            }
        };

        ServerGroupRecord group = new ServerGroupImpl();
        group.setGroupName("main-server-group");
        group.setProfileName("default");

        //group.setJvm(new Jvm());
        group.setSocketBinding("standard-sockets");
        List<ServerGroupRecord> groups = new ArrayList<ServerGroupRecord>();
        groups.add(group);

        store.loadDeployments(groups, callback);

        synchronized (callback) {
            callback.wait(500);
        }
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.