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 java.lang.Object
- implements DHTPluginContact
Method Summary |
byte[] |
call(DHTPluginProgressListener listener,
byte[] handler_key,
byte[] data,
long timeout)
|
java.util.Map<java.lang.String,java.lang.Object> |
exportToMap()
|
java.net.InetSocketAddress |
getAddress()
|
protected DHTTransportContact |
getContact()
|
DHTPluginImpl |
getDHT()
|
byte[] |
getID()
|
java.lang.String |
getName()
|
int |
getNetwork()
|
byte |
getProtocolVersion()
|
java.lang.String |
getString()
|
boolean |
isAlive(long timeout)
|
void |
isAlive(long timeout,
DHTPluginOperationListener listener)
|
boolean |
isOrHasBeenLocal()
|
java.util.Map |
openTunnel()
|
java.util.Map |
openTunnel(DHTPluginContact[] rendezvous,
java.util.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 java.lang.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 java.net.InetSocketAddress getAddress()
- Specified by:
getAddress
in interface DHTPluginContact
exportToMap
public java.util.Map<java.lang.String,java.lang.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 java.util.Map openTunnel()
- Specified by:
openTunnel
in interface DHTPluginContact
openTunnel
public java.util.Map openTunnel(DHTPluginContact[] rendezvous,
java.util.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 java.lang.String getString()
- Specified by:
getString
in interface DHTPluginContact