forked from I2P_Developers/i2p.i2p
Added @Deprecated annotations to router classes/methods
This commit is contained in:
@@ -52,6 +52,7 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
private final static int FLAG_MODE_TUNNEL = 3;
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
private final static long FLAG_ENCRYPTED = 128;
|
||||
private final static long FLAG_MODE = 96;
|
||||
private final static long FLAG_DELAY = 16;
|
||||
@@ -84,24 +85,28 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
* For cloves only (not tunnels), default false, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean getEncrypted() { return /* _encrypted */ false; }
|
||||
|
||||
/**
|
||||
* For cloves only (not tunnels), default false, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void setEncrypted(boolean encrypted) { /* _encrypted = encrypted; */ }
|
||||
|
||||
/**
|
||||
* For cloves only (not tunnels), default null, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public SessionKey getEncryptionKey() { return /* _encryptionKey */ null; }
|
||||
|
||||
/**
|
||||
* For cloves only (not tunnels), default null, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void setEncryptionKey(SessionKey key) { /* _encryptionKey = key; */ }
|
||||
|
||||
/** default -1 */
|
||||
@@ -132,29 +137,34 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
* default false, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean getDelayRequested() { return _delayRequested; }
|
||||
|
||||
/**
|
||||
* default false, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void setDelayRequested(boolean req) { _delayRequested = req; }
|
||||
|
||||
/**
|
||||
* default 0, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public long getDelaySeconds() { return _delaySeconds; }
|
||||
|
||||
/**
|
||||
* default 0, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void setDelaySeconds(long seconds) { _delaySeconds = seconds; }
|
||||
|
||||
/**
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void readBytes(InputStream in) throws DataFormatException, IOException {
|
||||
long flags = DataHelper.readLong(in, 1);
|
||||
//if (_log.shouldLog(Log.DEBUG))
|
||||
@@ -423,6 +433,7 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
/**
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void writeBytes(OutputStream out) throws DataFormatException, IOException {
|
||||
if ( (_deliveryMode < 0) || (_deliveryMode > FLAG_MODE_TUNNEL) ) throw new DataFormatException("Invalid data: mode = " + _deliveryMode);
|
||||
long flags = getFlags();
|
||||
|
||||
@@ -53,6 +53,7 @@ public abstract class FastI2NPMessageImpl extends I2NPMessageImpl {
|
||||
* @deprecated unused
|
||||
* @throws UnsupportedOperationException
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public void readBytes(InputStream in) throws DataFormatException, IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
@@ -62,6 +63,7 @@ public abstract class FastI2NPMessageImpl extends I2NPMessageImpl {
|
||||
* @deprecated unused
|
||||
* @throws UnsupportedOperationException
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public int readBytes(InputStream in, int type, byte buffer[]) throws I2NPMessageException, IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
@@ -118,6 +120,7 @@ public abstract class FastI2NPMessageImpl extends I2NPMessageImpl {
|
||||
* @deprecated unused
|
||||
* @throws UnsupportedOperationException
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public void writeBytes(OutputStream out) throws DataFormatException, IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
@@ -60,6 +60,7 @@ public class GarlicClove extends DataStructureImpl {
|
||||
* @deprecated unused, use byte array method to avoid copying
|
||||
* @throws UnsupportedOperationException always
|
||||
*/
|
||||
@Deprecated
|
||||
public void readBytes(InputStream in) throws DataFormatException, IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
/****
|
||||
@@ -119,6 +120,7 @@ public class GarlicClove extends DataStructureImpl {
|
||||
* @deprecated unused, use byte array method to avoid copying
|
||||
* @throws UnsupportedOperationException always
|
||||
*/
|
||||
@Deprecated
|
||||
public void writeBytes(OutputStream out) throws DataFormatException, IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
/****
|
||||
|
||||
@@ -48,6 +48,7 @@ public interface I2NPMessage extends DataStructure {
|
||||
* @throws IOException if there is a problem reading from the stream
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public int readBytes(InputStream in, int type, byte buffer[]) throws I2NPMessageException, IOException;
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,6 +46,7 @@ public class I2NPMessageHandler {
|
||||
* @throws I2NPMessageException if there is a problem handling the particular
|
||||
* message - if it is an unknown type or has improper formatting, etc.
|
||||
*/
|
||||
@Deprecated
|
||||
public I2NPMessage readMessage(InputStream in) throws IOException, I2NPMessageException {
|
||||
if (_messageBuffer == null) _messageBuffer = new byte[38*1024]; // more than necessary
|
||||
try {
|
||||
|
||||
@@ -58,6 +58,7 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
||||
private static final Map<Integer, Builder> _builders = new ConcurrentHashMap<Integer, Builder>(1);
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public static final void registerBuilder(Builder builder, int type) { _builders.put(Integer.valueOf(type), builder); }
|
||||
|
||||
/** interface for extending the types of messages handled - unused */
|
||||
@@ -80,6 +81,7 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
||||
*
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void readBytes(InputStream in) throws DataFormatException, IOException {
|
||||
try {
|
||||
readBytes(in, -1, new byte[1024]);
|
||||
@@ -112,6 +114,7 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
||||
* @return total length of the message
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public int readBytes(InputStream in, int type, byte buffer[]) throws I2NPMessageException, IOException {
|
||||
try {
|
||||
if (type < 0)
|
||||
@@ -243,6 +246,7 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
||||
*
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void writeBytes(OutputStream out) throws DataFormatException, IOException {
|
||||
int size = getMessageSize();
|
||||
if (size < 15 + CHECKSUM_LENGTH) throw new DataFormatException("Unable to build the message");
|
||||
|
||||
@@ -34,6 +34,7 @@ import net.i2p.util.Log;
|
||||
*
|
||||
* @author jrandom
|
||||
*/
|
||||
@Deprecated
|
||||
public class I2NPMessageReader {
|
||||
private Log _log;
|
||||
private RouterContext _context;
|
||||
@@ -70,12 +71,14 @@ public class I2NPMessageReader {
|
||||
* Have the already started reader pause its reading indefinitely
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void pauseReading() { _reader.pauseRunner(); }
|
||||
|
||||
/**
|
||||
* Resume reading after a pause
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void resumeReading() { _reader.resumeRunner(); }
|
||||
|
||||
/**
|
||||
|
||||
@@ -112,6 +112,7 @@ public class RouterAddress extends DataStructureImpl {
|
||||
* @deprecated unused for now
|
||||
* @return null for never, or a Date
|
||||
*/
|
||||
@Deprecated
|
||||
public Date getExpiration() {
|
||||
//return _expiration;
|
||||
if (_expiration > 0)
|
||||
@@ -127,6 +128,7 @@ public class RouterAddress extends DataStructureImpl {
|
||||
* @return 0 for never
|
||||
* @since 0.9.12
|
||||
*/
|
||||
@Deprecated
|
||||
public long getExpirationTime() {
|
||||
return _expiration;
|
||||
}
|
||||
@@ -141,6 +143,7 @@ public class RouterAddress extends DataStructureImpl {
|
||||
* Unused for now, always null
|
||||
* @deprecated unused for now
|
||||
*/
|
||||
@Deprecated
|
||||
public void setExpiration(Date expiration) {
|
||||
_expiration = expiration.getDate();
|
||||
}
|
||||
@@ -159,6 +162,7 @@ public class RouterAddress extends DataStructureImpl {
|
||||
* @throws IllegalStateException if was already set
|
||||
* @deprecated unused, use 3-arg constructor
|
||||
*/
|
||||
@Deprecated
|
||||
public void setTransportStyle(String transportStyle) {
|
||||
if (_transportStyle != null)
|
||||
throw new IllegalStateException();
|
||||
@@ -171,6 +175,7 @@ public class RouterAddress extends DataStructureImpl {
|
||||
* @deprecated use getOptionsMap()
|
||||
* @return sorted, non-null, NOT a copy, do not modify
|
||||
*/
|
||||
@Deprecated
|
||||
public Properties getOptions() {
|
||||
return _options;
|
||||
}
|
||||
@@ -199,6 +204,7 @@ public class RouterAddress extends DataStructureImpl {
|
||||
* @throws IllegalStateException if was already set
|
||||
* @deprecated unused, use 3-arg constructor
|
||||
*/
|
||||
@Deprecated
|
||||
public void setOptions(Properties options) {
|
||||
if (!_options.isEmpty())
|
||||
throw new IllegalStateException();
|
||||
|
||||
@@ -221,6 +221,7 @@ public class RouterInfo extends DatabaseEntry {
|
||||
*
|
||||
* @deprecated Implemented here but unused elsewhere
|
||||
*/
|
||||
@Deprecated
|
||||
public Set<Hash> getPeers() {
|
||||
if (_peers == null)
|
||||
return Collections.emptySet();
|
||||
@@ -234,6 +235,7 @@ public class RouterInfo extends DatabaseEntry {
|
||||
* @deprecated Implemented here but unused elsewhere
|
||||
* @throws IllegalStateException if RouterInfo is already signed
|
||||
*/
|
||||
@Deprecated
|
||||
public void setPeers(Set<Hash> peers) {
|
||||
if (_signature != null)
|
||||
throw new IllegalStateException();
|
||||
@@ -255,6 +257,7 @@ public class RouterInfo extends DatabaseEntry {
|
||||
* @deprecated use getOptionsMap()
|
||||
* @return sorted, non-null, NOT a copy, do not modify!!!
|
||||
*/
|
||||
@Deprecated
|
||||
public Properties getOptions() {
|
||||
return _options;
|
||||
}
|
||||
|
||||
@@ -294,6 +294,7 @@ public class Banlist {
|
||||
}
|
||||
|
||||
/** @deprecated moved to router console */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ public abstract class JobImpl implements Job {
|
||||
* class list for no good reason. Logging in jobs is almost always
|
||||
* set explicitly rather than by class name.
|
||||
*/
|
||||
@Deprecated
|
||||
void addedToQueue() {
|
||||
//if (_context.logManager().getLog(getClass()).shouldLog(Log.DEBUG))
|
||||
// _addedBy = new Exception();
|
||||
@@ -57,6 +58,7 @@ public abstract class JobImpl implements Job {
|
||||
* @deprecated
|
||||
* @return null always
|
||||
*/
|
||||
@Deprecated
|
||||
public Exception getAddedBy() { return null; }
|
||||
public long getMadeReadyOn() { return _madeReadyOn; }
|
||||
public void madeReady() { _madeReadyOn = _context.clock().now(); }
|
||||
|
||||
@@ -86,30 +86,35 @@ public class JobQueue {
|
||||
private long _lagWarning = DEFAULT_LAG_WARNING;
|
||||
private final static long DEFAULT_LAG_WARNING = 5*1000;
|
||||
/** @deprecated unimplemented */
|
||||
@Deprecated
|
||||
private final static String PROP_LAG_WARNING = "router.jobLagWarning";
|
||||
|
||||
/** if a job is this lagged, the router is hosed, so spit out a warning (dont shut it down) */
|
||||
private long _lagFatal = DEFAULT_LAG_FATAL;
|
||||
private final static long DEFAULT_LAG_FATAL = 30*1000;
|
||||
/** @deprecated unimplemented */
|
||||
@Deprecated
|
||||
private final static String PROP_LAG_FATAL = "router.jobLagFatal";
|
||||
|
||||
/** if a job takes this long to run, spit out a warning, but keep going */
|
||||
private long _runWarning = DEFAULT_RUN_WARNING;
|
||||
private final static long DEFAULT_RUN_WARNING = 5*1000;
|
||||
/** @deprecated unimplemented */
|
||||
@Deprecated
|
||||
private final static String PROP_RUN_WARNING = "router.jobRunWarning";
|
||||
|
||||
/** if a job takes this long to run, the router is hosed, so spit out a warning (dont shut it down) */
|
||||
private long _runFatal = DEFAULT_RUN_FATAL;
|
||||
private final static long DEFAULT_RUN_FATAL = 30*1000;
|
||||
/** @deprecated unimplemented */
|
||||
@Deprecated
|
||||
private final static String PROP_RUN_FATAL = "router.jobRunFatal";
|
||||
|
||||
/** don't enforce fatal limits until the router has been up for this long */
|
||||
private long _warmupTime = DEFAULT_WARMUP_TIME;
|
||||
private final static long DEFAULT_WARMUP_TIME = 10*60*1000;
|
||||
/** @deprecated unimplemented */
|
||||
@Deprecated
|
||||
private final static String PROP_WARMUP_TIME = "router.jobWarmupTime";
|
||||
|
||||
/** max ready and waiting jobs before we start dropping 'em */
|
||||
@@ -118,6 +123,7 @@ public class JobQueue {
|
||||
private final static long MIN_LAG_TO_DROP = 500;
|
||||
|
||||
/** @deprecated unimplemented */
|
||||
@Deprecated
|
||||
private final static String PROP_MAX_WAITING_JOBS = "router.maxWaitingJobs";
|
||||
|
||||
/**
|
||||
@@ -249,6 +255,7 @@ public class JobQueue {
|
||||
*
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean isJobActive(Job job) {
|
||||
synchronized (_jobLock) {
|
||||
if (_readyJobs.contains(job) || _timedJobs.contains(job))
|
||||
@@ -263,6 +270,7 @@ public class JobQueue {
|
||||
/**
|
||||
* @deprecated contention - see JobTiming.setStartAfter() comments
|
||||
*/
|
||||
@Deprecated
|
||||
public void timingUpdated() {
|
||||
synchronized (_jobLock) {
|
||||
_jobLock.notifyAll();
|
||||
@@ -346,6 +354,7 @@ public class JobQueue {
|
||||
}
|
||||
|
||||
/** @deprecated do you really want to do this? */
|
||||
@Deprecated
|
||||
public void restart() {
|
||||
synchronized (_jobLock) {
|
||||
_timedJobs.clear();
|
||||
@@ -787,6 +796,7 @@ public class JobQueue {
|
||||
}
|
||||
|
||||
/** @deprecated moved to router console */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ public class KeyManager {
|
||||
*
|
||||
* @deprecated we never read keys in anymore
|
||||
*/
|
||||
@Deprecated
|
||||
public void startup() {
|
||||
// run inline so keys are loaded immediately
|
||||
(new SynchronizeKeysJob()).runJob();
|
||||
|
||||
@@ -77,6 +77,7 @@ public class MessageHistory {
|
||||
public boolean getDoLog() { return _doLog; }
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
void setPauseFlushes(boolean doPause) { _doPause = doPause; }
|
||||
String getFilename() { return _historyFile; }
|
||||
|
||||
|
||||
@@ -146,6 +146,7 @@ public class OutNetMessage implements CDPQEntry {
|
||||
}
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public Map<String, Long> getTimestamps() {
|
||||
if (_log.shouldLog(Log.INFO)) {
|
||||
synchronized (this) {
|
||||
@@ -157,6 +158,7 @@ public class OutNetMessage implements CDPQEntry {
|
||||
}
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public Long getTimestamp(String eventName) {
|
||||
if (_log.shouldLog(Log.INFO)) {
|
||||
synchronized (this) {
|
||||
@@ -178,6 +180,7 @@ public class OutNetMessage implements CDPQEntry {
|
||||
* @deprecated
|
||||
* @return null always
|
||||
*/
|
||||
@Deprecated
|
||||
public Exception getCreatedBy() { return null; }
|
||||
|
||||
/**
|
||||
|
||||
@@ -450,12 +450,14 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
public void setKillVMOnEnd(boolean shouldDie) { _killVMOnEnd = shouldDie; }
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public boolean getKillVMOnEnd() { return _killVMOnEnd; }
|
||||
|
||||
/** @return absolute path */
|
||||
public String getConfigFilename() { return _configFilename; }
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public void setConfigFilename(String filename) { _configFilename = filename; }
|
||||
|
||||
public String getConfigSetting(String name) {
|
||||
@@ -469,6 +471,7 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
* @since 0.8.13
|
||||
* @deprecated use saveConfig(String name, String value) or saveConfig(Map toAdd, Set toRemove)
|
||||
*/
|
||||
@Deprecated
|
||||
public void setConfigSetting(String name, String value) {
|
||||
_config.put(name, value);
|
||||
}
|
||||
@@ -480,6 +483,7 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
* @since 0.8.13
|
||||
* @deprecated use saveConfig(String name, String value) or saveConfig(Map toAdd, Set toRemove)
|
||||
*/
|
||||
@Deprecated
|
||||
public void removeConfigSetting(String name) {
|
||||
_config.remove(name);
|
||||
// remove the backing default also
|
||||
@@ -937,6 +941,7 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
public static final String PROP_FORCE_UNREACHABLE = "router.forceUnreachable";
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public static final char CAPABILITY_NEW_TUNNEL = 'T';
|
||||
|
||||
/**
|
||||
|
||||
@@ -330,6 +330,7 @@ public class RouterClock extends Clock {
|
||||
* @since 0.7.12
|
||||
* @deprecated for debugging only
|
||||
*/
|
||||
@Deprecated
|
||||
public long getDeltaOffset() {
|
||||
return _desiredOffset - _offset;
|
||||
}
|
||||
|
||||
@@ -136,6 +136,7 @@ public class RouterContext extends I2PAppContext {
|
||||
* @since 0.8.4
|
||||
* @deprecated Use Router.saveConfig()
|
||||
*/
|
||||
@Deprecated
|
||||
public void setProperty(String propName, String value) {
|
||||
_overrideProps.setProperty(propName, value);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import net.i2p.data.Hash;
|
||||
*
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
class RouterDoSThrottle extends RouterThrottleImpl {
|
||||
public RouterDoSThrottle(RouterContext context) {
|
||||
super(context);
|
||||
|
||||
@@ -102,6 +102,7 @@ public class RouterThrottleImpl implements RouterThrottle {
|
||||
}
|
||||
|
||||
/** @deprecated unused, function moved to netdb */
|
||||
@Deprecated
|
||||
public boolean acceptNetDbLookupRequest(Hash key) {
|
||||
long lag = _context.jobQueue().getMaxLag();
|
||||
if (lag > JOB_LAG_LIMIT_NETDB) {
|
||||
|
||||
@@ -29,6 +29,7 @@ public interface TunnelManagerFacade extends Service {
|
||||
* @param id the tunnelId as seen at the gateway
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
TunnelInfo getTunnelInfo(TunnelId id);
|
||||
|
||||
/**
|
||||
|
||||
@@ -565,6 +565,7 @@ class ClientManager {
|
||||
}
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
/******
|
||||
StringBuilder buf = new StringBuilder(8*1024);
|
||||
|
||||
@@ -235,6 +235,7 @@ public class ClientManagerFacadeImpl extends ClientManagerFacade implements Inte
|
||||
|
||||
/** @deprecated unused */
|
||||
@Override
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
if (_manager != null)
|
||||
_manager.renderStatusHTML(out);
|
||||
|
||||
@@ -450,6 +450,7 @@ public class TransientSessionKeyManager extends SessionKeyManager {
|
||||
* @deprecated unused and rather drastic
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public void failTags(PublicKey target) {
|
||||
removeSession(target);
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ import net.i2p.router.tunnel.pool.TunnelPool;
|
||||
public class DummyTunnelManagerFacade implements TunnelManagerFacade {
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public TunnelInfo getTunnelInfo(TunnelId id) { return null; }
|
||||
public TunnelInfo selectInboundTunnel() { return null; }
|
||||
public TunnelInfo selectInboundTunnel(Hash destination) { return null; }
|
||||
|
||||
@@ -26,6 +26,7 @@ import net.i2p.util.Log;
|
||||
*
|
||||
* @deprecated unused, see comments in KNDF
|
||||
*/
|
||||
@Deprecated
|
||||
class ExploreKeySelectorJob extends JobImpl {
|
||||
private Log _log;
|
||||
private KademliaNetworkDatabaseFacade _facade;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class PeerManagerFacadeImpl implements PeerManagerFacade {
|
||||
}
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public Hash selectRandomByCapability(char capability) {
|
||||
//if (_manager == null) return null;
|
||||
//return _manager.selectRandomByCapability(capability);
|
||||
@@ -94,6 +95,7 @@ public class PeerManagerFacadeImpl implements PeerManagerFacade {
|
||||
}
|
||||
|
||||
/** @deprecated moved to routerconsole */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
}
|
||||
|
||||
|
||||
@@ -357,6 +357,7 @@ public class ProfileManagerImpl implements ProfileManager {
|
||||
* provide a simple summary of a number of peers, suitable for publication in the netDb
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public Properties summarizePeers(int numPeers) {
|
||||
/****
|
||||
Set peers = new HashSet(numPeers);
|
||||
|
||||
@@ -240,6 +240,7 @@ public class ProfileOrganizer {
|
||||
public int countFastPeers() { return count(_fastPeers); }
|
||||
public int countHighCapacityPeers() { return count(_highCapacityPeers); }
|
||||
/** @deprecated use ProfileManager.getPeersByCapability('f').size() */
|
||||
@Deprecated
|
||||
public int countWellIntegratedPeers() { return count(_wellIntegratedPeers); }
|
||||
public int countNotFailingPeers() { return count(_notFailingPeers); }
|
||||
public int countFailingPeers() { return count(_failingPeers); }
|
||||
@@ -492,6 +493,7 @@ public class ProfileOrganizer {
|
||||
*
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void selectWellIntegratedPeers(int howMany, Set<Hash> exclude, Set<Hash> matches) {
|
||||
selectWellIntegratedPeers(howMany, exclude, matches, 0);
|
||||
}
|
||||
@@ -503,6 +505,7 @@ public class ProfileOrganizer {
|
||||
* not be in the same tunnel. 0 = disable check; 1 = /8; 2 = /16; 3 = /24; 4 = exact IP match
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void selectWellIntegratedPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, int mask) {
|
||||
getReadLock();
|
||||
try {
|
||||
|
||||
@@ -114,9 +114,11 @@ public class FIFOBandwidthLimiter {
|
||||
//public void setMaxOutboundBytes(int numBytes) { _maxOutboundBytes = numBytes; }
|
||||
|
||||
/** @deprecated unused for now, we are always limited */
|
||||
@Deprecated
|
||||
void setInboundUnlimited(boolean isUnlimited) { _inboundUnlimited = isUnlimited; }
|
||||
|
||||
/** @deprecated unused for now, we are always limited */
|
||||
@Deprecated
|
||||
void setOutboundUnlimited(boolean isUnlimited) { _outboundUnlimited = isUnlimited; }
|
||||
|
||||
/** @return smoothed one second rate */
|
||||
@@ -735,6 +737,7 @@ public class FIFOBandwidthLimiter {
|
||||
}
|
||||
|
||||
/** @deprecated not worth translating */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
/*******
|
||||
long now = now();
|
||||
|
||||
@@ -29,6 +29,7 @@ class GetBidsJob extends JobImpl {
|
||||
/**
|
||||
* @deprecated unused, see static getBids()
|
||||
*/
|
||||
@Deprecated
|
||||
public GetBidsJob(RouterContext ctx, TransportManager tmgr, OutNetMessage msg) {
|
||||
super(ctx);
|
||||
_log = ctx.logManager().getLog(GetBidsJob.class);
|
||||
|
||||
@@ -255,6 +255,7 @@ public class OutboundMessageRegistry {
|
||||
}
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {}
|
||||
|
||||
private class CleanupTask extends SimpleTimer2.TimedEvent {
|
||||
|
||||
@@ -159,6 +159,7 @@ public interface Transport {
|
||||
/**
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void recheckReachability();
|
||||
|
||||
public boolean isBacklogged(Hash peer);
|
||||
|
||||
@@ -328,6 +328,7 @@ class UDPPacket implements CDQEntry {
|
||||
* @since 0.9.21
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public synchronized void requestInboundBandwidth() {
|
||||
verifyNotReleased();
|
||||
_bandwidthRequest = _context.bandwidthLimiter().requestInbound(_packet.getLength(), "UDP receiver");
|
||||
|
||||
@@ -849,6 +849,7 @@ class UDPPacketReader {
|
||||
}
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public int readAliceIPSize() {
|
||||
int offset = readBodyOffset();
|
||||
offset += _message[offset] & 0xff;
|
||||
@@ -856,6 +857,7 @@ class UDPPacketReader {
|
||||
return _message[offset] & 0xff;
|
||||
}
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public void readAliceIP(byte target[], int targetOffset) {
|
||||
int offset = readBodyOffset();
|
||||
offset += _message[offset] & 0xff;
|
||||
@@ -865,6 +867,7 @@ class UDPPacketReader {
|
||||
System.arraycopy(_message, offset, target, targetOffset, sz);
|
||||
}
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public int readAlicePort() {
|
||||
int offset = readBodyOffset();
|
||||
offset += _message[offset] & 0xff;
|
||||
|
||||
@@ -124,6 +124,7 @@ class UDPSender {
|
||||
* @param blockTime how long to block IGNORED
|
||||
* @deprecated use add(packet)
|
||||
*/
|
||||
@Deprecated
|
||||
public void add(UDPPacket packet, int blockTime) {
|
||||
/********
|
||||
//long expiration = _context.clock().now() + blockTime;
|
||||
|
||||
@@ -127,6 +127,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
/** now unused, we pick a random port
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public static final int DEFAULT_INTERNAL_PORT = 8887;
|
||||
|
||||
/** define this to explicitly set an external IP address */
|
||||
@@ -3102,6 +3103,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public void recheckReachability() {
|
||||
// FIXME locking if we do this again
|
||||
//_testEvent.runTest();
|
||||
|
||||
@@ -11,6 +11,7 @@ import net.i2p.util.ConcurrentHashSet;
|
||||
*
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
class HashSetIVValidator implements IVValidator {
|
||||
private final Set<ByteArray> _received;
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ class HopProcessor {
|
||||
/**
|
||||
* @deprecated used only by unit tests
|
||||
*/
|
||||
@Deprecated
|
||||
HopProcessor(I2PAppContext ctx, HopConfig config) {
|
||||
this(ctx, config, createValidator());
|
||||
}
|
||||
@@ -48,6 +49,7 @@ class HopProcessor {
|
||||
/**
|
||||
* @deprecated used only by unit test constructor
|
||||
*/
|
||||
@Deprecated
|
||||
private static IVValidator createValidator() {
|
||||
// yeah, we'll use an O(1) validator later (e.g. bloom filter)
|
||||
return new HashSetIVValidator();
|
||||
|
||||
@@ -24,6 +24,7 @@ class InboundEndpointProcessor {
|
||||
/**
|
||||
* @deprecated used only by unit tests
|
||||
*/
|
||||
@Deprecated
|
||||
InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg) {
|
||||
this(ctx, cfg, DummyValidator.getInstance());
|
||||
}
|
||||
|
||||
@@ -150,6 +150,7 @@ class TrivialPreprocessor implements TunnelGateway.QueuePreprocessor {
|
||||
* are there follow up headers?
|
||||
* @deprecated unimplemented
|
||||
*/
|
||||
@Deprecated
|
||||
private static final byte MASK_EXTENDED = FragmentHandler.MASK_EXTENDED;
|
||||
private static final byte MASK_TUNNEL = (byte)(FragmentHandler.TYPE_TUNNEL << 5);
|
||||
private static final byte MASK_ROUTER = (byte)(FragmentHandler.TYPE_ROUTER << 5);
|
||||
|
||||
@@ -9,6 +9,7 @@ import net.i2p.router.RouterContext;
|
||||
*
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
class TrivialRouterPreprocessor extends TrivialPreprocessor {
|
||||
|
||||
public TrivialRouterPreprocessor(RouterContext ctx) {
|
||||
|
||||
@@ -949,6 +949,7 @@ public class TunnelDispatcher implements Service {
|
||||
}
|
||||
|
||||
/** @deprecated moved to router console */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {}
|
||||
|
||||
/**
|
||||
|
||||
@@ -75,6 +75,7 @@ class PooledTunnelCreatorConfig extends TunnelCreatorConfig {
|
||||
|
||||
|
||||
/** @deprecated unused, which makes _testJob unused - why is it here */
|
||||
@Deprecated
|
||||
void setTestJob(TestJob job) { _testJob = job; }
|
||||
/** does nothing, to be deprecated */
|
||||
public void setExpireJob(Job job) { /* _expireJob = job; */ }
|
||||
@@ -82,6 +83,7 @@ class PooledTunnelCreatorConfig extends TunnelCreatorConfig {
|
||||
/**
|
||||
* @deprecated Fix memory leaks caused by references if you need to use pairedTunnel
|
||||
*/
|
||||
@Deprecated
|
||||
public void setPairedTunnel(TunnelInfo tunnel) { /* _pairedTunnel = tunnel; */}
|
||||
// public TunnelInfo getPairedTunnel() { return _pairedTunnel; }
|
||||
}
|
||||
|
||||
@@ -254,6 +254,7 @@ public class TunnelPoolManager implements TunnelManagerFacade {
|
||||
* Expensive (iterates through all tunnels of all pools) and unnecessary.
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public TunnelInfo getTunnelInfo(TunnelId id) {
|
||||
TunnelInfo info = null;
|
||||
for (TunnelPool pool : _clientInboundPools.values()) {
|
||||
@@ -646,6 +647,7 @@ public class TunnelPoolManager implements TunnelManagerFacade {
|
||||
public int getInboundBuildQueueSize() { return _handler.getInboundBuildQueueSize(); }
|
||||
|
||||
/** @deprecated moved to routerconsole */
|
||||
@Deprecated
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ public class PriBlockingQueue<E extends PQEntry> extends PriorityBlockingQueue<E
|
||||
* Returns false if full
|
||||
* @deprecated use offer(o)
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public boolean add(E o) {
|
||||
timestamp(o);
|
||||
@@ -79,6 +80,7 @@ public class PriBlockingQueue<E extends PQEntry> extends PriorityBlockingQueue<E
|
||||
* @param unit ignored
|
||||
* @deprecated use offer(o)
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public boolean offer(E o, long timeout, TimeUnit unit) {
|
||||
timestamp(o);
|
||||
@@ -94,6 +96,7 @@ public class PriBlockingQueue<E extends PQEntry> extends PriorityBlockingQueue<E
|
||||
* Non blocking. Does not add if full.
|
||||
* @deprecated use offer(o)
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public void put(E o) {
|
||||
timestamp(o);
|
||||
|
||||
@@ -227,6 +227,7 @@ public class Action
|
||||
* - {@link #setInArgumentValues(ArgumentList)} <br/>
|
||||
* - {@link #setOutArgumentValues(ArgumentList)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void setArgumentValues(ArgumentList argList)
|
||||
{
|
||||
getArgumentList().set(argList);
|
||||
|
||||
@@ -62,6 +62,7 @@ public class ArgumentList extends Vector<Argument>
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public void set(ArgumentList inArgList)
|
||||
{
|
||||
int nInArgs = inArgList.size();
|
||||
|
||||
Reference in New Issue
Block a user