Package ch.rakudave.jnetmap.net.status

Examples of ch.rakudave.jnetmap.net.status.Status


   * Set the status of this connection
   * @param the combined status of the hosts that are connected with this connection
   */
  public void setStatus(NetworkIF netIF, Status status) {
    statusMap.put(netIF, status);
    Status newStatus = Status.UNKNOWN;
    for (Status s : statusMap.values()) {
      if (newStatus.compareTo(s) > 0) newStatus = s;
    }
    this.status = newStatus;
  }
View Full Code Here


    notifyListeners(new DeviceEvent(this, DeviceEvent.Type.PROPERTY_CHANGED, vendor));
  }

  @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;
      lastStatusChange = new Date(System.currentTimeMillis());
      notifyListeners(new DeviceEvent(this, DeviceEvent.Type.STATUS_CHANGED, null));
View Full Code Here

    return name + ": transparent";
  }

  @Override
  public void updateStatus() {
    Status newStatus = (useDevice)?counterpart.getDevice().getStatus():counterpart.getStatus();
    if (!status.equals(newStatus)) {
      status = newStatus;
      connection.setStatus(this, status);
    }
  }
View Full Code Here

    return name + ": " + address.getHostAddress();
  }

  @Override
  public void updateStatus() {
    Status newStatus = method.getStatus(address);
    if (status != newStatus) {
      lastSeen = new Date(System.currentTimeMillis());
      status = newStatus;
      connection.setStatus(this, status);
      device.notifyListeners(new DeviceEvent(device, Type.INTERFACE_STATUS_CHANGED, this));
View Full Code Here

TOP

Related Classes of ch.rakudave.jnetmap.net.status.Status

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.