|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.fenyo.gnetwatch.IPQuerier
public class IPQuerier
Instances of this class maintain IP options associated to IP targets.
| Field Summary | |
|---|---|
private java.net.InetAddress |
address
|
private java.lang.Long |
id
|
private static Log |
log
|
private int |
nparallel
|
private int |
pdu_max_size
|
private int |
port_dst
|
private int |
port_src
|
private java.lang.String |
proxy_host
|
private int |
proxy_port
|
private boolean |
reconnect
|
private int |
tos
|
private java.lang.String |
URL
|
private boolean |
use_proxy
|
| Constructor Summary | |
|---|---|
IPQuerier()
Default constructor. |
|
IPQuerier(java.net.InetAddress address)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
java.net.InetAddress |
getAddress()
Returns the address attribute. |
java.lang.Long |
getId()
|
int |
getNParallel()
Returns the number of simultaneous sessions. |
int |
getPDUMaxSize()
Returns the PDU maximum size attribute. |
int |
getPortDst()
Returns the destination port attribute. |
int |
getPortSrc()
Returns the source port attribute. |
java.lang.String |
getProxyHost()
Returns the proxy host name. |
int |
getProxyPort()
Returns the TCP proxy port. |
boolean |
getReconnect()
Checks that we must make one connection per GET. |
int |
getTos()
Returns the TOS attribute. |
java.lang.String |
getURL()
Returns the URL to connect to. |
boolean |
getUseProxy()
Checks that we must use the proxy. |
private void |
parametersHaveChanged()
Must be called after some setters have been called. |
void |
setAddress(java.net.InetAddress address)
|
protected void |
setId(java.lang.Long id)
|
void |
setNParallel(int nparallel)
Sets the number of simultaneous sessions. |
void |
setPDUMaxSize(int pdu_max_size)
Set the PDU maximum size attribute. |
void |
setPortDst(int port_dst)
Set the destination port attribute. |
void |
setPortSrc(int port_src)
Set the source port attribute. |
void |
setProxyHost(java.lang.String proxy_host)
Sets the proxy host name. |
void |
setProxyPort(int proxy_port)
Sets the TCP proxy port. |
void |
setReconnect(boolean reconnect)
Sets it to true if we must make a new connection for each GET. |
void |
setTos(int tos)
Set the TOS attribute. |
void |
setURL(java.lang.String URL)
Sets the URL to connect to. |
void |
setUseProxy(boolean use_proxy)
Sets it to true if we must use the proxy. |
void |
update()
Must be called after some setters have been called. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Log log
private java.lang.Long id
private java.net.InetAddress address
private int tos
private int port_src
private int port_dst
private int pdu_max_size
private boolean use_proxy
private boolean reconnect
private java.lang.String proxy_host
private int proxy_port
private java.lang.String URL
private int nparallel
| Constructor Detail |
|---|
public IPQuerier(java.net.InetAddress address)
address - target address.public IPQuerier()
none. - | Method Detail |
|---|
public java.lang.Long getId()
protected void setId(java.lang.Long id)
public void update()
none. - private final void parametersHaveChanged()
none. - public int getTos()
none. -
public java.net.InetAddress getAddress()
none. -
public void setAddress(java.net.InetAddress address)
public int getPortSrc()
none. -
public int getPortDst()
none. -
public int getPDUMaxSize()
none. -
public boolean getUseProxy()
none. -
public boolean getReconnect()
none. -
public java.lang.String getProxyHost()
none. -
public int getProxyPort()
none. -
public java.lang.String getURL()
none. -
public int getNParallel()
none. -
public void setTos(int tos)
tos - TOS attribute.public void setPortSrc(int port_src)
port_src - source_port attribute.public void setPortDst(int port_dst)
port_dst - destination_port attribute.public void setPDUMaxSize(int pdu_max_size)
pdu_max_size - PDU maximum size attribute.public void setUseProxy(boolean use_proxy)
use_proxy - true if we must use the proxy.public void setReconnect(boolean reconnect)
reconnect - true if we must make a new connection for each GET.public void setProxyHost(java.lang.String proxy_host)
proxy_host - proxy host name.public void setProxyPort(int proxy_port)
proxy_port - TCP proxy port.public void setURL(java.lang.String URL)
URL - URL to connect to.public void setNParallel(int nparallel)
nparallel - number of simultaneous sessions.public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||