apps/mlb/src/main/java/org/onosproject/mlb/MastershipLoadBalancer.java
/**
     * Extracts properties from the component configuration context.
     *
     * @param context the component context
     */
Extracts properties from the component configuration context.
@param context the component context
Extracts properties from the component configuration context . @param context the component context
private void readComponentConfiguration(ComponentContext context) {
        Dictionary<?, ?> properties = context.getProperties();
        Integer newSchedulePeriod = Tools.getIntegerProperty(properties,
                                                             "schedulePeriod");
        if (newSchedulePeriod == null) {
            schedulePeriod = DEFAULT_SCHEDULE_PERIOD;
            log.info("Schedule period is not configured, default value is {}",
                     DEFAULT_SCHEDULE_PERIOD);
        } else {
            schedulePeriod = newSchedulePeriod;
            log.info("Configured. Schedule period is configured to {}", schedulePeriod);
        }
    }
private void readComponentConfiguration ( ComponentContext context ) { Dictionary < ? , ? > properties = context . getProperties ( ) ; Integer newSchedulePeriod = Tools . getIntegerProperty ( properties , "schedulePeriod" ) ; if ( newSchedulePeriod == null ) { schedulePeriod = DEFAULT_SCHEDULE_PERIOD ; log . info ( "Schedule period is not configured, default value is {}" , DEFAULT_SCHEDULE_PERIOD ) ; } else { schedulePeriod = newSchedulePeriod ; log . info ( "Configured. Schedule period is configured to {}" , schedulePeriod ) ; } }
Extracts properties from the component configuration context.
Extracts properties from the component configuration context .