com.aelitis.azureus.plugins.dht.impl
Class DHTPluginContactImpl
java.lang.Object
com.aelitis.azureus.plugins.dht.impl.DHTPluginContactImpl
- All Implemented Interfaces:
- DHTPluginContact
public class DHTPluginContactImpl
- extends Object
- implements DHTPluginContact
Method Summary |
byte[] |
call(DHTPluginProgressListener listener,
byte[] handler_key,
byte[] data,
long timeout)
|
Map<String,Object> |
exportToMap()
|
InetSocketAddress |
getAddress()
|
protected DHTTransportContact |
getContact()
|
DHTPluginImpl |
getDHT()
|
byte[] |
getID()
|
String |
getName()
|
int |
getNetwork()
|
byte |
getProtocolVersion()
|
String |
getString()
|
boolean |
isAlive(long timeout)
|
void |
isAlive(long timeout,
DHTPluginOperationListener listener)
|
boolean |
isOrHasBeenLocal()
|
Map |
openTunnel()
|
Map |
openTunnel(DHTPluginContact[] rendezvous,
Map client_data)
|
byte[] |
read(DHTPluginProgressListener listener,
byte[] handler_key,
byte[] key,
long timeout)
|
void |
write(DHTPluginProgressListener listener,
byte[] handler_key,
byte[] key,
byte[] data,
long timeout)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DHTPluginContactImpl
protected DHTPluginContactImpl(DHTPluginImpl _plugin,
DHTTransportContact _contact)
getDHT
public DHTPluginImpl getDHT()
getContact
protected DHTTransportContact getContact()
getID
public byte[] getID()
- Specified by:
getID
in interface DHTPluginContact
getName
public String getName()
- Specified by:
getName
in interface DHTPluginContact
getNetwork
public int getNetwork()
- Specified by:
getNetwork
in interface DHTPluginContact
getProtocolVersion
public byte getProtocolVersion()
- Specified by:
getProtocolVersion
in interface DHTPluginContact
getAddress
public InetSocketAddress getAddress()
- Specified by:
getAddress
in interface DHTPluginContact
exportToMap
public Map<String,Object> exportToMap()
- Specified by:
exportToMap
in interface DHTPluginContact
isAlive
public boolean isAlive(long timeout)
- Specified by:
isAlive
in interface DHTPluginContact
isAlive
public void isAlive(long timeout,
DHTPluginOperationListener listener)
- Specified by:
isAlive
in interface DHTPluginContact
isOrHasBeenLocal
public boolean isOrHasBeenLocal()
- Specified by:
isOrHasBeenLocal
in interface DHTPluginContact
openTunnel
public Map openTunnel()
- Specified by:
openTunnel
in interface DHTPluginContact
openTunnel
public Map openTunnel(DHTPluginContact[] rendezvous,
Map client_data)
read
public byte[] read(DHTPluginProgressListener listener,
byte[] handler_key,
byte[] key,
long timeout)
- Specified by:
read
in interface DHTPluginContact
write
public void write(DHTPluginProgressListener listener,
byte[] handler_key,
byte[] key,
byte[] data,
long timeout)
- Specified by:
write
in interface DHTPluginContact
call
public byte[] call(DHTPluginProgressListener listener,
byte[] handler_key,
byte[] data,
long timeout)
- Specified by:
call
in interface DHTPluginContact
getString
public String getString()
- Specified by:
getString
in interface DHTPluginContact