org.gudy.azureus2.plugins.ddb
Interface DistributedDatabaseContact
- All Known Implementing Classes:
- DDBaseContactImpl
public interface DistributedDatabaseContact
- Author:
- parg
getID
byte[] getID()
getName
String getName()
getAddress
InetSocketAddress getAddress()
getDHT
int getDHT()
isAlive
boolean isAlive(long timeout)
isAlive
void isAlive(long timeout,
DistributedDatabaseListener listener)
isOrHasBeenLocal
boolean isOrHasBeenLocal()
exportToMap
Map<String,Object> exportToMap()
openTunnel
boolean openTunnel()
- Tries to open a NAT tunnel to the contact. Should only be used if direct contact fails
- Returns:
write
void write(DistributedDatabaseTransferType type,
DistributedDatabaseKey key,
DistributedDatabaseValue data)
throws DistributedDatabaseException
- Throws:
DistributedDatabaseException
read
DistributedDatabaseValue read(DistributedDatabaseProgressListener listener,
DistributedDatabaseTransferType type,
DistributedDatabaseKey key,
long timeout)
throws DistributedDatabaseException
- Throws:
DistributedDatabaseException