Package net.sf.joafip.meminspector.entity

Examples of net.sf.joafip.meminspector.entity.NodeForObjectTO


          }
          final ByteArrayInputStream byteArrayInputStream =
          /**/new ByteArrayInputStream(data);// NOPMD
          final ObjectInputStream objectInputStream =
          /**/new ObjectInputStream(byteArrayInputStream);// NOPMD
          final NodeForObjectTO nodeForObjectTO = (NodeForObjectTO) objectInputStream
              .readObject();
          objectInputStream.close();
          add(map, nodeForObjectTO);
        }
      }
View Full Code Here


   
    // create NodeForObject for each NodeInfo
    for (NodeInfo nodeInfo : map.values()) {
      NodeForObject nodeForObject = nodeInfo.nodeForObject;
      if (nodeForObject == null) {
        final NodeForObjectTO nodeForObjectTO = nodeInfo.nodeForObjectTO;
        final NodeIdentifier identifier = nodeForObjectTO.getId();
        nodeForObject = new NodeForObject(null, identifier,
            nodeForObjectTO.getIdentityHashCode(),
            nodeForObjectTO.getObjectClassName(),
            nodeForObjectTO.isMarkedNew(),
            nodeForObjectTO.isMarkedNewSon(),
            nodeForObjectTO.getFieldByChildNodeIdMap(),
            nodeForObjectTO.getFieldIsStaticMap(),
            nodeForObjectTO.getObjectSize());
        nodeInfo.nodeForObject = nodeForObject;
        nodeForObjectModel.add(nodeForObject);
      } else {
        throw new MemInspectorException("node object must not be set");
      }
    }

    // create father link
    for (NodeInfo nodeInfo : map.values()) {

      NodeForObject nodeForObject = nodeInfo.nodeForObject;
      if (nodeForObject == null) {
        throw new MemInspectorException("node object must be set");
      }
      final NodeForObjectTO nodeForObjectTO = nodeInfo.nodeForObjectTO;
      final NodeIdentifier mainFatherId = nodeForObjectTO
          .getMainFatherNodeId();
      final NodeForObject mainFatherNode;
      if (mainFatherId == null) {
        mainFatherNode = null;
      } else {
View Full Code Here

    if (mainFatherNode == null) {
      mainFatherNodeid = new NodeIdentifier(-1);
    } else {
      mainFatherNodeid = mainFatherNode.getId();
    }
    return new NodeForObjectTO(nodeForObject.getId(),
        nodeForObject.getObjectClassName(),
        nodeForObject.getIdentityHashCode(), mainFatherNodeid,
        fatherNodeIdSet, childNodeIdSet,
        nodeForObject.getFieldByChildNodeIdMap(),
        nodeForObject.getFieldIsStaticMap(),
View Full Code Here

          if (firstVisit) {
            try {
              final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
              final ObjectOutputStream objectOutputStream = new ObjectOutputStream(
                  byteArrayOutputStream);
              final NodeForObjectTO nodeForObjectTO = factory
                  .createNodeForObjectTO(object);
              objectOutputStream.writeObject(nodeForObjectTO);
              objectOutputStream.close();
              final byte[] byteArray = byteArrayOutputStream
                  .toByteArray();
View Full Code Here

TOP

Related Classes of net.sf.joafip.meminspector.entity.NodeForObjectTO

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.