Package com.sun.enterprise.config.serverbeans

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


        }
    }

    public void deleteApplications(String targetName, String applicationsId) throws MBeanException {
        checkDiameterInstalled();
        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));
View Full Code Here


    }

    public String[] listApplications(String targetName) throws MBeanException {
        checkDiameterInstalled();
        String[] applicationsNames;
        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

    }

    public String[] listApplication(String targetName, String applicationsId) throws MBeanException {
        String[] applicationNames;
        checkDiameterInstalled();
        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();
View Full Code Here

        try {
            String configName = (String) handlerContext.getInputValue("ConfigName");
            ConfigContext ctx = AdminService.getAdminService().getAdminContext().getAdminConfigContext();
            Config config = ConfigAPIHelper.getConfigByName(ctx, configName);
            Boolean enabled = false;
            DiameterService ds = config.getDiameterService();
            if (ds != null) {
                enabled = true;
            } else {
                enabled = false;
            }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.DiameterService

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.