Search in sources :

Example 6 with DoubleStruct

use of lucee.runtime.type.DoubleStruct in project Lucee by lucee.

the class Surveillance method getInfoMemory.

private static void getInfoMemory(Struct parent, ConfigImpl config) throws PageException {
    DoubleStruct server = new DoubleStruct();
    DoubleStruct web = new DoubleStruct();
    parent.set(KeyConstants._server, server);
    parent.set(KeyConstants._web, web);
    boolean isConfigWeb = config instanceof ConfigWeb;
    // web
    if (isConfigWeb) {
        _getInfoMemory(web, server, (ConfigWeb) config);
    } else {
        ConfigWeb[] configs = ((ConfigServer) config).getConfigWebs();
        for (int i = 0; i < configs.length; i++) {
            _getInfoMemory(web, server, configs[i]);
        }
    }
}
Also used : ConfigServer(lucee.runtime.config.ConfigServer) DoubleStruct(lucee.runtime.type.DoubleStruct) ConfigWeb(lucee.runtime.config.ConfigWeb)

Aggregations

DoubleStruct (lucee.runtime.type.DoubleStruct)6 CFMLFactoryImpl (lucee.runtime.CFMLFactoryImpl)1 MappingImpl (lucee.runtime.MappingImpl)1 ConfigServer (lucee.runtime.config.ConfigServer)1 ConfigWeb (lucee.runtime.config.ConfigWeb)1 Struct (lucee.runtime.type.Struct)1 StructImpl (lucee.runtime.type.StructImpl)1 ScopeContext (lucee.runtime.type.scope.ScopeContext)1