/** * Return the hostname of this address such as "MYCOMPUTER". * * @return the hostname associated with the address */ @Override public String getHostName () { if ( this.addr instanceof NbtAddress ) { return ( (NbtAddress) this.addr ).getHostName(); } return ( (InetAddress) this.addr ).getHostName(); }
/** * Return the hostname of this address such as "MYCOMPUTER". */ public String getHostName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).getHostName(); } return ((InetAddress)addr).getHostName(); }
/** * Return the hostname of this address such as "MYCOMPUTER". */ public String getHostName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).getHostName(); } return ((InetAddress)addr).getHostName(); }
/** * Return the hostname of this address such as "MYCOMPUTER". */ public String getHostName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).getHostName(); } return ((InetAddress)addr).getHostName(); }
/** * Return the hostname of this address such as "MYCOMPUTER". * * @return the hostname associated with the address */ @Override public String getHostName () { if ( this.addr instanceof NbtAddress ) { return ( (NbtAddress) this.addr ).getHostName(); } return ( (InetAddress) this.addr ).getHostName(); }
/** * Return the hostname of this address such as "MYCOMPUTER". */ public String getHostName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).getHostName(); } return ((InetAddress)addr).getHostName(); }
/** * <p>validateAddressIsNotSame</p> * * TODO: In ticket 1608, Antonio is asking why this validation is used. * Maybe the behavior needs to be changed? * * "Something weird is here....why the address must be different?" * * @see https://mynms.opennms.com/Ticket/Display.html?id=1608 * * @return a boolean. */ public boolean validateAddressIsNotSame() { if(m_nbtAddress.getHostName().equals(m_address)) { return false; }else { return true; } } }
return getHostName();
return getHostName();
if (!nbtAddr.getHostName().equals(hostAddress)) serviceStatus = PollStatus.available();