NagiosService.java :  » Client » nagroid » de » schoar » nagroid » nagios » Android Open Source

Android Open Source » Client » nagroid 
nagroid » de » schoar » nagroid » nagios » NagiosService.java
package de.schoar.nagroid.nagios;

public class NagiosService {
  private NagiosHost mHost;
  private String mServiceName;
  private NagiosState mState;

  public NagiosService(NagiosHost host, String servicename, NagiosState state) {
    mHost = host;
    mServiceName = servicename;
    mState = state;
    host.addChild(this);
  }

  // state, info, attempt, lastcheck, age, last state change, current state
  // duration, is downtime,
  // notifications

  @Override
  public String toString() {
    return ("Service: " + mServiceName + " State: " + mState);
  }

  public NagiosHost getHost() {
    return mHost;
  }

  public String getName() {
    return mServiceName;
  }

  public NagiosState getState() {
    return mState;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.