Package org.jboss.as.console.client.shared.deployment.model

Examples of org.jboss.as.console.client.shared.deployment.model.DeploymentSubsystem


            }
        }
        else if (node instanceof DeploymentSubsystem)
        {
            // level 2/3: return the contents of the selected subsystem
            final DeploymentSubsystem subsystem = (DeploymentSubsystem) node;
            switch (subsystem.getType())
            {
                case ejb3:
                    nodeInfo = (DeploymentNodeInfo<T>) new DeploymentNodeInfo<DeployedEjb>(
                            new DeploymentDataProvider<DeployedEjb>(),
                            new DeploymentDataCell<DeployedEjb>(deploymentBrowser));
View Full Code Here


                if (ModelAdapter.wasSuccess(response))
                {
                    List<ModelNode> nodes = response.get(RESULT).asList();
                    for (ModelNode node : nodes)
                    {
                        DeploymentSubsystem subsystem = null;
                        Property property = node.asProperty();
                        String name = property.getName();
                        ModelNode subsystemNode = property.getValue().asObject();
                        DeploymentDataType type = null;
                        try {
                            type = DeploymentDataType.valueOf(name);
                        } catch (IllegalArgumentException e) {
                            Console.warning("Unknown deployment type: "+name);
                            type = unknown;
                        }
                        switch (type)
                        {
                            case ejb3:
                                subsystem = deploymentEjbSubsystemEntityAdapter.fromDMR(subsystemNode);
                                break;
                            case jpa:
                                subsystem = deploymentJpaSubsystemEntityAdapter.fromDMR(subsystemNode);
                                break;
                            case undertow:
                            case web:
                                subsystem = deploymentWebSubsystemnEntityAdapter.fromDMR(subsystemNode);
                                break;
                            case webservices:
                                subsystem = deploymentWebserviceSubsystemEntityAdapter.fromDMR(subsystemNode);
                                break;
                            default:
                                break;
                        }
                        if (subsystem != null)
                        {
                            subsystem.setName(name);
                            subsystem.setType(type);
                            subsystem.setDeployment(deployment);
                            subsystems.add(subsystem);
                            subsystem.setAddress(addressFor(deployment.getAddress(), "subsystem", subsystem.getName()));
                        }
                    }
                }
                callback.onSuccess(subsystems);
            }
View Full Code Here

                if (ModelAdapter.wasSuccess(response))
                {
                    List<ModelNode> nodes = response.get(RESULT).asList();
                    for (ModelNode node : nodes)
                    {
                        DeploymentSubsystem subsystem = null;
                        Property property = node.asProperty();
                        String name = property.getName();
                        ModelNode subsystemNode = property.getValue().asObject();
                        DeploymentDataType type = null;
                        try {
                            type = DeploymentDataType.valueOf(name);
                        } catch (IllegalArgumentException e) {
                            Console.warning("Unknown deployment type: "+name);
                            type = unknown;
                        }
                        switch (type)
                        {
                            case ejb3:
                                subsystem = deploymentEjbSubsystemEntityAdapter.fromDMR(subsystemNode);
                                break;
                            case jpa:
                                subsystem = deploymentJpaSubsystemEntityAdapter.fromDMR(subsystemNode);
                                break;
                            case undertow:
                            case web:
                                subsystem = deploymentWebSubsystemnEntityAdapter.fromDMR(subsystemNode);
                                break;
                            case webservices:
                                subsystem = deploymentWebserviceSubsystemEntityAdapter.fromDMR(subsystemNode);
                                break;
                            default:
                                break;
                        }
                        if (subsystem != null)
                        {
                            subsystem.setName(name);
                            subsystem.setType(type);
                            subsystem.setDeployment(deployment);
                            subsystems.add(subsystem);
                            subsystem.setAddress(addressFor(deployment.getAddress(), "subsystem", subsystem.getName()));
                        }
                    }
                }
                callback.onSuccess(subsystems);
            }
View Full Code Here

                });
            }
        }
        else if (node instanceof DeploymentSubsystem)
        {
            final DeploymentSubsystem subsystem = (DeploymentSubsystem) node;
            switch (subsystem.getType())
            {
                case ejb3:
                    nodeInfo.setCommand(new Command()
                    {
                        @Override
View Full Code Here

            }
        }
        else if (node instanceof DeploymentSubsystem)
        {
            // level 2/3: return the contents of the selected subsystem
            final DeploymentSubsystem subsystem = (DeploymentSubsystem) node;
            switch (subsystem.getType())
            {
                case ejb3:
                    nodeInfo = (DeploymentNodeInfo<T>) new DeploymentNodeInfo<DeployedEjb>(
                            new DeploymentDataProvider<DeployedEjb>(),
                            new DeploymentDataCell<DeployedEjb>(deploymentBrowser));
View Full Code Here

            DeploymentRecord deployment = (DeploymentRecord) deploymentData;
            collectTypes(deployment, types);
        }
        else if (deploymentData instanceof DeploymentSubsystem)
        {
            DeploymentSubsystem subsystem = (DeploymentSubsystem) deploymentData;
            collectTypes(subsystem.getDeployment(), types);
            types.add(EnumLabelLookup.labelFor("DeploymentData", subsystem.getType()));
        }
        else if (deploymentData instanceof DeploymentSubsystemElement)
        {
            DeploymentSubsystemElement element = (DeploymentSubsystemElement) deploymentData;
            collectTypes(element.getSubsystem().getDeployment(), types);
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.deployment.model.DeploymentSubsystem

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.