Package railo.runtime.config

Examples of railo.runtime.config.ConfigServer


    private Resource getPluginDirectory() {
      return config.getConfigDir().getRealResource("context/admin/plugin");
    }

    private Resource getContextDirectory() throws PageException  {
      ConfigServer cs = config.getConfigServer(password);
      Resource dist = cs.getConfigDir().getRealResource("distribution");
      dist.mkdirs();
      return dist;
    }
View Full Code Here


       
        sct.setEL(KeyConstants._config, config.getConfigFile().getAbsolutePath());
       
        // Servlets
        if(config instanceof ConfigServer) {
          ConfigServer cs=(ConfigServer) config;
          CFMLEngineImpl engine = (CFMLEngineImpl) cs.getCFMLEngine();
          Struct srv=new StructImpl(),params;
         
         
          ServletConfig[] configs = engine.getServletConfigs();
          ServletConfig sc;
View Full Code Here

       
        if(type==TYPE_WEB){
          fillGetRunningThreads(qry,pageContext.getConfig());
        }
        else {
          ConfigServer cs = pageContext.getConfig().getConfigServer(password);
          ConfigWeb[] webs = cs.getConfigWebs();
          for(int i=0;i<webs.length;i++){
            fillGetRunningThreads(qry,webs[i]);
          }
        }
        pageContext.setVariable(getString("admin",action,"returnVariable"),qry);
View Full Code Here

     
      if(type==TYPE_WEB){
        terminateRunningThread(pageContext.getConfig(),id);
        }
        else {
          ConfigServer cs = pageContext.getConfig().getConfigServer(password);
          ConfigWeb[] webs = cs.getConfigWebs();
          for(int i=0;i<webs.length;i++){
            if(terminateRunningThread(webs[i],id))break;
          }
        }
    }
View Full Code Here

   

  private void doSurveillance() throws PageException {
    // Server
    if(config instanceof ConfigServer) {
      ConfigServer cs=(ConfigServer) config;
      ConfigWeb[] webs = cs.getConfigWebs();
      Struct sct=new StructImpl();
      for(int i=0;i<webs.length;i++){
        ConfigWebImpl cw=(ConfigWebImpl) webs[i];
        try{
        sct.setEL(cw.getLabel(), ((CFMLFactoryImpl)cw.getFactory()).getInfo());
View Full Code Here

   
    if(!(config instanceof ConfigServer))
      throw new ApplicationException("invalid context for this action");
   
   
    ConfigServer cs=(ConfigServer) config;
    ConfigWeb[] webs = cs.getConfigWebs();
    for(int i=0;i<webs.length;i++){
      ConfigWebImpl cw=(ConfigWebImpl) webs[i];
      if(!cw.getId().equals(contextId)) continue;
       ((CFMLFactoryImpl)cw.getFactory()).stopThread(threadId,stopType);
       break;
View Full Code Here

  private static final Key QUERIES = KeyImpl.init("queries");
  private static final Key LOCKS = KeyImpl.init("locks");
 
  public static Struct call(PageContext pc) throws PageException  {
    ConfigWeb cw = pc.getConfig();
    ConfigServer cs = cw.getConfigServer("server");
    ConfigWeb[] webs = cs.getConfigWebs();
    CFMLEngineFactory.getInstance();
    CFMLEngineImpl engine = (CFMLEngineImpl) cs.getCFMLEngine();
   
    Struct sct=new StructImpl();
   
   
    // Locks
View Full Code Here

TOP

Related Classes of railo.runtime.config.ConfigServer

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.