FileDocCategorySizeDatePackage
PersistenceStore.javaAPI DocGlassfish v2 API3722Fri May 04 22:35:10 BST 2007com.sun.enterprise.tools.upgrade.transform.elements

PersistenceStore

public class PersistenceStore extends BaseElement
author
prakash

Fields Summary
Constructors Summary
public PersistenceStore()
Creates a new instance of Element

    
Methods Summary
public voidtransform(org.w3c.dom.Element element, org.w3c.dom.Element parentSource, org.w3c.dom.Element parentResult)
element - iiop-server-instance parentSource - IIOPCluster parentResult - result parent of any-element peer

        //String targetDomainName = parentResult.getOwnerDocument().getDocumentElement().getAttribute("name");
        // This element has a set of properties.  Just need to gather them and save them in ClusterInfoManager
        //ClusterInfoManager.getClusterInfoManager().getIIOPCluster(targetDomainName).addIIOPServerInstance(instanceName);
        NodeList resultElements = element.getElementsByTagName("property");
        for(int lh =0; lh < resultElements.getLength(); lh++){
            Element itElement = ((Element)resultElements.item(lh));
            ClustersInfoManager.getClusterInfoManager().addPersistenceStoreProperty(commonInfoModel.getCurrentDomain(),
                                     itElement.getAttribute("name"), itElement.getAttribute("value"));   
            // Compare one key attribute
            //ClusterInfoManager.getClusterInfoManager().getIIOPCluster(targetDomainName).addIIOPEndPoint(
            //itElement.getAttribute("id"),itElement.getAttribute("host"),itElement.getAttribute("port"));
        }