Examples of ObjectInfo


Examples of org.jmanage.core.management.ObjectInfo

            usage();
            return false;
        }

        MBeanService service = ServiceFactory.getMBeanService();
        ObjectInfo objectInfo =
                service.getMBeanInfo(context.getServiceContext(
                        expression.getAppName(), expression.getMBeanName()));
        printObjectInfo(objectInfo);
        return true;
    }
View Full Code Here

Examples of org.jmanage.core.management.ObjectInfo

        Document doc = new Document();
        Element rootElement = new Element("mbeans");
        doc.setRootElement(rootElement);
        /* mbeans */
        for(ObjectName objName:objectNames){
           ObjectInfo objInfo = connection.getObjectInfo(objName);
           Element mbeanElement = new Element("mbean");
           mbeanElement.setAttribute("name", objInfo.getObjectName().toString());
           mbeanElement.setAttribute("description", objInfo.getDescription());
           /* attributes */
           for(ObjectAttributeInfo attrInfo:objInfo.getAttributes()){
               Element attrElement = new Element("attribute");
               attrElement.setAttribute("name", attrInfo.getName());
               attrElement.setAttribute("description", attrInfo.getDescription());
               mbeanElement.addContent(attrElement);
           }
           /* operations */
           for(ObjectOperationInfo oprInfo:objInfo.getOperations()){
               Element oprElement = new Element("operation");
               oprElement.setAttribute("name", oprInfo.getName());
               oprElement.setAttribute("description", oprInfo.getDescription());
               /*parameters*/
               for(ObjectParameterInfo paramInfo: oprInfo.getSignature()){
View Full Code Here

Examples of org.jmanage.core.management.ObjectInfo

    private static Logger logger = Loggers.getLogger(Repository.class);
    private static Map<ObjectName, ObjectInfo> mbeanToObjectInfoMap = new HashMap<ObjectName, ObjectInfo>();
   
    public static ObjectInfo applyMetaData(ObjectInfo objInfo, ServerConnection connection){
        ObjectInfo metaObjectInfo = mbeanToObjectInfoMap.get(objInfo.getObjectName());
        if(metaObjectInfo != null){
            objInfo.applyMetaData(metaObjectInfo,
                    new ExpressionProcessor(connection, objInfo.getObjectName()));
        }
        return objInfo;
View Full Code Here

Examples of org.jmanage.core.management.ObjectInfo

            List mbeans =
                config.getRootElement().getChildren();
           
            for(Iterator it= mbeans.iterator(); it.hasNext();){
                Element mbean = (Element)it.next();
                ObjectInfo objInfo = getObjectInfo(mbean);
                ObjectInfo oldObjInfo =
                    mbeanToObjectInfoMap.put(objInfo.getObjectName(), objInfo);
                if(oldObjInfo != null){
                    logger.warning("Duplicate mbean found: " + oldObjInfo.getObjectName().toString());
                }
            }
  }
    }
View Full Code Here

Examples of org.jmanage.core.management.ObjectInfo

    private static ObjectInfo getObjectInfo(Element mbean){
        ObjectName objectName = new ObjectName(mbean.getAttributeValue("name"));
        String description = mbean.getAttributeValue("description");
        ObjectAttributeInfo[] attributes = getObjectAttributeInfo(mbean);
        ObjectOperationInfo[] operations = getObjectOperationInfo(mbean);
        return new ObjectInfo(objectName, null, description,
                attributes, null, operations, null);
    }
View Full Code Here

Examples of org.jnode.assembler.NativeStream.ObjectInfo

     * @throws UnresolvedObjectRefException
     */
    protected void createInitialStack(NativeStream os, Label stackLabel,
                                      Label stackPtrLabel) throws BuildException, ClassNotFoundException,
        UnresolvedObjectRefException {
        final ObjectInfo objectInfo = os
            .startObject(loadClass(VmSystemObject.class));
        final int stackOffset = os.setObjectRef(stackLabel).getOffset();
        final int stackAddr = stackOffset + (int) os.getBaseAddr();
        final int slotSize = arch.getReferenceSize();

        // Low stack address
        os.writeWord(stackAddr + VmThread.STACK_OVERFLOW_LIMIT_SLOTS * slotSize);
        // High stack address
        os.writeWord(stackAddr + VmThread.DEFAULT_STACK_SLOTS * slotSize);
        // The actual stack space
        for (int i = 2; i < VmThread.DEFAULT_STACK_SLOTS; i++) {
            os.writeWord(0);
        }
        os.setObjectRef(stackPtrLabel);
        objectInfo.markEnd();
    }
View Full Code Here

Examples of org.jredis.ObjectInfo

    Log.log("TEST: %s command", cmd);
    try {
      provider.flushdb();
      provider.set("foo", "bar");
      frInfo = provider.debug("foo");
      ObjectInfo info = frInfo.get();
      assertNotNull(info);
      Log.log("DEBUG of key => %s", info);
    }
        catch (ExecutionException e) {
          e.printStackTrace();
View Full Code Here

Examples of org.nutz.mvc.ObjectInfo

  @SuppressWarnings({"unchecked", "rawtypes"})
  public static void evalActionFilters(ActionInfo ai, Filters filters) {
    if (null != filters) {
      List<ObjectInfo<? extends ActionFilter>> list = new ArrayList<ObjectInfo<? extends ActionFilter>>(filters.value().length);
      for (By by : filters.value()) {
        list.add(new ObjectInfo(by.type(), by.args()));
      }
      ai.setFilterInfos(list.toArray(new ObjectInfo[list.size()]));
    }
  }
View Full Code Here

Examples of org.nutz.mvc.ObjectInfo

  }

  @SuppressWarnings({"unchecked", "rawtypes"})
  public static void evalHttpAdaptor(ActionInfo ai, AdaptBy ab) {
    if (null != ab) {
      ai.setAdaptorInfo((ObjectInfo<? extends HttpAdaptor>) new ObjectInfoab.type(),
                                          ab.args()));
    }
  }
View Full Code Here

Examples of org.sleuthkit.datamodel.SleuthkitCase.ObjectInfo

  }

  @Override
  public synchronized Content getParent() throws TskCoreException {
    if (parent == null) {
      ObjectInfo parentInfo = null;
      try {
        parentInfo = db.getParentInfo(this);
      } catch (TskCoreException ex) {
        // there is not parent; not an error if we've got a data source
        return null;
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.