public class Scanner.Service
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
hostname |
java.net.InetAddress |
inetAddress |
Scanner.Protocol |
protocol |
private long |
starttime |
Constructor and Description |
---|
Scanner.Service(Scanner.Protocol protocol,
java.net.InetAddress inetAddress) |
Scanner.Service(java.lang.String protocol,
java.net.InetAddress inetAddress) |
Modifier and Type | Method and Description |
---|---|
long |
age() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getHostName() |
java.net.InetAddress |
getInetAddress() |
Scanner.Protocol |
getProtocol() |
int |
hashCode() |
void |
run() |
java.lang.String |
toString() |
DigestURL |
url() |
public Scanner.Protocol protocol
public java.net.InetAddress inetAddress
private java.lang.String hostname
private final long starttime
public Scanner.Service(Scanner.Protocol protocol, java.net.InetAddress inetAddress)
public Scanner.Service(java.lang.String protocol, java.net.InetAddress inetAddress)
public Scanner.Protocol getProtocol()
public java.net.InetAddress getInetAddress()
public java.lang.String getHostName()
public DigestURL url() throws java.net.MalformedURLException
java.net.MalformedURLException
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void run()
run
in interface java.lang.Runnable
public long age()