Package ch.rakudave.jnetmap.status

Examples of ch.rakudave.jnetmap.status.Status.compareTo()


  @Override
  public void updateStatus() {
    Status newStatus = Status.UNKNOWN;
    for (NetworkIF i : interfaces) {
      i.updateStatus();
      if (newStatus.compareTo(i.getStatus()) > 0 && !(i instanceof LogicalIF)) newStatus = i.getStatus();
    }
    if (!status.equals(newStatus)) {
      status = newStatus;
      notifyListeners(new DeviceEvent(this, DeviceEvent.Type.STATUS_CHANGED));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.