Package org.jboss.as.console.client.shared.jvm

Examples of org.jboss.as.console.client.shared.jvm.Jvm


                List<Property> jvms = result.get(RESULT).asPropertyList();
                if(!jvms.isEmpty())
                {
                    // select first entry
                    Property property = jvms.get(0);
                    Jvm jvm = jvmAdapter.fromDMR(property.getValue().asObject());
                    jvm.setName(property.getName());

                    callback.onSuccess(jvm);
                }
                else
                {
View Full Code Here


                List<Property> payload = response.get(RESULT).asPropertyList();
                List<Jvm> jvms = new ArrayList<Jvm>(payload.size());

                for(Property prop : payload) {
                    String jvmName = prop.getName();
                    Jvm jvm = factory.jvm().as();
                    jvm.setName(jvmName);

                    ModelNode jvmPropValue = prop.getValue();

                    if(jvmPropValue.hasDefined("heap-size"))
                        jvm.setHeapSize(jvmPropValue.get("heap-size").asString());

                    if(jvmPropValue.hasDefined("max-heap-size"))
                        jvm.setMaxHeapSize(jvmPropValue.get("max-heap-size").asString());

                    if(jvmPropValue.hasDefined("debug-enabled"))
                        jvm.setDebugEnabled(jvmPropValue.get("debug-enabled").asBoolean());

                    jvms.add(jvm);
                }

                getView().setJvms(jvms);
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.jvm.Jvm

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.