Package com.cloudesire.catwatcher.entities

Examples of com.cloudesire.catwatcher.entities.Webapp


  private void filterStopped ( List<Webapp> webapps )
  {
    int i = 0;
    while (i < webapps.size())
    {
      Webapp webapp = webapps.get(i);
      if (webapp.getStatus().equals(STATUS_RUNNING))
      {
        webapps.remove(i);
      }
      else
      {
View Full Code Here


   */
  private Webapp parseLine ( String line )
  {
    String[] parts = line.split(":");
    if (parts.length != 4) return null;
    Webapp webapp = new Webapp();
    webapp.setPath(parts[0]);
    webapp.setStatus(parts[1]);
    webapp.setActiveSessions(Integer.parseInt(parts[2]));
    webapp.setName(parts[3]);
    return webapp;
  }
View Full Code Here

      BufferedReader reader = new BufferedReader(new InputStreamReader(content));
      List<Webapp> webapps = new LinkedList<>();
      String line = null;
      while ((line = reader.readLine()) != null)
      {
        Webapp webapp = null;
        if ((webapp = parseLine(line)) != null)
        {
          webapps.add(webapp);
        }
      }
View Full Code Here

TOP

Related Classes of com.cloudesire.catwatcher.entities.Webapp

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.