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(InetAddress explicit_address)
           
 boolean addLANSubnet(String subnet)
           
 void addListener(AZInstanceManagerListener l)
           
 long getClockSkew()
           
 InetSocketAddress getExternalAddress(InetSocketAddress lan_address, int address_type)
           
 boolean getIncludeWellKnownLANs()
           
 InetSocketAddress getLANAddress(InetSocketAddress external_address, int address_type)
           
 AZInstance getMyInstance()
           
 int getOtherInstanceCount(boolean block_if_needed)
           
 AZInstance[] getOtherInstances()
           
 void initialize()
           
 boolean isExternalAddress(InetAddress address)
           
 boolean isInitialized()
           
 boolean isLANAddress(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

InetSocketAddress getLANAddress(InetSocketAddress external_address,
                                int address_type)

getExternalAddress

InetSocketAddress getExternalAddress(InetSocketAddress lan_address,
                                     int address_type)

isLANAddress

boolean isLANAddress(InetAddress address)

isExternalAddress

boolean isExternalAddress(InetAddress address)

addLANSubnet

boolean addLANSubnet(String subnet)
                     throws PatternSyntaxException
Throws:
PatternSyntaxException

getIncludeWellKnownLANs

boolean getIncludeWellKnownLANs()

setIncludeWellKnownLANs

void setIncludeWellKnownLANs(boolean include)

getClockSkew

long getClockSkew()

addInstance

boolean addInstance(InetAddress explicit_address)

addListener

void addListener(AZInstanceManagerListener l)

removeListener

void removeListener(AZInstanceManagerListener l)