Package com.sun.enterprise.config.serverbeans

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


            peerConfig.setListener(createListener(targetName));
            peerConfig.setMaxThreads("10");
            peerConfig.setMsgBufferSize("4096");
            peerConfig.setEnableMsgPersistence("false");

            DiameterApplications diaApps = new DiameterApplications();
            diaApps.setId("one");
            Application diaApp = new Application();
            Authapp authApp = new Authapp();
            authApp.setId("16777221");
            diaApp.addAuthapp(authApp);
            diaApp.setVendorid("10415");
            diaApps.addApplication(diaApp);
            peerConfig.addDiameterApplications(diaApps);
        } catch (ConfigException e) {
            throw new MBeanException(e);
        }
        return peerConfig;
View Full Code Here


            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        try {
            PeerConfiguration peerConfig = diaService.getPeerConfiguration();
            DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
            if (diaApps == null) {
                diaApps = new DiameterApplications();
                diaApps.setId(applicationsId);
                peerConfig.addDiameterApplications(diaApps);
            }
            Application diaApp = new Application();
            diaApp.setVendorid(vendorId);
            if (acctAppId != null) {
                Acctapp acctApp = new Acctapp();
                acctApp.setId(acctAppId);
                diaApp.addAcctapp(acctApp);
            }
            if (authAppId != null) {
                Authapp authApp = new Authapp();
                authApp.setId(authAppId);
                diaApp.addAuthapp(authApp);
            }
            diaApps.addApplication(diaApp);
        } catch (ConfigException e) {
            throw new MBeanException(e);
        }
    }
View Full Code Here

            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        try {
            PeerConfiguration peerConfig = diaService.getPeerConfiguration();
            DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
            if (diaApps == null) {
                String msg = _strMgr.getString("ApplicationsNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            Application diaApp = diaApps.getApplicationByVendorid(vendorId);
            if (diaApp == null) {
                String msg = _strMgr.getString("ApplicationNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            if (authAppId != null) {
View Full Code Here

            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        try {
            PeerConfiguration peerConfig = diaService.getPeerConfiguration();
            DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
            if (diaApps == null) {
                String msg = _strMgr.getString("ApplicationsNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            Application diaApp = diaApps.getApplicationByVendorid(vendorId);
            if (diaApp == null) {
                String msg = _strMgr.getString("ApplicationNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            if (diaApp.getAuthappById(authAppId) != null) {
View Full Code Here

            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        try {
            PeerConfiguration peerConfig = diaService.getPeerConfiguration();
            DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
            if (diaApps == null) {
                String msg = _strMgr.getString("ApplicationsNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            Application diaApp = diaApps.getApplicationByVendorid(vendorId);
            if (diaApp == null) {
                String msg = _strMgr.getString("ApplicationNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            if (acctAppId != null) {
View Full Code Here

            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new ConfigException(msg));
        }
        try {
            PeerConfiguration peerConfig = diaService.getPeerConfiguration();
            DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
            if (diaApps == null) {
                String msg = _strMgr.getString("ApplicationsNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            Application diaApp = diaApps.getApplicationByVendorid(vendorId);
            if (diaApp == null) {
                String msg = _strMgr.getString("ApplicationNotAvl", targetName);
                throw new MBeanException(new ConfigException(msg));
            }
            if (diaApp.getAcctappById(acctAppId) != null) {
View Full Code Here

        if (diaService == null) {
            String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
            throw new MBeanException(new Exception(msg));
        }
        PeerConfiguration peerConfig = diaService.getPeerConfiguration();
        DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
        if (diaApps == null) {
            String msg = _strMgr.getString("ApplicationsNotAvl");
            throw new MBeanException(new ConfigException(msg));
        }
        Application[] apps = diaApps.getApplication();
        if (apps.length == 1) {
            String msg = _strMgr.getString("ApplicationRequiredAtleastOne");
            throw new MBeanException(new ConfigException(msg));
        }
        Application diaApp = diaApps.getApplicationByVendorid(vendorId);
        if (diaApp != null)
            diaApps.removeApplication(diaApp);
        else {
            String msg = _strMgr.getString("ApplicationNotAvl");
            throw new MBeanException(new ConfigException(msg));
        }
    }
View Full Code Here

            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();
View Full Code Here

        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

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

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.