Package com.caucho.env.service

Examples of com.caucho.env.service.ResinSystem


  {
    _watchdog = this;

    _args = new WatchdogArgs(argv);
   
    _system = new ResinSystem("watchdog");

    Vfs.setPwd(_args.getRootDirectory());
   
    boolean isLogDirectoryExists = getLogDirectory().exists();
View Full Code Here


      _port.setPort(getPort());
      _port.setAddress(getAddress());
     
      _port.init();
     
      ResinSystem system = server.getResinSystem();
      NetworkListenSystem listenService
        = system.getService(NetworkListenSystem.class);
     
      listenService.addListener(_port);
     
      // server.addPort(_port);
    } catch (Exception e) {
View Full Code Here

    }
   
    Path rootDirectory = _args.getRootDirectory();
    Path dataDirectory = rootDirectory.lookup("watchdog-data");

    ResinSystem system = new ResinSystem("watchdog",
                                         rootDirectory,
                                         dataDirectory);

    Thread thread = Thread.currentThread();
    thread.setContextClassLoader(system.getClassLoader());
   
    LibraryLoader libLoader = new LibraryLoader();
    libLoader.setPath(rootDirectory.lookup("lib"));
    libLoader.init();
View Full Code Here

  @Override
  public boolean isBindPortsAfterStart()
  {
   
    ResinSystem resinSystem = _server.getResinSystem();
    NetworkListenSystem listenService
      = resinSystem.getService(NetworkListenSystem.class);
   
    return listenService.isBindPortsAfterStart();
  }
View Full Code Here

      return address;
    }

    private TcpSocketLinkListener getFirstPort(String protocol, boolean isSSL)
    {
      ResinSystem resinSystem = getResinSystem();
      NetworkListenSystem listenService
        = resinSystem.getService(NetworkListenSystem.class);
     
      for (TcpSocketLinkListener port : listenService.getListeners()) {
        if (protocol.equals(port.getProtocolName()) && (port.isSSL() == isSSL))
          return port;
      }
View Full Code Here

  private boolean _isGenerateSession;
  private String _characterEncoding;

  public FileServlet()
  {
    ResinSystem resin = ResinSystem.getCurrent();
   
    LruCache<String,Cache> pathCache;
   
    pathCache = _pathCacheLocal.get(resin.getClassLoader());
    if (pathCache == null) {
      pathCache = new LruCache<String,Cache>(256 * 1024);
      _pathCacheLocal.set(pathCache, resin.getClassLoader());
    }
   
    _pathCache = pathCache;
   
    _isCaseInsensitive = CaseInsensitive.isCaseInsensitive();
View Full Code Here

    _hempBrokerManager.addBroker("resin.caucho", _broker);
  }
 
  public static BamSystem createAndAddService(String address)
  {
    ResinSystem system = preCreate(BamSystem.class);
     
    BamSystem service = new BamSystem(address);
    system.addService(service);
   
    return service;
  }
View Full Code Here

  {
  }
 
  public static WarningService createAndAddService()
  {
    ResinSystem system = preCreate(WarningService.class);
   
    WarningService service = new WarningService();
    system.addService(WarningService.class, service);
   
    return service;
  }
View Full Code Here

  public JspCompiler()
  {
    _system = ResinSystem.getCurrent();
   
    if (_system == null)
      _system = new ResinSystem("jsp-compiler");
   
    _loader = _system.getClassLoader();

    _tagFileManager = new TagFileManager(this);
  }
View Full Code Here

      Server server = getServer();

      if (server == null)
        return "http://localhost";
     
      ResinSystem resinSystem = server.getResinSystem();
      NetworkListenSystem listenService
        = resinSystem.getService(NetworkListenSystem.class);

      for (TcpSocketLinkListener port : listenService.getListeners()) {
        if ("http".equals(port.getProtocolName())) {
          String address = port.getAddress();
View Full Code Here

TOP

Related Classes of com.caucho.env.service.ResinSystem

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.