Package railo.runtime.type.scope

Examples of railo.runtime.type.scope.ScopeContext


  }*/
 
 
  public static int getSessionCount(){
    PageContext pc = ThreadLocalPageContext.get();
    ScopeContext sc = ((CFMLFactoryImpl)pc.getCFMLFactory()).getScopeContext();
    return sc.getSessionCount(pc);
  }
View Full Code Here


    return sc.getSessionCount(pc);
  }
 
  public static Struct getSessionCollection(String appName){
    PageContext pc = ThreadLocalPageContext.get();
    ScopeContext sc = ((CFMLFactoryImpl)pc.getCFMLFactory()).getScopeContext();
    return sc.getAllSessionScopes(appName);
  }
View Full Code Here

import railo.runtime.type.scope.ScopeContext;

public class ApplicationStop {
  public static String call(PageContext pc) throws PageException {
    CFMLFactoryImpl factory = (CFMLFactoryImpl)pc.getCFMLFactory();
    ScopeContext sc = factory.getScopeContext();
    sc.clearApplication(pc);
    return null;
  }
View Full Code Here

          sct);
    }
  }

  private static void infoScopes(Struct web,Struct server,ConfigImpl config) throws PageException {
    ScopeContext sc = ((CFMLFactoryImpl)config.getFactory()).getScopeContext();
    DoubleStruct webScopes=new DoubleStruct();
    DoubleStruct srvScopes=new DoubleStruct();
   
    long s;
    s=sc.getScopesSize(Scope.SCOPE_SESSION);
    webScopes.set("session", Caster.toDouble(s));
   
    s=sc.getScopesSize(Scope.SCOPE_APPLICATION);
    webScopes.set("application", Caster.toDouble(s));
   
    s=sc.getScopesSize(Scope.SCOPE_CLUSTER);
    srvScopes.set("cluster", Caster.toDouble(s));

    s=sc.getScopesSize(Scope.SCOPE_SERVER);
    srvScopes.set("server", Caster.toDouble(s));

    s=sc.getScopesSize(Scope.SCOPE_CLIENT);
    webScopes.set("client", Caster.toDouble(s));
   
    web.set(KeyConstants._scopes, webScopes);
    server.set(KeyConstants._scopes, srvScopes);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.type.scope.ScopeContext

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.