Package com.sun.mfwk

Examples of com.sun.mfwk.CMM_MBean


        String source = rms.getSource(relation);
        String dest = rms.getDestination(relation);
        String type = rms.getType(relation);
               
        CMM_MBean sMbean = getMBean(source);
        CMM_MBean dMbean = getMBean(dest);
        Class typeClass = getTypeName(type);

        Relation r = new Relation(sMbean, dMbean, typeClass, null,
                        _context.getModuleName());
        return r;
View Full Code Here


     * @throws Exception if a problem with processing
     */
    Relation create(String source, String dest, String type, boolean anyway)
            throws Exception {
               
        CMM_MBean sMbean = getMBean(source);
        CMM_MBean dMbean = getMBean(dest);
        Class typeClass = getTypeName(type);
       
        LogDomains.getLogger().finest("source mbean = " + sMbean);
        LogDomains.getLogger().finest("dest mbean = " + dMbean);
        LogDomains.getLogger().finest("type = " + typeClass);
View Full Code Here

     * @return mbean for the given oid or null
     * @throws Exception  if an erro getting mbean
     */
    CMM_MBean getMBean(String oid) throws Exception {

        CMM_MBean mbean = null;

        MfObjectFactory factory =
            MfObjectFactory.getObjectFactory(_context.getModuleName());

        // replaces tokens from object name
View Full Code Here

        if ((asON==null) || (CMM_MbeanDescriptor==null) || (mapping==null)) {
            throw new IllegalArgumentException();
        }

        CMM_MBean sourceMbean = null;

        MfObjectFactory objectFactory =
            MfObjectFactory.getObjectFactory(_context.getModuleName());

        // delegate factory
View Full Code Here

        MfDelegateFactory delegateFactory=objectFactory.getDelegateFactory(map);

        // jxm connection to the application server
        MBeanServerConnection mbs = getConnection();

        CMM_MBean sourceMbean = null;
        String objectName = ConfigReader.getMBeanObjectName(mbean, false);
        String tokenizedON =
            ObjectNameHelper.tokenize(objectName, _context.getTokens());

        // if cmm mbean is not created
View Full Code Here

        for (int i=0; i<size; i++) {
            Element m = (Element) list.item(i);

            try {
                CMM_MBean mbean = mf.create(m);

                if ((l != null) && (mbean != null)) {
                    l.fine("Created MBean: " + mbean.getName());
                }

            } catch (Exception e) {
                LogDomains.getLogger().log(Level.WARNING,
                    "Error while instrumenting mbean", e);
View Full Code Here

            // create relation to the node agent objects (CMM_RunningOS)
            String mn = _context.getModuleName();
            MfObjectFactory fac = MfObjectFactory.getObjectFactory(mn);
            String tokenizedON =
                    ObjectNameHelper.tokenize(mn+JVM_PATTERN, _context.getTokens());
            CMM_MBean jvmMbean = fac.getObject(tokenizedON);
            if (jvmMbean != null) {
                MfAgentNode.createRelationsWithAgent(mn, jvmMbean);
            }
           
        } catch(Exception e) {
View Full Code Here

     * @param params The MbeanServerConnection, CMM object of the delegate
     * @throws java.lang.Exception if a problem occured
     */
    public void initialize(Object[] params) throws Exception {

        CMM_MBean object=null;
        MBeanServerConnection mbs=null;
        ObjectName objectName=null;
       
        // Check params
        if (params.length!=3) {
View Full Code Here

TOP

Related Classes of com.sun.mfwk.CMM_MBean

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.