|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxsmeral.semnet.crawler.HostManager.Mapper
public static class HostManager.Mapper
Mapper is responsible for mapping hosts to IDs.
Constructor Summary | |
---|---|
HostManager.Mapper(RDBLayer db)
Calls loadHosts(db) . |
Method Summary | |
---|---|
boolean |
containsHost(int id)
Indicates whether this manager contains a host with the specified ID. |
boolean |
containsHost(String url)
Indicates, whether this manager contains a host with the specified URL. |
int |
getHostId(String url)
Returns ID of the host with the specified URL. |
String |
getHostName(int hostid)
Returns host name for the specified ID. |
void |
loadHosts(RDBLayer db)
Loads managed hosts from the specified DB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HostManager.Mapper(RDBLayer db)
loadHosts(db)
.
A mapper instance should be obtained using the HostManager
.
getMapper()
method.
Method Detail |
---|
public boolean containsHost(String url)
HostMapper
containsHost
in interface HostMapper
public boolean containsHost(int id)
HostMapper
containsHost
in interface HostMapper
public String getHostName(int hostid)
HostMapper
getHostName
in interface HostMapper
public int getHostId(String url)
HostMapper
getHostId
in interface HostMapper
public final void loadHosts(RDBLayer db)
constructor
.
loadHosts
in interface HostMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |