expose stat for throttling (# tunnels we're currently participating in)

This commit is contained in:
jrandom
2004-07-09 03:41:27 +00:00
committed by zzz
parent ff7742bca3
commit 6c162643cb
2 changed files with 7 additions and 0 deletions

View File

@ -60,4 +60,7 @@ public interface TunnelManagerFacade extends Service {
* *
*/ */
boolean isInUse(Hash peer); boolean isInUse(Hash peer);
/** how many tunnels are we participating in? */
public int getParticipatingCount();
} }

View File

@ -202,6 +202,10 @@ public class PoolingTunnelManagerFacade implements TunnelManagerFacade {
return false; return false;
} }
public int getParticipatingCount() {
return _pool.getParticipatingTunnelCount();
}
/** /**
* Aint she pretty? * Aint she pretty?
* *