Package org.jboss.as.console.client.domain.events

Examples of org.jboss.as.console.client.domain.events.StaleModelEvent


                {
                    Console.MODULES.getMessageCenter().notify(
                            new Message("Successfully deleted server config "+selectedRecord.getName())
                    );

                    getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_CONFIGURATIONS));

                    loadDefaultForHost(selectedHost);
                }
                else
                {
View Full Code Here


                    {
                        Console.MODULES.getMessageCenter().notify(
                                new Message("Deleted server group "+deletion.getGroupName())
                        );

                        getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_GROUPS));
                    }
                    else
                    {
                        Console.MODULES.getMessageCenter().notify(
                                new Message("Failed to delete "+deletion.getGroupName(), Message.Severity.Error)
View Full Code Here

                    Console.MODULES.getMessageCenter().notify(
                            new Message("Created " + newGroup.getGroupName(), Message.Severity.Info)
                    );


                    getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_GROUPS));

                    loadServerGroup(newGroup.getGroupName());


                } else {
View Full Code Here

                                    if(!keepPolling) {

                                        getView().updateInstances(hostName, result);

                                        // force reload of server selector (LHS nav)
                                        getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_INSTANCES));

                                    }
                                }
                            });
                        }
View Full Code Here

                    Console.info(Console.MESSAGES.added("Server Configuration ") + newServer.getName());

                    Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                        @Override
                        public void execute() {
                            getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_CONFIGURATIONS));
                        }
                    });

                    loadServerConfigurations(newServerName);
View Full Code Here

                {
                    Console.MODULES.getMessageCenter().notify(
                            new Message(Console.MESSAGES.deleted("Server Configuration ")+server.getName())
                    );

                    getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_CONFIGURATIONS));

                    loadServerConfigurations(null);
                }
                else
                {
View Full Code Here

    @Override
    public void persist(ServerGroupRecord updatedEntity) {

        deleteGroup(updatedEntity, false);
        results.add(updatedEntity);
        bus.fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_GROUPS));
    }
View Full Code Here

        if(removal!=null)
        {
            results.remove(removal);
        }

        if(fire) bus.fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_GROUPS));

        return removal!=null;
    }
View Full Code Here

        serverGroupStore.delete(group, new SimpleCallback<Boolean>() {
            @Override
            public void onSuccess(Boolean wasSuccessful) {
                if (wasSuccessful) {
                    Console.info(Console.MESSAGES.deleted(group.getGroupName()));
                    getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_GROUPS));
                } else {
                    Console.error(Console.MESSAGES.deletionFailed(group.getGroupName()));
                }

                loadServerGroups();
View Full Code Here

                if (success) {

                    Console.info(Console.MESSAGES.added(newGroup.getGroupName()));

                    getEventBus().fireEvent(new StaleModelEvent(StaleModelEvent.SERVER_GROUPS));

                    loadServerGroups();

                } else {
                    Console.error(Console.MESSAGES.addingFailed(newGroup.getGroupName()));
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.domain.events.StaleModelEvent

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.