xsmeral.semnet.crawler
Interface HostMapper

All Known Implementing Classes:
HostManager.Mapper

public interface HostMapper

HostMapper is responsible for mapping hosts to IDs. It can be thought of as an internal analogy of DNS.


Method Summary
 boolean containsHost(int id)
          Indicates whether this manager contains a host with the specified ID.
 boolean containsHost(String name)
          Indicates, whether this manager contains a host with the specified URL.
 int getHostId(String name)
          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.
 

Method Detail

loadHosts

void loadHosts(RDBLayer db)
Loads managed hosts from the specified DB.


getHostName

String getHostName(int hostid)
Returns host name for the specified ID.


getHostId

int getHostId(String name)
Returns ID of the host with the specified URL.


containsHost

boolean containsHost(String name)
Indicates, whether this manager contains a host with the specified URL.


containsHost

boolean containsHost(int id)
Indicates whether this manager contains a host with the specified ID.