org.xnap.plugin.opennap.net
Class OpenNapSearch
java.lang.Object
org.xnap.search.AbstractSearch
org.xnap.plugin.opennap.net.OpenNapSearch
- All Implemented Interfaces:
- ExceptionListener, Search
public class OpenNapSearch
- extends AbstractSearch
- implements ExceptionListener
Implements an OpenNap search on a set of servers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRIORITY_HIGH
public static int PRIORITY_HIGH
PRIORITY_LOW
public static int PRIORITY_LOW
OpenNapSearch
public OpenNapSearch(SearchFilter filter,
int priority,
OpenNapServer[] servers)
exceptionThrown
public void exceptionThrown(java.lang.Exception e)
- Specified by:
exceptionThrown
in interface ExceptionListener
getPriority
public int getPriority()
getRequest
public SearchRequestMessage getRequest()
getStatus
public java.lang.String getStatus()
- Returns a string that describes the current status.
- Specified by:
getStatus
in interface Search
isDone
public boolean isDone()
- Returns true, if this search can not be canceled.
- Specified by:
isDone
in interface Search
start
public void start(SearchHandler handler)
- Starts this search.
- Specified by:
start
in interface Search
- Parameters:
handler
- the object that handles the results
stop
public void stop()
- Cancels this search.
- Specified by:
stop
in interface Search
Copyright © 2001-2005 XNap Team. All Rights Reserved.