Examples of PeerConfiguration


Examples of com.sun.enterprise.config.serverbeans.PeerConfiguration

        DiameterService diaService = getDiameterService(targetName);
        if (diaService == null) {
            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        PeerConfiguration peerConfig = diaService.getPeerConfiguration();

        DiameterApplications apps = peerConfig.getDiameterApplicationsById(applicationsId);
        if (apps == null) {
            String msg = _strMgr.getString("ApplicationsNotAvl");
            throw new MBeanException(new ConfigException(msg));
        }
        DiameterApplications[] diaApps = peerConfig.getDiameterApplications();
        if (diaApps.length == 1) {
            String msg = _strMgr.getString("ApplicationsRequiredAtleastOne");
            throw new MBeanException(new ConfigException(msg));
        }
        peerConfig.removeDiameterApplications(apps);
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.PeerConfiguration

        DiameterService diaService = getDiameterService(targetName);
        if (diaService == null) {
            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        PeerConfiguration peerConfig = diaService.getPeerConfiguration();
        DiameterApplications[] diaApps = peerConfig.getDiameterApplications();
        applicationsNames = new String[diaApps.length];
        for (int i=0; i < diaApps.length; i++)
            applicationsNames[i] = diaApps[i].getId();
        return applicationsNames;
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.PeerConfiguration

        DiameterService diaService = getDiameterService(targetName);
        if (diaService == null) {
            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        PeerConfiguration peerConfig = diaService.getPeerConfiguration();
        DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
        Application[] apps = diaApps.getApplication();
        applicationNames = new String[apps.length];
        for (int i=0; i < apps.length; i++)
            applicationNames[i] = apps[i].getVendorid();
        return applicationNames;
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.