Package com.sun.mfwk.relations

Examples of com.sun.mfwk.relations.RelationServiceImpl


        }
    }
   
    public void removeRelations(String CMM_MBean) {
       
        RelationServiceImpl relationService =
                RelationServiceImpl.getRelationService();
        Relation[] activeRelations = relationService.listRelations();

        for (int i = 0; i < activeRelations.length; i++) {
            Relation relation = activeRelations[i];
            try {
                if (ObjectName.getInstance(relation.getDestinationInstanceID()).equals(
                    ObjectName.getInstance(CMM_MBean)) || ObjectName.getInstance(
                       relation.getSourceInstanceID()).equals(ObjectName.getInstance(
                          CMM_MBean))) {
                    try {
                        relationService.removeRelation(relation);
                    } catch (InvalidRelationIdException ex) {
                        LogDomains.getLogger().log(Level.SEVERE,
                                "Error removing relation", ex);
                    }
                }
View Full Code Here


       
        MfObjectFactory mfObjectFactory =
                MfObjectFactory.getObjectFactory(_context.getModuleName());
       
        // relation mapping service
        RelationServiceImpl relationService =
                RelationServiceImpl.getRelationService();
       
        while (iterator.hasNext()) {
           
            objectName = (ObjectName) iterator.next();
View Full Code Here

TOP

Related Classes of com.sun.mfwk.relations.RelationServiceImpl

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.