Search in sources :

Example 11 with Server

use of org.jboss.hal.core.runtime.server.Server in project console by hal.

the class ServerGroupActions method destroy.

public void destroy(ServerGroup serverGroup) {
    List<Server> startedServers = serverGroup.getServers(Server::isStarted);
    DialogFactory.showConfirmation(resources.messages().destroy(serverGroup.getName()), resources.messages().destroyServerGroupQuestion(serverGroup.getName()), () -> {
        prepare(serverGroup, startedServers, Action.DESTROY);
        Operation operation = new Operation.Builder(serverGroup.getAddress(), DESTROY_SERVERS).build();
        dispatcher.execute(operation, result -> repeatCompositeUntil(dispatcher, serverGroupTimeout(serverGroup, Action.DESTROY), readServerConfigStatus(startedServers), checkServerConfigStatus(startedServers.size(), STOPPED, DISABLED)).subscribe(new ServerGroupTimeoutCallback(serverGroup, startedServers, resources.messages().destroyServerGroupSuccess(serverGroup.getName()))), new ServerGroupFailedCallback(serverGroup, startedServers, resources.messages().destroyServerError(serverGroup.getName())), new ServerGroupExceptionCallback(serverGroup, startedServers, resources.messages().destroyServerError(serverGroup.getName())));
    });
}
Also used : Server(org.jboss.hal.core.runtime.server.Server) Operation(org.jboss.hal.dmr.Operation)

Example 12 with Server

use of org.jboss.hal.core.runtime.server.Server in project console by hal.

the class TestStep method testConnection.

private void testConnection() {
    Context context = wizard().getContext();
    List<Task<FlowContext>> tasks = new ArrayList<>();
    if (!context.isCreated()) {
        // add data source
        tasks.add(flowContext -> dispatcher.execute(addOperation(context, statementContext)).doOnSuccess((CompositeResult result) -> context.setCreated(true)).doOnError(throwable -> {
            flowContext.set(WIZARD_TITLE, resources.constants().testConnectionError());
            flowContext.set(WIZARD_TEXT, resources.messages().dataSourceAddError());
        }).toCompletable());
    }
    // check running server(s)
    tasks.addAll(runningServers(environment, dispatcher, properties(PROFILE_NAME, statementContext.selectedProfile())));
    // test connection
    tasks.add(flowContext -> {
        List<Server> servers = flowContext.get(TopologyTasks.SERVERS);
        ResourceAddress address;
        if (!servers.isEmpty()) {
            Server server = servers.get(0);
            address = server.getServerAddress();
        } else if (environment.isStandalone()) {
            address = ResourceAddress.root();
        } else {
            flowContext.set(WIZARD_TITLE, resources.constants().testConnectionError());
            flowContext.set(WIZARD_TEXT, SafeHtmlUtils.fromString(resources.constants().noRunningServers()));
            return Completable.error(new FlowException(resources.messages().testConnectionErrorDomain(), flowContext));
        }
        address.add(SUBSYSTEM, DATASOURCES).add(context.dataSource.isXa() ? XA_DATA_SOURCE : DATA_SOURCE, context.dataSource.getName());
        Operation operation = new Operation.Builder(address, TEST_CONNECTION_IN_POOL).build();
        return dispatcher.execute(operation).doOnError(throwable -> {
            flowContext.set(WIZARD_TITLE, resources.constants().testConnectionError());
            flowContext.set(WIZARD_TEXT, resources.messages().testConnectionError(context.dataSource.getName()));
        }).toCompletable();
    });
    series(new FlowContext(progress.get()), tasks).subscribe(new Outcome<FlowContext>() {

        @Override
        public void onError(FlowContext flowContext, Throwable error) {
            String title;
            SafeHtml text;
            if (flowContext == null) {
                title = resources.constants().unknownError();
                text = resources.messages().unknownError();
            } else {
                title = flowContext.get(WIZARD_TITLE);
                text = flowContext.get(WIZARD_TEXT);
            }
            wizard().showError(title, text, error.getMessage(), false);
        }

        @Override
        public void onSuccess(FlowContext flowContext) {
            wizard().showSuccess(resources.constants().testConnectionSuccess(), resources.messages().testConnectionSuccess(context.dataSource.getName()), false);
        }
    });
}
Also used : StatementContext(org.jboss.hal.meta.StatementContext) FlowContext(org.jboss.hal.flow.FlowContext) Completable(rx.Completable) DataSourceWizard.addOperation(org.jboss.hal.client.configuration.subsystem.datasource.wizard.DataSourceWizard.addOperation) CSS.blankSlatePf(org.jboss.hal.resources.CSS.blankSlatePf) Elements.div(org.jboss.gwt.elemento.core.Elements.div) Provider(javax.inject.Provider) Environment(org.jboss.hal.config.Environment) StatementContext(org.jboss.hal.meta.StatementContext) CSS.btnLg(org.jboss.hal.resources.CSS.btnLg) ResourceAddress(org.jboss.hal.dmr.ResourceAddress) FlowContext(org.jboss.hal.flow.FlowContext) Outcome(org.jboss.hal.flow.Outcome) ArrayList(java.util.ArrayList) CSS.btnPrimary(org.jboss.hal.resources.CSS.btnPrimary) Task(org.jboss.hal.flow.Task) TopologyTasks(org.jboss.hal.core.runtime.TopologyTasks) Progress(org.jboss.hal.flow.Progress) HTMLElement(elemental2.dom.HTMLElement) TopologyTasks.runningServers(org.jboss.hal.core.runtime.TopologyTasks.runningServers) Server(org.jboss.hal.core.runtime.server.Server) ModelNodeHelper.properties(org.jboss.hal.dmr.ModelNodeHelper.properties) SafeHtmlUtils(com.google.gwt.safehtml.shared.SafeHtmlUtils) Elements.button(org.jboss.gwt.elemento.core.Elements.button) CompositeResult(org.jboss.hal.dmr.CompositeResult) Operation(org.jboss.hal.dmr.Operation) Ids(org.jboss.hal.resources.Ids) EventType.click(org.jboss.gwt.elemento.core.EventType.click) CSS.btn(org.jboss.hal.resources.CSS.btn) List(java.util.List) WizardStep(org.jboss.hal.ballroom.wizard.WizardStep) Dispatcher(org.jboss.hal.dmr.dispatch.Dispatcher) Resources(org.jboss.hal.resources.Resources) ModelDescriptionConstants(org.jboss.hal.dmr.ModelDescriptionConstants) FlowException(org.jboss.hal.flow.FlowException) Flow.series(org.jboss.hal.flow.Flow.series) SafeHtml(com.google.gwt.safehtml.shared.SafeHtml) Task(org.jboss.hal.flow.Task) Server(org.jboss.hal.core.runtime.server.Server) ResourceAddress(org.jboss.hal.dmr.ResourceAddress) CompositeResult(org.jboss.hal.dmr.CompositeResult) SafeHtml(com.google.gwt.safehtml.shared.SafeHtml) ArrayList(java.util.ArrayList) DataSourceWizard.addOperation(org.jboss.hal.client.configuration.subsystem.datasource.wizard.DataSourceWizard.addOperation) Operation(org.jboss.hal.dmr.Operation) FlowContext(org.jboss.hal.flow.FlowContext) FlowException(org.jboss.hal.flow.FlowException)

Example 13 with Server

use of org.jboss.hal.core.runtime.server.Server in project console by hal.

the class ServerColumn method addServer.

private void addServer(boolean browseByHost) {
    if (browseByHost) {
        AddressTemplate template = serverConfigTemplate(statementContext.selectedHost());
        String id = Ids.build(HOST, statementContext.selectedHost(), SERVER, Ids.ADD);
        List<String> attributes = asList(AUTO_START, GROUP, SOCKET_BINDING_DEFAULT_INTERFACE, SOCKET_BINDING_GROUP, SOCKET_BINDING_PORT_OFFSET, UPDATE_AUTO_START_WITH_SERVER_STATUS);
        crud.add(id, Names.SERVER, template, attributes, createUniqueValidation(), (name, address) -> refresh(RESTORE_SELECTION));
    } else {
        // load all available hosts to show in the copy dialog
        Operation operation = new Operation.Builder(ResourceAddress.root(), READ_CHILDREN_NAMES_OPERATION).param(CHILD_TYPE, HOST).build();
        dispatcher.execute(operation, result -> {
            List<String> hosts = new ArrayList<>();
            result.asList().forEach(m -> hosts.add(m.asString()));
            // get the first host, only to retrieve the r-r-d for server-config
            // as /host=*/server-config=*:read-operation-description(name=add) does not work
            AddressTemplate template = serverConfigTemplate(hosts.get(0));
            metadataProcessor.lookup(template, progress.get(), new SuccessfulMetadataCallback(eventBus, resources) {

                @Override
                public void onMetadata(Metadata metadata) {
                    String id = Ids.build(SERVER_GROUP, statementContext.selectedServerGroup(), SERVER, FORM);
                    SingleSelectBoxItem hostFormItem = new SingleSelectBoxItem(HOST, Names.HOST, hosts, false);
                    hostFormItem.setRequired(true);
                    NameItem nameItem = new NameItem();
                    ModelNodeForm<ModelNode> form = new ModelNodeForm.Builder<>(id, metadata).unboundFormItem(nameItem, 0).unboundFormItem(hostFormItem, 1, resources.messages().addServerHostHelp()).customFormItem(GROUP, attributeDescription -> {
                        TextBoxItem groupItem = new TextBoxItem(GROUP, resources.constants().group());
                        groupItem.setEnabled(false);
                        return groupItem;
                    }).fromRequestProperties().build();
                    AddResourceDialog dialog = new AddResourceDialog(resources.messages().addServerTitle(), form, (resource, payload) -> {
                        payload.get(GROUP).set(statementContext.selectedServerGroup());
                        String serverName = nameItem.getValue();
                        ResourceAddress address = serverConfigTemplate(hostFormItem.getValue()).resolve(statementContext, serverName);
                        crud.add(serverName, address, payload, resources.messages().addResourceSuccess(Names.SERVER, serverName), (name, address1) -> refresh(RESTORE_SELECTION));
                    });
                    dialog.getForm().<String>getFormItem(NAME).addValidationHandler(createUniqueValidation());
                    dialog.show();
                    form.<String>getFormItem(GROUP).setValue(statementContext.selectedServerGroup());
                }
            });
        });
    }
}
Also used : AddressTemplate(org.jboss.hal.meta.AddressTemplate) Provider(javax.inject.Provider) Environment(org.jboss.hal.config.Environment) ServerSelectionEvent(org.jboss.hal.core.runtime.server.ServerSelectionEvent) Constraint(org.jboss.hal.meta.security.Constraint) ItemActionFactory(org.jboss.hal.core.finder.ItemActionFactory) StatementContext(org.jboss.hal.meta.StatementContext) ItemDisplay(org.jboss.hal.core.finder.ItemDisplay) AddResourceDialog(org.jboss.hal.core.mbui.dialog.AddResourceDialog) FinderSegment(org.jboss.hal.core.finder.FinderSegment) ResourceAddress(org.jboss.hal.dmr.ResourceAddress) ManagementModel(org.jboss.hal.meta.ManagementModel) TextBoxItem(org.jboss.hal.ballroom.form.TextBoxItem) TopologyTasks(org.jboss.hal.core.runtime.TopologyTasks) AuthorisationDecision(org.jboss.hal.meta.security.AuthorisationDecision) Column(org.jboss.hal.spi.Column) HTMLElement(elemental2.dom.HTMLElement) Arrays.asList(java.util.Arrays.asList) Map(java.util.Map) PlaceManager(com.gwtplatform.mvp.client.proxy.PlaceManager) Server(org.jboss.hal.core.runtime.server.Server) Metadata(org.jboss.hal.meta.Metadata) Places(org.jboss.hal.core.mvp.Places) Names(org.jboss.hal.resources.Names) ServerActions(org.jboss.hal.core.runtime.server.ServerActions) CrudOperations(org.jboss.hal.core.CrudOperations) Collections.emptyList(java.util.Collections.emptyList) SingleSelectBoxItem(org.jboss.hal.ballroom.form.SingleSelectBoxItem) FinderPath(org.jboss.hal.core.finder.FinderPath) FORM(org.jboss.hal.resources.Ids.FORM) List(java.util.List) ServerActionHandler(org.jboss.hal.core.runtime.server.ServerActionEvent.ServerActionHandler) MetadataRegistry(org.jboss.hal.meta.MetadataRegistry) MetadataProcessor(org.jboss.hal.meta.processing.MetadataProcessor) ServerResultEvent(org.jboss.hal.core.runtime.server.ServerResultEvent) ModelDescriptionConstants(org.jboss.hal.dmr.ModelDescriptionConstants) SecurityContextRegistry(org.jboss.hal.meta.security.SecurityContextRegistry) Flow.series(org.jboss.hal.flow.Flow.series) Optional(java.util.Optional) Finder(org.jboss.hal.core.finder.Finder) Footer(org.jboss.hal.spi.Footer) ModelNodeHelper(org.jboss.hal.dmr.ModelNodeHelper) ModelNode(org.jboss.hal.dmr.ModelNode) Iterables(com.google.common.collect.Iterables) ColumnAction(org.jboss.hal.core.finder.ColumnAction) ItemAction(org.jboss.hal.core.finder.ItemAction) SuccessfulMetadataCallback(org.jboss.hal.meta.processing.SuccessfulMetadataCallback) ElementGuard(org.jboss.hal.meta.security.ElementGuard) ServerActionEvent(org.jboss.hal.core.runtime.server.ServerActionEvent) ServerResultHandler(org.jboss.hal.core.runtime.server.ServerResultEvent.ServerResultHandler) HashMap(java.util.HashMap) FlowContext(org.jboss.hal.flow.FlowContext) Outcome(org.jboss.hal.flow.Outcome) ArrayList(java.util.ArrayList) Inject(javax.inject.Inject) ModelNodeForm(org.jboss.hal.core.mbui.form.ModelNodeForm) TopologyTasks.serversOfHost(org.jboss.hal.core.runtime.TopologyTasks.serversOfHost) Task(org.jboss.hal.flow.Task) AsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback) Progress(org.jboss.hal.flow.Progress) AddressTemplate(org.jboss.hal.meta.AddressTemplate) HostSelectionEvent(org.jboss.hal.core.runtime.host.HostSelectionEvent) RESTORE_SELECTION(org.jboss.hal.core.finder.FinderColumn.RefreshMode.RESTORE_SELECTION) FinderColumn(org.jboss.hal.core.finder.FinderColumn) NameItem(org.jboss.hal.core.mbui.dialog.NameItem) Comparator.comparing(java.util.Comparator.comparing) ItemsProvider(org.jboss.hal.core.finder.ItemsProvider) ColumnActionFactory(org.jboss.hal.core.finder.ColumnActionFactory) Requires(org.jboss.hal.spi.Requires) BrowseByColumn(org.jboss.hal.client.runtime.BrowseByColumn) DomGlobal.document(elemental2.dom.DomGlobal.document) TopologyTasks.serversOfServerGroup(org.jboss.hal.core.runtime.TopologyTasks.serversOfServerGroup) Operation(org.jboss.hal.dmr.Operation) Ids(org.jboss.hal.resources.Ids) CONFIGURATION_CHANGES_ADDRESS(org.jboss.hal.client.runtime.configurationchanges.ConfigurationChangesPresenter.CONFIGURATION_CHANGES_ADDRESS) ServerGroupSelectionEvent(org.jboss.hal.core.runtime.group.ServerGroupSelectionEvent) FinderPathFactory(org.jboss.hal.core.finder.FinderPathFactory) EventBus(com.google.web.bindery.event.shared.EventBus) PlaceRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest) ItemMonitor(org.jboss.hal.core.finder.ItemMonitor) Dispatcher(org.jboss.hal.dmr.dispatch.Dispatcher) Collectors.toList(java.util.stream.Collectors.toList) NameTokens(org.jboss.hal.meta.token.NameTokens) Resources(org.jboss.hal.resources.Resources) ProfileSelectionEvent(org.jboss.hal.core.configuration.ProfileSelectionEvent) AddResourceDialog(org.jboss.hal.core.mbui.dialog.AddResourceDialog) SingleSelectBoxItem(org.jboss.hal.ballroom.form.SingleSelectBoxItem) ResourceAddress(org.jboss.hal.dmr.ResourceAddress) ArrayList(java.util.ArrayList) Metadata(org.jboss.hal.meta.Metadata) SuccessfulMetadataCallback(org.jboss.hal.meta.processing.SuccessfulMetadataCallback) Operation(org.jboss.hal.dmr.Operation) ModelNodeForm(org.jboss.hal.core.mbui.form.ModelNodeForm) TextBoxItem(org.jboss.hal.ballroom.form.TextBoxItem) NameItem(org.jboss.hal.core.mbui.dialog.NameItem)

Example 14 with Server

use of org.jboss.hal.core.runtime.server.Server in project console by hal.

the class ServerPresenter method reload.

@Override
protected void reload() {
    ResourceAddress serverAddress = AddressTemplate.of(SERVER_CONFIG_ADDRESS).resolve(statementContext);
    Operation serverOp = new Operation.Builder(serverAddress, READ_RESOURCE_OPERATION).param(INCLUDE_RUNTIME, true).build();
    Operation interfacesOp = new Operation.Builder(serverAddress, READ_CHILDREN_RESOURCES_OPERATION).param(CHILD_TYPE, INTERFACE).param(INCLUDE_RUNTIME, true).build();
    Operation jvmsOp = new Operation.Builder(serverAddress, READ_CHILDREN_RESOURCES_OPERATION).param(CHILD_TYPE, JVM).param(INCLUDE_RUNTIME, true).build();
    Operation pathsOp = new Operation.Builder(serverAddress, READ_CHILDREN_RESOURCES_OPERATION).param(CHILD_TYPE, PATH).param(INCLUDE_RUNTIME, true).build();
    Operation systemPropertiesOp = new Operation.Builder(serverAddress, READ_CHILDREN_RESOURCES_OPERATION).param(CHILD_TYPE, SYSTEM_PROPERTY).param(INCLUDE_RUNTIME, true).build();
    dispatcher.execute(new Composite(serverOp, interfacesOp, jvmsOp, pathsOp, systemPropertiesOp), (CompositeResult result) -> {
        Server server = new Server(statementContext.selectedHost(), result.step(0).get(RESULT));
        getView().updateServer(server);
        getView().updateInterfaces(asNamedNodes(result.step(1).get(RESULT).asPropertyList()));
        getView().updateJvms(asNamedNodes(result.step(2).get(RESULT).asPropertyList()));
        getView().updatePaths(asNamedNodes(result.step(3).get(RESULT).asPropertyList()));
        getView().updateSystemProperties(asNamedNodes(result.step(4).get(RESULT).asPropertyList()));
    });
}
Also used : Composite(org.jboss.hal.dmr.Composite) Server(org.jboss.hal.core.runtime.server.Server) ResourceAddress(org.jboss.hal.dmr.ResourceAddress) CompositeResult(org.jboss.hal.dmr.CompositeResult) Operation(org.jboss.hal.dmr.Operation)

Example 15 with Server

use of org.jboss.hal.core.runtime.server.Server in project console by hal.

the class TopologyPreview method buildTable.

// ------------------------------------------------------ UI methods
private HTMLElement buildTable(List<Host> hosts, List<ServerGroup> serverGroups, List<Server> servers) {
    HTMLTableElement table = table().css(topology).element();
    // <colgroup>
    double width = 100.0 / (serverGroups.size() + 1);
    HtmlContentBuilder<HTMLTableColElement> colgroup = colgroup().add(col().attr("width", width + "%"));
    for (int i = 0; i < serverGroups.size(); i++) {
        colgroup.add(col().attr("width", width + "%"));
    }
    table.appendChild(colgroup.element());
    // </colgroup>
    // <thead>
    HtmlContentBuilder<HTMLTableSectionElement> thead = thead().add(tr().add(th().css(empty).innerHtml(new SafeHtmlBuilder().appendEscaped(Names.SERVER_GROUPS + " ").appendHtmlConstant("&rarr;").appendHtmlConstant("<br/>").appendEscaped(Names.HOSTS + " ").appendHtmlConstant("&darr;").toSafeHtml())).addAll(serverGroups.stream().map(this::serverGroupElement).collect(toList())));
    table.appendChild(thead.element());
    // </thead>
    // <tbody>
    HTMLElement tbody = tbody().element();
    for (Host host : hosts) {
        HTMLElement tr;
        tbody.appendChild(tr = tr().element());
        tr.appendChild(hostElement(host));
        for (ServerGroup serverGroup : serverGroups) {
            List<HTMLElement> matchingServers = servers.stream().filter(sc -> host.getName().equals(sc.getHost()) && serverGroup.getName().equals(sc.getServerGroup())).sorted(comparing(Server::getName)).map(this::serverElement).collect(toList());
            if (matchingServers.isEmpty()) {
                tr.appendChild(td().css(empty).element());
            } else {
                tr.appendChild(td().add(div().css(CSS.servers).addAll(matchingServers)).element());
            }
        }
    }
    table.appendChild(tbody);
    return table;
}
Also used : PreviewContent(org.jboss.hal.core.finder.PreviewContent) HostActions(org.jboss.hal.core.runtime.host.HostActions) ServerGroupActionEvent(org.jboss.hal.core.runtime.group.ServerGroupActionEvent) Constraint(org.jboss.hal.meta.security.Constraint) HostResultEvent(org.jboss.hal.core.runtime.host.HostResultEvent) TopologyTasks(org.jboss.hal.core.runtime.TopologyTasks) AuthorisationDecision(org.jboss.hal.meta.security.AuthorisationDecision) PreviewAttribute(org.jboss.hal.core.finder.PreviewAttributes.PreviewAttribute) Server(org.jboss.hal.core.runtime.server.Server) CSS.hostContainer(org.jboss.hal.resources.CSS.hostContainer) Places(org.jboss.hal.core.mvp.Places) Names(org.jboss.hal.resources.Names) HostActionEvent(org.jboss.hal.core.runtime.host.HostActionEvent) ServerActions(org.jboss.hal.core.runtime.server.ServerActions) ServerGroupResultEvent(org.jboss.hal.core.runtime.group.ServerGroupResultEvent) CSS.inactive(org.jboss.hal.resources.CSS.inactive) HTMLTableElement(elemental2.dom.HTMLTableElement) Set(java.util.Set) CSS(org.jboss.hal.resources.CSS) ServerGroup(org.jboss.hal.core.runtime.group.ServerGroup) ServerActionHandler(org.jboss.hal.core.runtime.server.ServerActionEvent.ServerActionHandler) Flow.series(org.jboss.hal.flow.Flow.series) CSS.fontAwesome(org.jboss.hal.resources.CSS.fontAwesome) CSS.spinnerLg(org.jboss.hal.resources.CSS.spinnerLg) CSS.withProgress(org.jboss.hal.resources.CSS.withProgress) Constraints(org.jboss.hal.meta.security.Constraints) Supplier(java.util.function.Supplier) FlowContext(org.jboss.hal.flow.FlowContext) Outcome(org.jboss.hal.flow.Outcome) ArrayList(java.util.ArrayList) ServerGroupResultHandler(org.jboss.hal.core.runtime.group.ServerGroupResultEvent.ServerGroupResultHandler) Strings(com.google.common.base.Strings) EventCallbackFn(org.jboss.gwt.elemento.core.EventCallbackFn) Progress(org.jboss.hal.flow.Progress) CSS.marginRight5(org.jboss.hal.resources.CSS.marginRight5) CSS.name(org.jboss.hal.resources.CSS.name) EventBus(com.google.web.bindery.event.shared.EventBus) MouseEvent(elemental2.dom.MouseEvent) ServerStatusSwitch(org.jboss.hal.client.runtime.server.ServerStatusSwitch) Dispatcher(org.jboss.hal.dmr.dispatch.Dispatcher) NameTokens(org.jboss.hal.meta.token.NameTokens) HTMLDivElement(elemental2.dom.HTMLDivElement) NamedNode(org.jboss.hal.dmr.NamedNode) Elements(org.jboss.gwt.elemento.core.Elements) CSS.rowHeader(org.jboss.hal.resources.CSS.rowHeader) Provider(javax.inject.Provider) Environment(org.jboss.hal.config.Environment) HTMLTableCellElement(elemental2.dom.HTMLTableCellElement) HtmlContentBuilder(org.jboss.gwt.elemento.core.builder.HtmlContentBuilder) HostPreviewAttributes(org.jboss.hal.core.runtime.host.HostPreviewAttributes) CSS.divider(org.jboss.hal.resources.CSS.divider) HostActionHandler(org.jboss.hal.core.runtime.host.HostActionEvent.HostActionHandler) CSS.serverGroupContainer(org.jboss.hal.resources.CSS.serverGroupContainer) HTMLElement(elemental2.dom.HTMLElement) Message(org.jboss.hal.spi.Message) NodeList(elemental2.dom.NodeList) PreviewAttributes(org.jboss.hal.core.finder.PreviewAttributes) SafeHtmlBuilder(com.google.gwt.safehtml.shared.SafeHtmlBuilder) Lists.asList(com.google.common.collect.Lists.asList) HTMLTableSectionElement(elemental2.dom.HTMLTableSectionElement) CSS.marginLeft5(org.jboss.hal.resources.CSS.marginLeft5) Predicate(java.util.function.Predicate) CSS.dropdownMenu(org.jboss.hal.resources.CSS.dropdownMenu) CSS.px(org.jboss.hal.resources.CSS.px) EventType.click(org.jboss.gwt.elemento.core.EventType.click) FinderPath(org.jboss.hal.core.finder.FinderPath) ServerGroupActions(org.jboss.hal.core.runtime.group.ServerGroupActions) ServerPreviewAttributes(org.jboss.hal.core.runtime.server.ServerPreviewAttributes) CSS.error(org.jboss.hal.resources.CSS.error) List(java.util.List) LabelBuilder(org.jboss.hal.ballroom.LabelBuilder) UIConstants(org.jboss.hal.resources.UIConstants) CSS.dropdownToggle(org.jboss.hal.resources.CSS.dropdownToggle) ServerResultEvent(org.jboss.hal.core.runtime.server.ServerResultEvent) ModelDescriptionConstants(org.jboss.hal.dmr.ModelDescriptionConstants) SecurityContextRegistry(org.jboss.hal.meta.security.SecurityContextRegistry) HostResultHandler(org.jboss.hal.core.runtime.host.HostResultEvent.HostResultHandler) CSS.centerBlock(org.jboss.hal.resources.CSS.centerBlock) DomGlobal.setTimeout(elemental2.dom.DomGlobal.setTimeout) ModelNode(org.jboss.hal.dmr.ModelNode) Element(elemental2.dom.Element) CSS.selected(org.jboss.hal.resources.CSS.selected) MessageEvent(org.jboss.hal.spi.MessageEvent) ServerActionEvent(org.jboss.hal.core.runtime.server.ServerActionEvent) ServerResultHandler(org.jboss.hal.core.runtime.server.ServerResultEvent.ServerResultHandler) CSS.server(org.jboss.hal.resources.CSS.server) CSS.clickable(org.jboss.hal.resources.CSS.clickable) Function(java.util.function.Function) HashSet(java.util.HashSet) CSS.topology(org.jboss.hal.resources.CSS.topology) ServerGroupActionHandler(org.jboss.hal.core.runtime.group.ServerGroupActionEvent.ServerGroupActionHandler) AddressTemplate(org.jboss.hal.meta.AddressTemplate) Comparator.comparing(java.util.Comparator.comparing) CSS.spinner(org.jboss.hal.resources.CSS.spinner) CSS.ok(org.jboss.hal.resources.CSS.ok) CSS.warning(org.jboss.hal.resources.CSS.warning) DomGlobal.document(elemental2.dom.DomGlobal.document) CSS.suspended(org.jboss.hal.resources.CSS.suspended) Ids(org.jboss.hal.resources.Ids) HTMLTableColElement(elemental2.dom.HTMLTableColElement) FinderPathFactory(org.jboss.hal.core.finder.FinderPathFactory) CSS.disconnected(org.jboss.hal.resources.CSS.disconnected) PlaceRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest) Consumer(java.util.function.Consumer) DomGlobal.clearTimeout(elemental2.dom.DomGlobal.clearTimeout) Collectors.toList(java.util.stream.Collectors.toList) CSS.pullRight(org.jboss.hal.resources.CSS.pullRight) Resources(org.jboss.hal.resources.Resources) Format(org.jboss.hal.ballroom.Format) TopologyTasks.topology(org.jboss.hal.core.runtime.TopologyTasks.topology) CSS.height(org.jboss.hal.resources.CSS.height) CSS.empty(org.jboss.hal.resources.CSS.empty) Host(org.jboss.hal.core.runtime.host.Host) MEDIUM_TIMEOUT(org.jboss.hal.resources.UIConstants.MEDIUM_TIMEOUT) StaticItem(org.jboss.hal.core.finder.StaticItem) ServerGroup(org.jboss.hal.core.runtime.group.ServerGroup) HTMLElement(elemental2.dom.HTMLElement) Host(org.jboss.hal.core.runtime.host.Host) SafeHtmlBuilder(com.google.gwt.safehtml.shared.SafeHtmlBuilder) Constraint(org.jboss.hal.meta.security.Constraint) HTMLTableSectionElement(elemental2.dom.HTMLTableSectionElement) HTMLTableColElement(elemental2.dom.HTMLTableColElement) HTMLTableElement(elemental2.dom.HTMLTableElement)

Aggregations

Server (org.jboss.hal.core.runtime.server.Server)16 Operation (org.jboss.hal.dmr.Operation)12 List (java.util.List)7 ModelDescriptionConstants (org.jboss.hal.dmr.ModelDescriptionConstants)7 ResourceAddress (org.jboss.hal.dmr.ResourceAddress)7 Dispatcher (org.jboss.hal.dmr.dispatch.Dispatcher)7 ArrayList (java.util.ArrayList)6 Provider (javax.inject.Provider)6 ModelNode (org.jboss.hal.dmr.ModelNode)6 FlowContext (org.jboss.hal.flow.FlowContext)6 Progress (org.jboss.hal.flow.Progress)6 Ids (org.jboss.hal.resources.Ids)6 Resources (org.jboss.hal.resources.Resources)6 EventBus (com.google.web.bindery.event.shared.EventBus)5 HTMLElement (elemental2.dom.HTMLElement)5 Environment (org.jboss.hal.config.Environment)5 ServerActions (org.jboss.hal.core.runtime.server.ServerActions)5 Flow.series (org.jboss.hal.flow.Flow.series)5 AddressTemplate (org.jboss.hal.meta.AddressTemplate)5 PlaceRequest (com.gwtplatform.mvp.shared.proxy.PlaceRequest)4