Examples of SimpleProperty


Examples of org.rhq.core.clientapi.descriptor.configuration.SimpleProperty

        assertEquals(listInstance.getName(), "list", "Unexpected list instance name");
        assertEquals(listInstance.getLongDescription(), "list descr", "Unexpected list instance description");
        assertTrue(listInstance.isRequired(), "Unexpected list instance required flag");

        SimpleProperty propDef = (SimpleProperty) listInstance.getConfigurationProperty().getValue();
        assertEquals(propDef.getName(), "prop", "Unexpected simple instance name");
        assertEquals(propDef.getLongDescription(), "prop descr", "Unexpected simple instance description");
        assertTrue(!propDef.isRequired(), "Unexpected simple instance required flag");

        assertEquals(listInstance.getValues().getComplexValue().size(), 2, "Unexpected number of list values");

        ComplexValueSimpleDescriptor value1 =
            (ComplexValueSimpleDescriptor) listInstance.getValues().getComplexValue().get(0).getValue();
View Full Code Here

Examples of org.rhq.helpers.pluginGen.Props.SimpleProperty

      root.setComponentClass("CacheManagerComponent");
      root.setSingleton(true);
      root.setCategory(ResourceCategory.SERVER);
      populateMetricsAndOperations(globalClasses, root, false);
     
      SimpleProperty connect = new SimpleProperty("connectorAddress");
      connect.setDescription("JMX Remoting address of the remote Infinispan Instance");
      connect.setReadOnly(false);
      root.getSimpleProps().add(connect);
      
      SimpleProperty objectName = new SimpleProperty("objectName");
      objectName.setDescription("ObjectName of the Manager");
      objectName.setType("string");
      objectName.setReadOnly(true);
      root.getSimpleProps().add(objectName);
      Template defaultTemplate = new Template("defaultManualDiscovery");
      defaultTemplate.setDescription("The default setup for Infinispan");
      SimpleProperty connect2 = new SimpleProperty("connectorAddress");
      connect2.setDisplayName("URL of the remote server");
      connect2.setDefaultValue("service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:6996/jmxrmi");
      defaultTemplate.getSimpleProps().add(connect2);
      root.getTemplates().add(defaultTemplate);

      Props cache = new Props();
      cache.setName("Infinispan Cache");
View Full Code Here

Examples of org.rhq.helpers.pluginGen.Props.SimpleProperty

                  boolean hadParameter = false;
                  for (Annotation annot : paramAnnotationsInEach) {
                     debug("Parameter annotation " + annot);
                     if (annot instanceof Parameter) {
                        Parameter param = (Parameter) annot;
                        SimpleProperty prop = new SimpleProperty(param.name());
                        prop.setDescription(param.description());
                        operation.getParams().add(prop);
                        hadParameter = true;
                     }
                  }
                  if (!hadParameter) {
                     operation.getParams().add(new SimpleProperty("p" + i++));
                  }
               }
               Class<?> returnType = method.getReturnType();
               if (!returnType.equals(Void.TYPE)) {
                  SimpleProperty prop = new SimpleProperty("operationResult");
                  operation.setResult(prop);
               }
               props.getOperations().add(operation);
            }
         }
View Full Code Here

Examples of org.rhq.helpers.pluginGen.Props.SimpleProperty

                  boolean hadParameter = false;
                  for (Annotation annot : paramAnnotationsInEach) {
                     debug("Parameter annotation " + annot);
                     if (annot instanceof Parameter) {
                        Parameter param = (Parameter) annot;
                        SimpleProperty prop = new SimpleProperty(param.name());
                        prop.setDescription(param.description());
                        operation.getParams().add(prop);
                        hadParameter = true;
                     }
                  }
                  if (!hadParameter) {
                     operation.getParams().add(new SimpleProperty("p" + i++));
                  }
               }
               Class<?> returnType = method.getReturnType();
               if (!returnType.equals(Void.TYPE)) {
                  SimpleProperty prop = new SimpleProperty("operationResult");
                  operation.setResult(prop);
               }
               props.getOperations().add(operation);
            }
         }
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.