Package org.rhq.helpers.pluginGen.Props

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


                  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

                  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

Related Classes of org.rhq.helpers.pluginGen.Props.SimpleProperty

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.