com.aelitis.azureus.core.peer.cache
Class CacheDiscovery.CachePeerImpl

java.lang.Object
  extended by com.aelitis.azureus.core.peer.cache.CacheDiscovery.CachePeerImpl
All Implemented Interfaces:
CachePeer
Enclosing class:
CacheDiscovery

public static class CacheDiscovery.CachePeerImpl
extends Object
implements CachePeer


Field Summary
 
Fields inherited from interface com.aelitis.azureus.core.peer.cache.CachePeer
PT_CACHE_LOGIC, PT_NONE
 
Constructor Summary
CacheDiscovery.CachePeerImpl(int _type, InetAddress _address, int _port)
           
 
Method Summary
 InetAddress getAddress()
           
 boolean getAutoReconnect()
           
 long getCreateTime(long now)
           
 long getInjectTime(long now)
           
 int getPort()
           
 long getSpeedChangeTime(long now)
           
 String getString()
           
 int getType()
           
 boolean sameAs(CachePeer other)
           
 void setAutoReconnect(boolean auto)
           
 void setInjectTime(long time)
           
 void setSpeedChangeTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheDiscovery.CachePeerImpl

public CacheDiscovery.CachePeerImpl(int _type,
                                    InetAddress _address,
                                    int _port)
Method Detail

getType

public int getType()
Specified by:
getType in interface CachePeer

getAddress

public InetAddress getAddress()
Specified by:
getAddress in interface CachePeer

getPort

public int getPort()
Specified by:
getPort in interface CachePeer

getCreateTime

public long getCreateTime(long now)
Specified by:
getCreateTime in interface CachePeer

getInjectTime

public long getInjectTime(long now)
Specified by:
getInjectTime in interface CachePeer

setInjectTime

public void setInjectTime(long time)
Specified by:
setInjectTime in interface CachePeer

getSpeedChangeTime

public long getSpeedChangeTime(long now)
Specified by:
getSpeedChangeTime in interface CachePeer

setSpeedChangeTime

public void setSpeedChangeTime(long time)
Specified by:
setSpeedChangeTime in interface CachePeer

getAutoReconnect

public boolean getAutoReconnect()
Specified by:
getAutoReconnect in interface CachePeer

setAutoReconnect

public void setAutoReconnect(boolean auto)
Specified by:
setAutoReconnect in interface CachePeer

sameAs

public boolean sameAs(CachePeer other)
Specified by:
sameAs in interface CachePeer

getString

public String getString()
Specified by:
getString in interface CachePeer