Package com.ericsson.ssa.config

Examples of com.ericsson.ssa.config.Config


        Boolean.getBoolean("org.glassfish.sip.disableReporters");
   
    private static Logger log = LogUtil.SIP_LOGGER.getLogger();

    public static boolean isStackConfigDefined() {
        Config config = ConfigFactory.getConfig();
        String layerOrder = config.get(STACK_CONFIG, LAYER_ORDER_KEY);
        return layerOrder!=null && layerOrder.trim().length()>0;       
    }       
View Full Code Here


   
    /**
     * Makes sure that in the SipContainer configuration the default Stack is defined.
     */
    public static void defineStatic() {
        Config config =  ConfigFactory.getConfig();
        //Please make sure that the comments are inline with the code,
        // else remove the comments to not introduce confusion.
       
//    <stack-config layer-order="NetworkManager, ConvergedLoadBalancerFactory, SipLoadBalancerManagerBackEnd, TransactionManager, ReplicationManager, ResolverManager, DialogManager, LocalRouteManager, ApplicationDispatcher">
        config.set(STACK_CONFIG, LAYER_ORDER_KEY, "NetworkManager, OutboundManager, OverloadProtectionManager, ConvergedLoadBalancerFactory, SipLoadBalancerManagerBackEnd, TransactionManager, ReplicationManager, ResolverManager, DialogManager, LocalRouteManager, ApplicationDispatcher");
       
//            <stack-layer id="NetworkManager" class-name="com.ericsson.ssa.container.NetworkManager">
//                    <property name="reporters" value="CallflowReporter, SipMessageReporter"/>
//            </stack-layer>
        config.set(STACK_LAYER+"/NetworkManager", CLASS_NAME_KEY, "com.ericsson.ssa.container.NetworkManager");
        if (!disableReporters) {
            config.set(STACK_LAYER+"/NetworkManager"+PROPERTIES, REPORTERS_KEY, "SMINetworkManagerReporter, CallFlowRequestReporter, AccessLogReporter");
        }

        config.set(STACK_LAYER+"/OutboundManager", CLASS_NAME_KEY, "com.ericsson.ssa.container.OutboundFlowManager");
        //config.set(STACK_LAYER+"/OutboundManager"+PROPERTIES, REPORTERS_KEY, "CallflowReporter, SipMessageReporter");

        config.set(STACK_LAYER+"/OverloadProtectionManager", CLASS_NAME_KEY, "com.ericsson.ssa.container.overload.OverloadProtectionManager");
        config.set(STACK_LAYER+"/OverloadProtectionManager"+PROPERTIES, HTTP_LAYER_INDICATOR_KEY, "true");

       
//
//            <stack-layer id="ConvergedLoadBalancerFactory" class-name="org.jvnet.glassfish.comms.clb.core.ConvergedLoadBalancerFactory">
//                    <property name="httpLayer" value="true"/>
//            </stack-layer>
        config.set(STACK_LAYER+"/ConvergedLoadBalancerFactory", CLASS_NAME_KEY, "org.jvnet.glassfish.comms.clb.core.ConvergedLoadBalancerFactory");
  config.set(STACK_LAYER+"/ConvergedLoadBalancerFactory"+PROPERTIES, HTTP_LAYER_INDICATOR_KEY, "true");
       
//
//            <stack-layer id="SipLoadBalancerManagerBackEnd" class-name="org.jvnet.glassfish.comms.clb.core.sip.SipLoadBalancerManagerBackEnd">
//            </stack-layer>
        config.set(STACK_LAYER+"/SipLoadBalancerManagerBackEnd", CLASS_NAME_KEY, "org.jvnet.glassfish.comms.clb.core.sip.SipLoadBalancerManagerBackEnd");
       
//
//            <stack-layer id="TransactionManager" class-name="com.ericsson.ssa.sip.transaction.TransactionManager">      
//            </stack-layer>
        config.set(STACK_LAYER+"/TransactionManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.transaction.TransactionManager");
       
//
//      <stack-layer id="ReplicationManager" class-name="com.ericsson.ssa.sip.persistence.ReplicationManager">           
//      </stack-layer>
  config.set(STACK_LAYER+"/ReplicationManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.persistence.ReplicationManager");
 
//
//            <stack-layer id="ResolverManager" class-name="com.ericsson.ssa.sip.dns.ResolverManager">
//            </stack-layer>
        config.set(STACK_LAYER+"/ResolverManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.dns.ResolverManager");
       
//
//            <stack-layer id="DialogManager" class-name="com.ericsson.ssa.sip.DialogManager">
//                    <property name="FactoryClassName" value="com.ericsson.ssa.sip.DialogManager"/>
//            </stack-layer>
        config.set(STACK_LAYER+"/DialogManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.DialogManager");
  config.set(STACK_LAYER+"/DialogManager"+PROPERTIES, FACTORY_CLASS_NAME_KEY, "com.ericsson.ssa.sip.DialogManager");
       
//
//            <stack-layer id="LocalRouteManager" class-name="com.ericsson.ssa.sip.LocalRouteManager">
//            </stack-layer>
        config.set(STACK_LAYER+"/LocalRouteManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.LocalRouteManager");
       
//
//            <stack-layer id="ApplicationDispatcher" class-name="com.ericsson.ssa.container.sim.ApplicationDispatcher">
//                    <property name="applicationRouterClass" value="com.ericsson.ssa.router.AlphabeticalRouter"/>
//            </stack-layer>
        config.set(STACK_LAYER+"/ApplicationDispatcher", CLASS_NAME_KEY, "com.ericsson.ssa.container.sim.ApplicationDispatcher");
  config.set(STACK_LAYER+"/ApplicationDispatcher"+PROPERTIES, "applicationRouterClass", "com.ericsson.ssa.router.AlphabeticalRouter");
        if (!disableReporters) {
      config.set(STACK_LAYER+"/ApplicationDispatcher"+PROPERTIES, REPORTERS_KEY, "SMIServletReporter, CallFlowWebMethodReporter");
        }
               
//    </stack-config>
       
        if (log.isLoggable(Level.FINE)) {
View Full Code Here

        classLoader = aClassLoader;
    }
   
    public void configure(SM sm)
            throws StackConfigException {
        Config config = ConfigFactory.getConfig();
        String layerOrder = config.get(StackConfig.STACK_CONFIG,
                StackConfig.LAYER_ORDER_KEY);
        List<StackLayer> stackLayers = new ArrayList<StackLayer>();
       
        StringTokenizer commaSep = new StringTokenizer(layerOrder, ",");
       
        //Read the config
        while (commaSep.hasMoreTokens()) {
            String id = commaSep.nextToken().trim();
           
            String layerClassName = config.get(StackConfig.STACK_LAYER+"/"+id,
                    StackConfig.CLASS_NAME_KEY);
           
            if (layerClassName!=null && layerClassName.length()>0) {
                String factoryClassName = config.get(StackConfig.STACK_LAYER+"/"+id,
                        StackConfig.FACTORY_CLASS_NAME_KEY);
                Map<String, String> properties = config.getAll(
                        StackConfig.STACK_LAYER+"/"+id+StackConfig.PROPERTIES);
               
                if (isAcceptedStackLayer(id, layerClassName, factoryClassName,
                        properties)) {
                    stackLayers.add(new StackLayer(id, layerClassName,
View Full Code Here

     * Initialize the ConfigAdapter. After this all the internal Config model
     * is in sync with the domain config model.
     */
    public void initConfig() {
        ConfigAdapter.instance().startup();
        Config config = ConfigFactory.getConfig();
    }
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.config.Config

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.