FileDocCategorySizeDatePackage
AZInstanceImpl.javaAPI DocAzureus 3.0.3.41974Mon Jul 17 13:14:22 BST 2006com.aelitis.azureus.core.instancemanager.impl

AZInstanceImpl

public abstract class AZInstanceImpl extends Object implements com.aelitis.azureus.core.instancemanager.AZInstance

Fields Summary
Constructors Summary
protected AZInstanceImpl()

	
Methods Summary
protected voidencode(java.util.Map map)

		map.put( "id", getID().getBytes());				

		map.put( "iip", getInternalAddress().getHostAddress().getBytes());
		
		map.put( "eip", getExternalAddress().getHostAddress().getBytes());
		
		map.put( "tp", new Long( getTCPListenPort()));
		
        map.put( "dp", new Long( getUDPListenPort()));
        
        map.put( "dp2", new Long( getUDPNonDataListenPort()));
	
public java.lang.StringgetString()

		String	id = getID();
		
		if ( id.length() > 8 ){
			
			id = id.substring(0,8) + "...";
		}
		
		return( "id=" + id + ",int=" + getInternalAddress().getHostAddress() + ",ext=" + 
				getExternalAddress().getHostAddress() +	",tcp=" + getTCPListenPort() + ",udp=" + getUDPListenPort() +
				",udp2=" + getUDPNonDataListenPort());