Package com.biglybt.pif.ddb
Interface DistributedDatabaseContact
- All Known Implementing Classes:
DDBaseContactImpl
public interface DistributedDatabaseContact
-
Method Summary
Modifier and TypeMethodDescriptioncall
(DistributedDatabaseProgressListener listener, DistributedDatabaseTransferType type, DistributedDatabaseValue data, long timeout) byte[]
getID()
getName()
int
int
boolean
isAlive
(long timeout) void
isAlive
(long timeout, DistributedDatabaseListener listener) boolean
boolean
Tries to open a NAT tunnel to the contact.read
(DistributedDatabaseProgressListener listener, DistributedDatabaseTransferType type, DistributedDatabaseKey key, long timeout) void
write
(DistributedDatabaseProgressListener listener, DistributedDatabaseTransferType type, DistributedDatabaseKey key, DistributedDatabaseValue data, long timeout)
-
Method Details
-
getID
byte[] getID() -
getName
String getName() -
getVersion
int getVersion() -
getAddress
InetSocketAddress getAddress() -
getNetwork
int getNetwork() -
isAlive
boolean isAlive(long timeout) -
isAlive
-
isOrHasBeenLocal
boolean isOrHasBeenLocal() -
exportToMap
-
openTunnel
boolean openTunnel()Tries to open a NAT tunnel to the contact. Should only be used if direct contact fails- Returns:
-
call
DistributedDatabaseValue call(DistributedDatabaseProgressListener listener, DistributedDatabaseTransferType type, DistributedDatabaseValue data, long timeout) throws DistributedDatabaseException - Throws:
DistributedDatabaseException
-
write
void write(DistributedDatabaseProgressListener listener, DistributedDatabaseTransferType type, DistributedDatabaseKey key, DistributedDatabaseValue data, long timeout) throws DistributedDatabaseException - Throws:
DistributedDatabaseException
-
read
DistributedDatabaseValue read(DistributedDatabaseProgressListener listener, DistributedDatabaseTransferType type, DistributedDatabaseKey key, long timeout) throws DistributedDatabaseException - Throws:
DistributedDatabaseException
-