com.aelitis.azureus.core.instancemanager
Interface AZInstanceManager

All Known Implementing Classes:
AZInstanceManagerImpl

public interface AZInstanceManager


Field Summary
static int AT_TCP
           
static int AT_UDP
           
static int AT_UDP_NON_DATA
           
 
Method Summary
 boolean addInstance(java.net.InetAddress explicit_address)
           
 void addLANAddress(java.net.InetAddress address)
           
 boolean addLANSubnet(java.lang.String subnet)
           
 void addListener(AZInstanceManagerListener l)
           
 long getClockSkew()
           
 java.net.InetSocketAddress getExternalAddress(java.net.InetSocketAddress lan_address, int address_type)
           
 boolean getIncludeWellKnownLANs()
           
 java.net.InetSocketAddress getLANAddress(java.net.InetSocketAddress external_address, int address_type)
           
 AZInstance getMyInstance()
           
 int getOtherInstanceCount(boolean block_if_needed)
           
 AZInstance[] getOtherInstances()
           
 void initialize()
           
 boolean isExternalAddress(java.net.InetAddress address)
           
 boolean isInitialized()
           
 boolean isLANAddress(java.net.InetAddress address)
           
 void removeLANAddress(java.net.InetAddress address)
           
 void removeListener(AZInstanceManagerListener l)
           
 void setIncludeWellKnownLANs(boolean include)
           
 AZInstanceTracked[] track(byte[] hash, AZInstanceTracked.TrackTarget target)
           
 void updateNow()
           
 

Field Detail

AT_TCP

static final int AT_TCP
See Also:
Constant Field Values

AT_UDP

static final int AT_UDP
See Also:
Constant Field Values

AT_UDP_NON_DATA

static final int AT_UDP_NON_DATA
See Also:
Constant Field Values
Method Detail

initialize

void initialize()

isInitialized

boolean isInitialized()

getMyInstance

AZInstance getMyInstance()

getOtherInstanceCount

int getOtherInstanceCount(boolean block_if_needed)

getOtherInstances

AZInstance[] getOtherInstances()

updateNow

void updateNow()

track

AZInstanceTracked[] track(byte[] hash,
                          AZInstanceTracked.TrackTarget target)

getLANAddress

java.net.InetSocketAddress getLANAddress(java.net.InetSocketAddress external_address,
                                         int address_type)

getExternalAddress

java.net.InetSocketAddress getExternalAddress(java.net.InetSocketAddress lan_address,
                                              int address_type)

isLANAddress

boolean isLANAddress(java.net.InetAddress address)

isExternalAddress

boolean isExternalAddress(java.net.InetAddress address)

addLANSubnet

boolean addLANSubnet(java.lang.String subnet)
                     throws java.util.regex.PatternSyntaxException
Throws:
java.util.regex.PatternSyntaxException

addLANAddress

void addLANAddress(java.net.InetAddress address)

removeLANAddress

void removeLANAddress(java.net.InetAddress address)

getIncludeWellKnownLANs

boolean getIncludeWellKnownLANs()

setIncludeWellKnownLANs

void setIncludeWellKnownLANs(boolean include)

getClockSkew

long getClockSkew()

addInstance

boolean addInstance(java.net.InetAddress explicit_address)

addListener

void addListener(AZInstanceManagerListener l)

removeListener

void removeListener(AZInstanceManagerListener l)