public class ResolverService extends Object implements NafManCommand.Handler, TimerNAF.Handler
Constructor and Description |
---|
ResolverService(Dispatcher d,
XmlConfig cfg) |
Modifier and Type | Method and Description |
---|---|
int |
cancel(ResolverDNS.Client caller) |
void |
eventError(TimerNAF tmr,
Dispatcher d,
Throwable ex) |
Dispatcher |
getDispatcher() |
CharSequence |
handleNAFManCommand(NafManCommand cmd) |
CharSequence |
nafmanHandlerID() |
ResolverAnswer |
resolve(byte qtype,
ByteChars qname,
ResolverDNS.Client caller,
Object callerparam,
int flags) |
ResolverAnswer |
resolve(byte qtype,
int qip,
ResolverDNS.Client caller,
Object callerparam,
int flags) |
void |
start() |
void |
stop() |
void |
timerIndication(TimerNAF t,
Dispatcher d) |
public ResolverService(Dispatcher d, XmlConfig cfg) throws IOException, NamingException
IOException
NamingException
public Dispatcher getDispatcher()
public CharSequence nafmanHandlerID()
nafmanHandlerID
in interface NafManCommand.Handler
public void eventError(TimerNAF tmr, Dispatcher d, Throwable ex)
eventError
in interface TimerNAF.Handler
public void start() throws IOException
IOException
public void stop()
public int cancel(ResolverDNS.Client caller)
public ResolverAnswer resolve(byte qtype, ByteChars qname, ResolverDNS.Client caller, Object callerparam, int flags)
public ResolverAnswer resolve(byte qtype, int qip, ResolverDNS.Client caller, Object callerparam, int flags)
public void timerIndication(TimerNAF t, Dispatcher d)
timerIndication
in interface TimerNAF.Handler
public CharSequence handleNAFManCommand(NafManCommand cmd)
handleNAFManCommand
in interface NafManCommand.Handler
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.