Ticket #1682: 20160206i2p_router.diff

File 20160206i2p_router.diff, 48.5 KB (added by z3r0fox, 6 years ago)

Diff of added @Deprecated annotations to router classes

  • router/java/src/net/i2p/data/i2np/DeliveryInstructions.java

    #
    # old_revision [4cc2c7fcb8b6994a5aaa39cd7b1fd45734c792fb]
    #
    # patch "router/java/src/net/i2p/data/i2np/DeliveryInstructions.java"
    #  from [9fdcd4db6f4c1e060b337e8a69856c9429414a08]
    #    to [171e82142d7599bdf412006ca816e82e3e303087]
    # 
    # patch "router/java/src/net/i2p/data/i2np/FastI2NPMessageImpl.java"
    #  from [f67f248dab01f5abb1714eefa6b7215847c56dd3]
    #    to [588c34c7eea2ce25f0b6f4000130dd77e6285530]
    # 
    # patch "router/java/src/net/i2p/data/i2np/GarlicClove.java"
    #  from [d3c074eb323967e50e917ef572951bf6c02eaead]
    #    to [8d54829c2725869423b47f9c337fbd17281db0bf]
    # 
    # patch "router/java/src/net/i2p/data/i2np/I2NPMessage.java"
    #  from [54dcbc8b1de30c04441756947e4759e63bc0d4f6]
    #    to [6e7549652dcd24c38e23792cb955594da62b6031]
    # 
    # patch "router/java/src/net/i2p/data/i2np/I2NPMessageHandler.java"
    #  from [d865735a8858ab92a86c0ae8bcfd3ed3c1b7ddb3]
    #    to [47bcadc8469da260f8218a26d9db4f218d885d7e]
    # 
    # patch "router/java/src/net/i2p/data/i2np/I2NPMessageImpl.java"
    #  from [d9edb2ebe89acd7b91ef5aef3e7880ed0802ad6a]
    #    to [8b08df0df8bce814d9411014cb6b60cfc310a366]
    # 
    # patch "router/java/src/net/i2p/data/i2np/I2NPMessageReader.java"
    #  from [dbc586d0398795b6d448c810ecb5dc82be3062b3]
    #    to [b134b70338e3de85d1d6b49641d332920585826a]
    # 
    # patch "router/java/src/net/i2p/data/router/RouterAddress.java"
    #  from [a4524c513f1ac07c88d7c5e07cb9739b981faf5f]
    #    to [3067ea9ded80bb1f8f5c268d2a8ff4cad29ffd5d]
    # 
    # patch "router/java/src/net/i2p/data/router/RouterInfo.java"
    #  from [d5754552a3dfcd7899777c6903d8a924d686ecb9]
    #    to [dd9ea170172ec7c7300e26368a06131d6eb86e67]
    # 
    # patch "router/java/src/net/i2p/router/Banlist.java"
    #  from [4f6a721741b634b291fe017ab2172f2f059d0a6a]
    #    to [93a822f72d77a0cc82f93f7643013b93fd36901b]
    # 
    # patch "router/java/src/net/i2p/router/JobImpl.java"
    #  from [6ec4e44fa767a75e070eef2cfcf74d3f9df5a262]
    #    to [67d29f5d10fbf3eb15bcd89484236c82804dea8b]
    # 
    # patch "router/java/src/net/i2p/router/JobQueue.java"
    #  from [1735a21d031fda7c19f6097ea663f52d3352fa12]
    #    to [1372a64d0b535d02ff1743edfbdfd91e313a4781]
    # 
    # patch "router/java/src/net/i2p/router/KeyManager.java"
    #  from [90da7a9932cb8620651c4609354e0a2439e1f1ff]
    #    to [89a9563ac67c0142ff99db273c1e58a16e5ad8a5]
    # 
    # patch "router/java/src/net/i2p/router/MessageHistory.java"
    #  from [81bfb0d4e0a762cf235343c4d9c207b9f5ab391c]
    #    to [d4c77ec473b94b3dc45ef39f1ac4c5cc13a76a00]
    # 
    # patch "router/java/src/net/i2p/router/OutNetMessage.java"
    #  from [ebfdec1e9204dd84973f677f2ef2864cba35b87c]
    #    to [6d66b7f18ef3ac7c9c3b63d95c7e4d12ed3dffc6]
    # 
    # patch "router/java/src/net/i2p/router/Router.java"
    #  from [a47d1a1b9200a5fa76c3b10ea71d52fc9a54f465]
    #    to [fb65f0c2799722197feb3f5725c9693af45189e5]
    # 
    # patch "router/java/src/net/i2p/router/RouterClock.java"
    #  from [63316e1cd1d3d9fa31437af3aa3862253fa0def2]
    #    to [9e29c2e1c729e094f0ebcc4da30e76652acc8343]
    # 
    # patch "router/java/src/net/i2p/router/RouterContext.java"
    #  from [b66366f7934e7e4216cadf14d5aafd0903a2f25f]
    #    to [3374fd2e0916b46a13512ac8ba127967fcc2fa19]
    # 
    # patch "router/java/src/net/i2p/router/RouterDoSThrottle.java"
    #  from [7d72e49fcfdaf08cd86937041e77a98731729a02]
    #    to [c99cf4e0e8474ea9b6564cc355a36ef8a47d968b]
    # 
    # patch "router/java/src/net/i2p/router/RouterThrottleImpl.java"
    #  from [f92fec977ca73960a4f336b77ce17f354316a931]
    #    to [5b5fc0337a4c914fd8734af38a97465bd3070fbd]
    # 
    # patch "router/java/src/net/i2p/router/TunnelManagerFacade.java"
    #  from [614053eb3e0afe079ebb0e9a137ff4674649acd0]
    #    to [f693099178e66410ac472b25448fc79959c2234e]
    # 
    # patch "router/java/src/net/i2p/router/client/ClientManager.java"
    #  from [2c69f2a513c4369280703d8069eb64fb64718848]
    #    to [eeecd439e07c18a8ef3c5679a39a0268c4c8409e]
    # 
    # patch "router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java"
    #  from [bcc6f85e33723a155d732d52c454462da5f2563c]
    #    to [8034e0ee840d4e265cd57d2911e41c6b6c11b782]
    # 
    # patch "router/java/src/net/i2p/router/crypto/TransientSessionKeyManager.java"
    #  from [7cef1c1ccfb4c78c8c790836ea15ff59a99070e6]
    #    to [e125303aa9a8bdead729d8cf94d1fb3e68794323]
    # 
    # patch "router/java/src/net/i2p/router/dummy/DummyTunnelManagerFacade.java"
    #  from [b5de2a7eb46648e4dde478b6791c9b6d8402e5f9]
    #    to [4a9fd16311b020085fc7fab7267f815dc78dd0f5]
    # 
    # patch "router/java/src/net/i2p/router/networkdb/kademlia/ExploreKeySelectorJob.java"
    #  from [4a05e5e98dea8e682bab9aa352294a8e658c72f1]
    #    to [a5d5c97bec11ee2d18cdf3c079d919ad9d3794b5]
    # 
    # patch "router/java/src/net/i2p/router/peermanager/PeerManagerFacadeImpl.java"
    #  from [da8713a9593b3b81f515e07d2d3a38b7d37d8e20]
    #    to [4c040e6522be4340c8152b06881821ccccdecfbe]
    # 
    # patch "router/java/src/net/i2p/router/peermanager/ProfileManagerImpl.java"
    #  from [9da160dec41c8c1c797cc680ef8c43b8b70e8a3d]
    #    to [e9c14178a27ea36aacd014cab86d049ba15cb6b8]
    # 
    # patch "router/java/src/net/i2p/router/peermanager/ProfileOrganizer.java"
    #  from [72980ae05114f69b5c5f8527ef42aaa5f9e5b065]
    #    to [8d690bbdc209bad411d1aa7ca2ae1733ac523121]
    # 
    # patch "router/java/src/net/i2p/router/transport/FIFOBandwidthLimiter.java"
    #  from [d662d52c4e4bb9b9aae677f75f703932fe291795]
    #    to [84d5f062e4fc70b6ced002adfe689e27631cd9a7]
    # 
    # patch "router/java/src/net/i2p/router/transport/GetBidsJob.java"
    #  from [9d34cdf9c6f42c32c604a42e71a614318ee8ce28]
    #    to [892b20f4c55cce9d45656d6cbd9f71dd46041ce7]
    # 
    # patch "router/java/src/net/i2p/router/transport/OutboundMessageRegistry.java"
    #  from [783f7a431299f8b5a438748084ed48b219ceaec4]
    #    to [15e14a31ebbfd2df83e0f0a0271693c387482ee4]
    # 
    # patch "router/java/src/net/i2p/router/transport/Transport.java"
    #  from [15ed63940290772f762c540373386ce8e8a518f6]
    #    to [862156364ec429b72a74240955d427026e3c2f8e]
    # 
    # patch "router/java/src/net/i2p/router/transport/udp/UDPPacket.java"
    #  from [09c2d9f70594faa51aed083ecdc0b1dc194aa3c0]
    #    to [2c538f7ca507d75e9ae9cfd522fa8e7d69e44d88]
    # 
    # patch "router/java/src/net/i2p/router/transport/udp/UDPPacketReader.java"
    #  from [1355bd4b0b57d8360eba65ee4e09976d3683d73a]
    #    to [0c674290f418b863cd67f37ce270cf0dac63fb14]
    # 
    # patch "router/java/src/net/i2p/router/transport/udp/UDPSender.java"
    #  from [8cb3804f8d96a6ce4ca0a14d217dfe90e7f1a9a0]
    #    to [f1068b00d842d2492c2d0e26b779b8b970bd55d3]
    # 
    # patch "router/java/src/net/i2p/router/transport/udp/UDPTransport.java"
    #  from [1dbd85c7be200e822bc45f7872c2c7d874e385ab]
    #    to [58f6d2bec164ea7f5541a76a92e97d02d19be021]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/HashSetIVValidator.java"
    #  from [a0f6ae6c17786513ff348fedd750c62d1c5204ac]
    #    to [d936859f6b29dc2abc6f636174bc88d96b647047]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/HopProcessor.java"
    #  from [9f19675429d05c03ed1f8306102ad954305b7ce5]
    #    to [fcaf247f6d2458bf689f9cd2d4f84d5dc4018e4c]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/InboundEndpointProcessor.java"
    #  from [fdd889220294b448d5f33dd13bf50180f97a067e]
    #    to [125fc2ac06481293ec09f4cb20ad3e8648f3e1c6]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/TrivialPreprocessor.java"
    #  from [a34b9dd4ffd2f4226d91de5c0494c738db38ea81]
    #    to [4c8bd173e99a51a401debdac1475394551fd019c]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/TrivialRouterPreprocessor.java"
    #  from [43cb52273112d61fd37c0628874ef22331f40c5a]
    #    to [7863a50c0ea000ed55f944321bea2ff83947a939]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java"
    #  from [4c90c1e7387ecb9c37da8b00daa043ad9990c32e]
    #    to [829c6ab8d6c177447c9de70ffe7910575b1463f3]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/pool/PooledTunnelCreatorConfig.java"
    #  from [475f2bd511d7c0ce4eb1bd4695fa9fa0b45e12ae]
    #    to [6fef3e7fa55333befa3d00fa9aa65d1fd6125127]
    # 
    # patch "router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java"
    #  from [f64a48436e22405cb58c9fc5eb014effe07196a3]
    #    to [38a02a6cb8ffafa125e48950300214e0f3b6ac93]
    # 
    # patch "router/java/src/net/i2p/router/util/PriBlockingQueue.java"
    #  from [96b90adf3b13a0e005d9bc1199726a45d2190e8f]
    #    to [628e885c34e7602adfa7d6da9f44e4e05dc2820d]
    # 
    # patch "router/java/src/org/cybergarage/upnp/Action.java"
    #  from [3ba5bb33cbdcb530b9e9b5462c0111f562835791]
    #    to [c9b481718a3debac52f0d8815e48558e54f4515b]
    # 
    # patch "router/java/src/org/cybergarage/upnp/ArgumentList.java"
    #  from [0a60a720ca5afef9017503476080386bff3cf515]
    #    to [6d5c488613c53575193a5721a0a51349cafcdaef]
    #
    ============================================================
    public class DeliveryInstructions extend 
    5252    private final static int FLAG_MODE_TUNNEL = 3;
    5353   
    5454    /** @deprecated unused */
     55    @Deprecated
    5556    private final static long FLAG_ENCRYPTED = 128;
    5657    private final static long FLAG_MODE = 96;
    5758    private final static long FLAG_DELAY = 16;
    public class DeliveryInstructions extend 
    8485     * For cloves only (not tunnels), default false, unused
    8586     * @deprecated unused
    8687     */
     88    @Deprecated
    8789    public boolean getEncrypted() { return /* _encrypted */ false; }
    8890   
    8991    /**
    9092     * For cloves only (not tunnels), default false, unused
    9193     * @deprecated unused
    9294     */
     95    @Deprecated
    9396    public void setEncrypted(boolean encrypted) { /* _encrypted = encrypted; */ }
    9497
    9598    /**
    9699     * For cloves only (not tunnels), default null, unused
    97100     * @deprecated unused
    98101     */
     102    @Deprecated
    99103    public SessionKey getEncryptionKey() { return /* _encryptionKey */ null; }
    100104
    101105    /**
    102106     * For cloves only (not tunnels), default null, unused
    103107     * @deprecated unused
    104108     */
     109    @Deprecated
    105110    public void setEncryptionKey(SessionKey key) { /* _encryptionKey = key; */ }
    106111
    107112    /** default -1 */
    public class DeliveryInstructions extend 
    132137     * default false, unused
    133138     * @deprecated unused
    134139     */
     140    @Deprecated
    135141    public boolean getDelayRequested() { return _delayRequested; }
    136142   
    137143    /**
    138144     * default false, unused
    139145     * @deprecated unused
    140146     */
     147    @Deprecated
    141148    public void setDelayRequested(boolean req) { _delayRequested = req; }
    142149   
    143150    /**
    144151     * default 0, unused
    145152     * @deprecated unused
    146153     */
     154    @Deprecated
    147155    public long getDelaySeconds() { return _delaySeconds; }
    148156   
    149157    /**
    150158     * default 0, unused
    151159     * @deprecated unused
    152160     */
     161    @Deprecated
    153162    public void setDelaySeconds(long seconds) { _delaySeconds = seconds; }
    154163   
    155164    /**
    156165     * @deprecated unused
    157166     */
     167    @Deprecated
    158168    public void readBytes(InputStream in) throws DataFormatException, IOException {
    159169        long flags = DataHelper.readLong(in, 1);
    160170        //if (_log.shouldLog(Log.DEBUG))
    public class DeliveryInstructions extend 
    423433    /**
    424434     * @deprecated unused
    425435     */
     436    @Deprecated
    426437    public void writeBytes(OutputStream out) throws DataFormatException, IOException {
    427438        if ( (_deliveryMode < 0) || (_deliveryMode > FLAG_MODE_TUNNEL) ) throw new DataFormatException("Invalid data: mode = " + _deliveryMode);
    428439        long flags = getFlags();
  • router/java/src/net/i2p/data/i2np/FastI2NPMessageImpl.java

    ============================================================
    public abstract class FastI2NPMessageImp 
    5353     *  @deprecated unused
    5454     *  @throws UnsupportedOperationException
    5555     */
     56    @Deprecated
    5657    @Override
    5758    public void readBytes(InputStream in) throws DataFormatException, IOException {
    5859        throw new UnsupportedOperationException();
    public abstract class FastI2NPMessageImp 
    6263     *  @deprecated unused
    6364     *  @throws UnsupportedOperationException
    6465     */
     66    @Deprecated
    6567    @Override
    6668    public int readBytes(InputStream in, int type, byte buffer[]) throws I2NPMessageException, IOException {
    6769        throw new UnsupportedOperationException();
    public abstract class FastI2NPMessageImp 
    118120     *  @deprecated unused
    119121     *  @throws UnsupportedOperationException
    120122     */
     123    @Deprecated
    121124    @Override
    122125    public void writeBytes(OutputStream out) throws DataFormatException, IOException {
    123126        throw new UnsupportedOperationException();
  • router/java/src/net/i2p/data/i2np/GarlicClove.java

    ============================================================
    public class GarlicClove extends DataStr 
    6060     *  @deprecated unused, use byte array method to avoid copying
    6161     *  @throws UnsupportedOperationException always
    6262     */
     63    @Deprecated
    6364    public void readBytes(InputStream in) throws DataFormatException, IOException {
    6465        throw new UnsupportedOperationException();
    6566/****
    public class GarlicClove extends DataStr 
    119120     *  @deprecated unused, use byte array method to avoid copying
    120121     *  @throws UnsupportedOperationException always
    121122     */
     123    @Deprecated
    122124    public void writeBytes(OutputStream out) throws DataFormatException, IOException {
    123125        throw new UnsupportedOperationException();
    124126/****
  • router/java/src/net/i2p/data/i2np/I2NPMessage.java

    ============================================================
    public interface I2NPMessage extends Dat 
    4848     * @throws IOException if there is a problem reading from the stream
    4949     * @deprecated unused
    5050     */
     51    @Deprecated
    5152    public int readBytes(InputStream in, int type, byte buffer[]) throws I2NPMessageException, IOException;
    5253
    5354    /**
  • router/java/src/net/i2p/data/i2np/I2NPMessageHandler.java

    ============================================================
    public class I2NPMessageHandler { 
    4646     * @throws I2NPMessageException if there is a problem handling the particular
    4747     *          message - if it is an unknown type or has improper formatting, etc.
    4848     */
     49    @Deprecated
    4950    public I2NPMessage readMessage(InputStream in) throws IOException, I2NPMessageException {
    5051        if (_messageBuffer == null) _messageBuffer = new byte[38*1024]; // more than necessary
    5152        try {
  • router/java/src/net/i2p/data/i2np/I2NPMessageImpl.java

    ============================================================
    public abstract class I2NPMessageImpl ex 
    5858    private static final Map<Integer, Builder> _builders = new ConcurrentHashMap<Integer, Builder>(1);
    5959
    6060    /** @deprecated unused */
     61    @Deprecated
    6162    public static final void registerBuilder(Builder builder, int type) { _builders.put(Integer.valueOf(type), builder); }
    6263
    6364    /** interface for extending the types of messages handled - unused */
    public abstract class I2NPMessageImpl ex 
    8081     *
    8182     *  @deprecated unused
    8283     */
     84    @Deprecated
    8385    public void readBytes(InputStream in) throws DataFormatException, IOException {
    8486        try {
    8587            readBytes(in, -1, new byte[1024]);
    public abstract class I2NPMessageImpl ex 
    112114     *  @return total length of the message
    113115     *  @deprecated unused
    114116     */
     117    @Deprecated
    115118    public int readBytes(InputStream in, int type, byte buffer[]) throws I2NPMessageException, IOException {
    116119        try {
    117120            if (type < 0)
    public abstract class I2NPMessageImpl ex 
    243246     *
    244247     *  @deprecated unused
    245248     */
     249    @Deprecated
    246250    public void writeBytes(OutputStream out) throws DataFormatException, IOException {
    247251        int size = getMessageSize();
    248252        if (size < 15 + CHECKSUM_LENGTH) throw new DataFormatException("Unable to build the message");
  • router/java/src/net/i2p/data/i2np/I2NPMessageReader.java

    ============================================================
    import net.i2p.util.Log; 
    3434 *
    3535 * @author jrandom
    3636 */
     37@Deprecated
    3738public class I2NPMessageReader {
    3839    private Log _log;
    3940    private RouterContext _context;
    public class I2NPMessageReader { 
    7071     * Have the already started reader pause its reading indefinitely
    7172     * @deprecated unused
    7273     */
     74    @Deprecated
    7375    public void pauseReading() { _reader.pauseRunner(); }
    7476
    7577    /**
    7678     * Resume reading after a pause
    7779     * @deprecated unused
    7880     */
     81    @Deprecated
    7982    public void resumeReading() { _reader.resumeRunner(); }
    8083
    8184    /**
  • router/java/src/net/i2p/data/router/RouterAddress.java

    ============================================================
    public class RouterAddress extends DataS 
    112112     * @deprecated unused for now
    113113     * @return null for never, or a Date
    114114     */
     115    @Deprecated
    115116    public Date getExpiration() {
    116117        //return _expiration;
    117118        if (_expiration > 0)
    public class RouterAddress extends DataS 
    127128     * @return 0 for never
    128129     * @since 0.9.12
    129130     */
     131    @Deprecated
    130132    public long getExpirationTime() {
    131133        return _expiration;
    132134    }
    public class RouterAddress extends DataS 
    141143     * Unused for now, always null
    142144     * @deprecated unused for now
    143145     */
     146    @Deprecated
    144147    public void setExpiration(Date expiration) {
    145148        _expiration = expiration.getDate();
    146149    }
    public class RouterAddress extends DataS 
    159162     * @throws IllegalStateException if was already set
    160163     * @deprecated unused, use 3-arg constructor
    161164     */
     165    @Deprecated
    162166    public void setTransportStyle(String transportStyle) {
    163167        if (_transportStyle != null)
    164168            throw new IllegalStateException();
    public class RouterAddress extends DataS 
    171175     * @deprecated use getOptionsMap()
    172176     * @return sorted, non-null, NOT a copy, do not modify
    173177     */
     178    @Deprecated
    174179    public Properties getOptions() {
    175180        return _options;
    176181    }
    public class RouterAddress extends DataS 
    199204     * @throws IllegalStateException if was already set
    200205     * @deprecated unused, use 3-arg constructor
    201206     */
     207    @Deprecated
    202208    public void setOptions(Properties options) {
    203209        if (!_options.isEmpty())
    204210            throw new IllegalStateException();
  • router/java/src/net/i2p/data/router/RouterInfo.java

    ============================================================
    public class RouterInfo extends Database 
    221221     *
    222222     * @deprecated Implemented here but unused elsewhere
    223223     */
     224    @Deprecated
    224225    public Set<Hash> getPeers() {
    225226        if (_peers == null)
    226227            return Collections.emptySet();
    public class RouterInfo extends Database 
    234235     * @deprecated Implemented here but unused elsewhere
    235236     * @throws IllegalStateException if RouterInfo is already signed
    236237     */
     238    @Deprecated
    237239    public void setPeers(Set<Hash> peers) {
    238240        if (_signature != null)
    239241            throw new IllegalStateException();
    public class RouterInfo extends Database 
    255257     * @deprecated use getOptionsMap()
    256258     * @return sorted, non-null, NOT a copy, do not modify!!!
    257259     */
     260    @Deprecated
    258261    public Properties getOptions() {
    259262        return _options;
    260263    }
  • router/java/src/net/i2p/router/Banlist.java

    ============================================================
    public class Banlist { 
    294294    }
    295295
    296296    /** @deprecated moved to router console */
     297    @Deprecated
    297298    public void renderStatusHTML(Writer out) throws IOException {
    298299    }
    299300}
  • router/java/src/net/i2p/router/JobImpl.java

    ============================================================
    public abstract class JobImpl implements 
    4848     *  class list for no good reason. Logging in jobs is almost always
    4949     *  set explicitly rather than by class name.
    5050     */
     51    @Deprecated
    5152    void addedToQueue() {
    5253        //if (_context.logManager().getLog(getClass()).shouldLog(Log.DEBUG))
    5354        //    _addedBy = new Exception();
    public abstract class JobImpl implements 
    5758     *  @deprecated
    5859     *  @return null always
    5960     */
     61    @Deprecated
    6062    public Exception getAddedBy() { return null; }
    6163    public long getMadeReadyOn() { return _madeReadyOn; }
    6264    public void madeReady() { _madeReadyOn = _context.clock().now(); }
  • router/java/src/net/i2p/router/JobQueue.java

    ============================================================
    public class JobQueue { 
    8686    private long _lagWarning = DEFAULT_LAG_WARNING;
    8787    private final static long DEFAULT_LAG_WARNING = 5*1000;
    8888    /** @deprecated unimplemented */
     89    @Deprecated
    8990    private final static String PROP_LAG_WARNING = "router.jobLagWarning";
    9091   
    9192    /** if a job is this lagged, the router is hosed, so spit out a warning (dont shut it down) */
    9293    private long _lagFatal = DEFAULT_LAG_FATAL;
    9394    private final static long DEFAULT_LAG_FATAL = 30*1000;
    9495    /** @deprecated unimplemented */
     96    @Deprecated
    9597    private final static String PROP_LAG_FATAL = "router.jobLagFatal";
    9698   
    9799    /** if a job takes this long to run, spit out a warning, but keep going */
    98100    private long _runWarning = DEFAULT_RUN_WARNING;
    99101    private final static long DEFAULT_RUN_WARNING = 5*1000;
    100102    /** @deprecated unimplemented */
     103    @Deprecated
    101104    private final static String PROP_RUN_WARNING = "router.jobRunWarning";
    102105   
    103106    /** if a job takes this long to run, the router is hosed, so spit out a warning (dont shut it down) */
    104107    private long _runFatal = DEFAULT_RUN_FATAL;
    105108    private final static long DEFAULT_RUN_FATAL = 30*1000;
    106109    /** @deprecated unimplemented */
     110    @Deprecated
    107111    private final static String PROP_RUN_FATAL = "router.jobRunFatal";
    108112   
    109113    /** don't enforce fatal limits until the router has been up for this long */
    110114    private long _warmupTime = DEFAULT_WARMUP_TIME;
    111115    private final static long DEFAULT_WARMUP_TIME = 10*60*1000;
    112116    /** @deprecated unimplemented */
     117    @Deprecated
    113118    private final static String PROP_WARMUP_TIME = "router.jobWarmupTime";
    114119   
    115120    /** max ready and waiting jobs before we start dropping 'em */
    public class JobQueue { 
    118123    private final static long MIN_LAG_TO_DROP = 500;
    119124
    120125    /** @deprecated unimplemented */
     126    @Deprecated
    121127    private final static String PROP_MAX_WAITING_JOBS = "router.maxWaitingJobs";
    122128
    123129    /**
    public class JobQueue { 
    249255     *
    250256     * @deprecated unused
    251257     */
     258    @Deprecated
    252259    public boolean isJobActive(Job job) {
    253260        synchronized (_jobLock) {
    254261            if (_readyJobs.contains(job) || _timedJobs.contains(job))
    public class JobQueue { 
    263270    /**
    264271     *  @deprecated contention - see JobTiming.setStartAfter() comments
    265272     */
     273    @Deprecated
    266274    public void timingUpdated() {
    267275        synchronized (_jobLock) {
    268276            _jobLock.notifyAll();
    public class JobQueue { 
    346354    }
    347355
    348356    /** @deprecated do you really want to do this? */
     357    @Deprecated
    349358    public void restart() {
    350359        synchronized (_jobLock) {
    351360            _timedJobs.clear();
    public class JobQueue { 
    787796    }
    788797
    789798    /** @deprecated moved to router console */
     799    @Deprecated
    790800    public void renderStatusHTML(Writer out) throws IOException {
    791801    }
    792802}
  • router/java/src/net/i2p/router/KeyManager.java

    ============================================================
    public class KeyManager { 
    6565     *
    6666     *  @deprecated we never read keys in anymore
    6767     */
     68    @Deprecated
    6869    public void startup() {
    6970        // run inline so keys are loaded immediately
    7071        (new SynchronizeKeysJob()).runJob();
  • router/java/src/net/i2p/router/MessageHistory.java

    ============================================================
    public class MessageHistory { 
    7777    public boolean getDoLog() { return _doLog; }
    7878   
    7979    /** @deprecated unused */
     80    @Deprecated
    8081    void setPauseFlushes(boolean doPause) { _doPause = doPause; }
    8182    String getFilename() { return _historyFile; }
    8283   
  • router/java/src/net/i2p/router/OutNetMessage.java

    ============================================================
    public class OutNetMessage implements CD 
    146146    }
    147147
    148148    /** @deprecated unused */
     149    @Deprecated
    149150    public Map<String, Long> getTimestamps() {
    150151        if (_log.shouldLog(Log.INFO)) {
    151152            synchronized (this) {
    public class OutNetMessage implements CD 
    157158    }
    158159
    159160    /** @deprecated unused */
     161    @Deprecated
    160162    public Long getTimestamp(String eventName) {
    161163        if (_log.shouldLog(Log.INFO)) {
    162164            synchronized (this) {
    public class OutNetMessage implements CD 
    178180     * @deprecated
    179181     * @return null always
    180182     */
     183    @Deprecated
    181184    public Exception getCreatedBy() { return null; }
    182185   
    183186    /**
  • router/java/src/net/i2p/router/Router.java

    ============================================================
    public class Router implements RouterClo 
    450450    public void setKillVMOnEnd(boolean shouldDie) { _killVMOnEnd = shouldDie; }
    451451
    452452    /** @deprecated unused */
     453    @Deprecated
    453454    public boolean getKillVMOnEnd() { return _killVMOnEnd; }
    454455   
    455456    /** @return absolute path */
    456457    public String getConfigFilename() { return _configFilename; }
    457458
    458459    /** @deprecated unused */
     460    @Deprecated
    459461    public void setConfigFilename(String filename) { _configFilename = filename; }
    460462   
    461463    public String getConfigSetting(String name) {
    public class Router implements RouterClo 
    469471     *  @since 0.8.13
    470472     *  @deprecated use saveConfig(String name, String value) or saveConfig(Map toAdd, Set toRemove)
    471473     */
     474    @Deprecated
    472475    public void setConfigSetting(String name, String value) {
    473476            _config.put(name, value);
    474477    }
    public class Router implements RouterClo 
    480483     *  @since 0.8.13
    481484     *  @deprecated use saveConfig(String name, String value) or saveConfig(Map toAdd, Set toRemove)
    482485     */
     486    @Deprecated
    483487    public void removeConfigSetting(String name) {
    484488            _config.remove(name);
    485489            // remove the backing default also
    public class Router implements RouterClo 
    937941    public static final String PROP_FORCE_UNREACHABLE = "router.forceUnreachable";
    938942
    939943    /** @deprecated unused */
     944    @Deprecated
    940945    public static final char CAPABILITY_NEW_TUNNEL = 'T';
    941946   
    942947    /**
  • router/java/src/net/i2p/router/RouterClock.java

    ============================================================
    public class RouterClock extends Clock { 
    330330     *  @since 0.7.12
    331331     *  @deprecated for debugging only
    332332     */
     333    @Deprecated
    333334    public long getDeltaOffset() {
    334335        return _desiredOffset - _offset;
    335336    }
  • router/java/src/net/i2p/router/RouterContext.java

    ============================================================
    public class RouterContext extends I2PAp 
    136136     * @since 0.8.4
    137137     * @deprecated Use Router.saveConfig()
    138138     */
     139    @Deprecated
    139140    public void setProperty(String propName, String value) {
    140141                _overrideProps.setProperty(propName, value);
    141142    }
  • router/java/src/net/i2p/router/RouterDoSThrottle.java

    ============================================================
    import net.i2p.data.Hash; 
    1010 *
    1111 * @deprecated unused
    1212 */
     13@Deprecated
    1314class RouterDoSThrottle extends RouterThrottleImpl {
    1415    public RouterDoSThrottle(RouterContext context) {
    1516        super(context);
  • router/java/src/net/i2p/router/RouterThrottleImpl.java

    ============================================================
    public class RouterThrottleImpl implemen 
    102102    }
    103103   
    104104    /** @deprecated unused, function moved to netdb */
     105    @Deprecated
    105106    public boolean acceptNetDbLookupRequest(Hash key) {
    106107        long lag = _context.jobQueue().getMaxLag();
    107108        if (lag > JOB_LAG_LIMIT_NETDB) {
  • router/java/src/net/i2p/router/TunnelManagerFacade.java

    ============================================================
    public interface TunnelManagerFacade ext 
    2929     * @param id the tunnelId as seen at the gateway
    3030     * @deprecated unused
    3131     */
     32    @Deprecated
    3233    TunnelInfo getTunnelInfo(TunnelId id);
    3334
    3435    /**
  • router/java/src/net/i2p/router/client/ClientManager.java

    ============================================================
    class ClientManager { 
    565565    }
    566566   
    567567    /** @deprecated unused */
     568    @Deprecated
    568569    public void renderStatusHTML(Writer out) throws IOException {
    569570/******
    570571        StringBuilder buf = new StringBuilder(8*1024);
  • router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java

    ============================================================
    public class ClientManagerFacadeImpl ext 
    235235   
    236236    /** @deprecated unused */
    237237    @Override
     238    @Deprecated
    238239    public void renderStatusHTML(Writer out) throws IOException {
    239240        if (_manager != null)
    240241            _manager.renderStatusHTML(out);
  • router/java/src/net/i2p/router/crypto/TransientSessionKeyManager.java

    ============================================================
    public class TransientSessionKeyManager  
    450450     * @deprecated unused and rather drastic
    451451     */
    452452    @Override
     453    @Deprecated
    453454    public void failTags(PublicKey target) {
    454455        removeSession(target);
    455456    }
  • router/java/src/net/i2p/router/dummy/DummyTunnelManagerFacade.java

    ============================================================
    public class DummyTunnelManagerFacade im 
    3030public class DummyTunnelManagerFacade implements TunnelManagerFacade {
    3131   
    3232    /** @deprecated unused */
     33    @Deprecated
    3334    public TunnelInfo getTunnelInfo(TunnelId id) { return null; }
    3435    public TunnelInfo selectInboundTunnel() { return null; }
    3536    public TunnelInfo selectInboundTunnel(Hash destination) { return null; }
  • router/java/src/net/i2p/router/networkdb/kademlia/ExploreKeySelectorJob.java

    ============================================================
    import net.i2p.util.Log; 
    2626 *
    2727 * @deprecated unused, see comments in KNDF
    2828 */
     29@Deprecated
    2930class ExploreKeySelectorJob extends JobImpl {
    3031    private Log _log;
    3132    private KademliaNetworkDatabaseFacade _facade;
  • router/java/src/net/i2p/router/peermanager/PeerManagerFacadeImpl.java

    ============================================================
    public class PeerManagerFacadeImpl imple 
    7878    }
    7979
    8080    /** @deprecated unused */
     81    @Deprecated
    8182    public Hash selectRandomByCapability(char capability) {
    8283        //if (_manager == null) return null;
    8384        //return _manager.selectRandomByCapability(capability);
    public class PeerManagerFacadeImpl imple 
    9495    }
    9596
    9697    /** @deprecated moved to routerconsole */
     98    @Deprecated
    9799    public void renderStatusHTML(Writer out) throws IOException {
    98100    }
    99101   
  • router/java/src/net/i2p/router/peermanager/ProfileManagerImpl.java

    ============================================================
    public class ProfileManagerImpl implemen 
    357357     *  provide a simple summary of a number of peers, suitable for publication in the netDb
    358358     *  @deprecated unused
    359359     */
     360    @Deprecated
    360361    public Properties summarizePeers(int numPeers) {
    361362/****
    362363        Set peers = new HashSet(numPeers);
  • router/java/src/net/i2p/router/peermanager/ProfileOrganizer.java

    ============================================================
    public class ProfileOrganizer { 
    240240    public int countFastPeers() { return count(_fastPeers); }
    241241    public int countHighCapacityPeers() { return count(_highCapacityPeers); }
    242242    /** @deprecated use ProfileManager.getPeersByCapability('f').size() */
     243    @Deprecated
    243244    public int countWellIntegratedPeers() { return count(_wellIntegratedPeers); }
    244245    public int countNotFailingPeers() { return count(_notFailingPeers); }
    245246    public int countFailingPeers() { return count(_failingPeers); }
    public class ProfileOrganizer { 
    492493     *
    493494     * @deprecated unused
    494495     */
     496    @Deprecated
    495497    public void selectWellIntegratedPeers(int howMany, Set<Hash> exclude, Set<Hash> matches) {
    496498        selectWellIntegratedPeers(howMany, exclude, matches, 0);
    497499    }
    public class ProfileOrganizer { 
    503505     *             not be in the same tunnel. 0 = disable check; 1 = /8; 2 = /16; 3 = /24; 4 = exact IP match
    504506     * @deprecated unused
    505507     */
     508    @Deprecated
    506509    public void selectWellIntegratedPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, int mask) {
    507510        getReadLock();
    508511        try {
  • router/java/src/net/i2p/router/transport/FIFOBandwidthLimiter.java

    ============================================================
    public class FIFOBandwidthLimiter { 
    114114    //public void setMaxOutboundBytes(int numBytes) { _maxOutboundBytes = numBytes; }
    115115
    116116    /** @deprecated unused for now, we are always limited */
     117    @Deprecated
    117118    void setInboundUnlimited(boolean isUnlimited) { _inboundUnlimited = isUnlimited; }
    118119
    119120    /** @deprecated unused for now, we are always limited */
     121    @Deprecated
    120122    void setOutboundUnlimited(boolean isUnlimited) { _outboundUnlimited = isUnlimited; }
    121123
    122124    /** @return smoothed one second rate */
    public class FIFOBandwidthLimiter { 
    735737    }
    736738
    737739    /** @deprecated not worth translating */
     740    @Deprecated
    738741    public void renderStatusHTML(Writer out) throws IOException {
    739742/*******
    740743        long now = now();
  • router/java/src/net/i2p/router/transport/GetBidsJob.java

    ============================================================
    class GetBidsJob extends JobImpl { 
    2929    /**
    3030     *  @deprecated unused, see static getBids()
    3131     */
     32    @Deprecated
    3233    public GetBidsJob(RouterContext ctx, TransportManager tmgr, OutNetMessage msg) {
    3334        super(ctx);
    3435        _log = ctx.logManager().getLog(GetBidsJob.class);
  • router/java/src/net/i2p/router/transport/OutboundMessageRegistry.java

    ============================================================
    public class OutboundMessageRegistry { 
    255255    }
    256256
    257257    /** @deprecated unused */
     258    @Deprecated
    258259    public void renderStatusHTML(Writer out) throws IOException {}
    259260   
    260261    private class CleanupTask extends SimpleTimer2.TimedEvent {
  • router/java/src/net/i2p/router/transport/Transport.java

    ============================================================
    public interface Transport { 
    159159    /**
    160160     * @deprecated unused
    161161     */
     162    @Deprecated
    162163    public void recheckReachability();
    163164
    164165    public boolean isBacklogged(Hash peer);
  • router/java/src/net/i2p/router/transport/udp/UDPPacket.java

    ============================================================
    class UDPPacket implements CDQEntry { 
    328328     *  @since 0.9.21
    329329     *  @deprecated unused
    330330     */
     331    @Deprecated
    331332    public synchronized void requestInboundBandwidth() {
    332333        verifyNotReleased();
    333334        _bandwidthRequest = _context.bandwidthLimiter().requestInbound(_packet.getLength(), "UDP receiver");
  • router/java/src/net/i2p/router/transport/udp/UDPPacketReader.java

    ============================================================
    class UDPPacketReader { 
    849849        }
    850850       
    851851        /** @deprecated unused */
     852        @Deprecated
    852853        public int readAliceIPSize() {
    853854            int offset = readBodyOffset();
    854855            offset += _message[offset] & 0xff;
    class UDPPacketReader { 
    856857            return _message[offset] & 0xff;
    857858        }
    858859        /** @deprecated unused */
     860        @Deprecated
    859861        public void readAliceIP(byte target[], int targetOffset) {
    860862            int offset = readBodyOffset();
    861863            offset += _message[offset] & 0xff;
    class UDPPacketReader { 
    865867            System.arraycopy(_message, offset, target, targetOffset, sz);
    866868        }
    867869        /** @deprecated unused */
     870        @Deprecated
    868871        public int readAlicePort() {
    869872            int offset = readBodyOffset();
    870873            offset += _message[offset] & 0xff;
  • router/java/src/net/i2p/router/transport/udp/UDPSender.java

    ============================================================
    class UDPSender { 
    124124     * @param blockTime how long to block IGNORED
    125125     * @deprecated use add(packet)
    126126     */
     127    @Deprecated
    127128    public void add(UDPPacket packet, int blockTime) {
    128129     /********
    129130        //long expiration = _context.clock().now() + blockTime;
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    ============================================================
    public class UDPTransport extends Transp 
    127127    /** now unused, we pick a random port
    128128     *  @deprecated unused
    129129     */
     130    @Deprecated
    130131    public static final int DEFAULT_INTERNAL_PORT = 8887;
    131132
    132133    /** define this to explicitly set an external IP address */
    public class UDPTransport extends Transp 
    31023103     * @deprecated unused
    31033104     */
    31043105    @Override
     3106    @Deprecated
    31053107    public void recheckReachability() {
    31063108        // FIXME locking if we do this again
    31073109        //_testEvent.runTest();
  • router/java/src/net/i2p/router/tunnel/HashSetIVValidator.java

    ============================================================
    import net.i2p.util.ConcurrentHashSet; 
    1111 *
    1212 * @deprecated unused
    1313 */
     14@Deprecated
    1415class HashSetIVValidator implements IVValidator {
    1516    private final Set<ByteArray> _received;
    1617   
  • router/java/src/net/i2p/router/tunnel/HopProcessor.java

    ============================================================
    class HopProcessor { 
    3434    /**
    3535     *  @deprecated used only by unit tests
    3636     */
     37    @Deprecated
    3738    HopProcessor(I2PAppContext ctx, HopConfig config) {
    3839        this(ctx, config, createValidator());
    3940    }
    class HopProcessor { 
    4849    /**
    4950     *  @deprecated used only by unit test constructor
    5051     */
     52    @Deprecated
    5153    private static IVValidator createValidator() {
    5254        // yeah, we'll use an O(1) validator later (e.g. bloom filter)
    5355        return new HashSetIVValidator();
  • router/java/src/net/i2p/router/tunnel/InboundEndpointProcessor.java

    ============================================================
    class InboundEndpointProcessor { 
    2424    /**
    2525     *  @deprecated used only by unit tests
    2626     */
     27    @Deprecated
    2728    InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg) {
    2829        this(ctx, cfg, DummyValidator.getInstance());
    2930    }
  • router/java/src/net/i2p/router/tunnel/TrivialPreprocessor.java

    ============================================================
    class TrivialPreprocessor implements Tun 
    150150     *  are there follow up headers?
    151151     *  @deprecated unimplemented
    152152     */
     153    @Deprecated
    153154    private static final byte MASK_EXTENDED = FragmentHandler.MASK_EXTENDED;
    154155    private static final byte MASK_TUNNEL = (byte)(FragmentHandler.TYPE_TUNNEL << 5);
    155156    private static final byte MASK_ROUTER = (byte)(FragmentHandler.TYPE_ROUTER << 5);
  • router/java/src/net/i2p/router/tunnel/TrivialRouterPreprocessor.java

    ============================================================
    import net.i2p.router.RouterContext; 
    99 *
    1010 * @deprecated unused
    1111 */
     12@Deprecated
    1213class TrivialRouterPreprocessor extends TrivialPreprocessor {
    1314   
    1415    public TrivialRouterPreprocessor(RouterContext ctx) {
  • router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java

    ============================================================
    public class TunnelDispatcher implements 
    949949    }
    950950   
    951951    /** @deprecated moved to router console */
     952    @Deprecated
    952953    public void renderStatusHTML(Writer out) throws IOException {}   
    953954   
    954955    /**
  • router/java/src/net/i2p/router/tunnel/pool/PooledTunnelCreatorConfig.java

    ============================================================
    class PooledTunnelCreatorConfig extends  
    7575   
    7676
    7777    /** @deprecated unused, which makes _testJob unused - why is it here */
     78    @Deprecated
    7879    void setTestJob(TestJob job) { _testJob = job; }
    7980    /** does nothing, to be deprecated */
    8081    public void setExpireJob(Job job) { /* _expireJob = job; */ }
    class PooledTunnelCreatorConfig extends  
    8283    /**
    8384     * @deprecated Fix memory leaks caused by references if you need to use pairedTunnel
    8485     */
     86    @Deprecated
    8587    public void setPairedTunnel(TunnelInfo tunnel) { /* _pairedTunnel = tunnel; */}
    8688    // public TunnelInfo getPairedTunnel() { return _pairedTunnel; }
    8789}
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java

    ============================================================
    public class TunnelPoolManager implement 
    254254     *  Expensive (iterates through all tunnels of all pools) and unnecessary.
    255255     *  @deprecated unused
    256256     */
     257    @Deprecated
    257258    public TunnelInfo getTunnelInfo(TunnelId id) {
    258259        TunnelInfo info = null;
    259260        for (TunnelPool pool : _clientInboundPools.values()) {
    public class TunnelPoolManager implement 
    646647    public int getInboundBuildQueueSize() { return _handler.getInboundBuildQueueSize(); }
    647648   
    648649    /** @deprecated moved to routerconsole */
     650    @Deprecated
    649651    public void renderStatusHTML(Writer out) throws IOException {
    650652    }
    651653
  • router/java/src/net/i2p/router/util/PriBlockingQueue.java

    ============================================================
    public class PriBlockingQueue<E extends  
    4949     *  Returns false if full
    5050     *  @deprecated use offer(o)
    5151     */
     52    @Deprecated
    5253    @Override
    5354    public boolean add(E o) {
    5455        timestamp(o);
    public class PriBlockingQueue<E extends  
    7980     *  @param unit ignored
    8081     *  @deprecated use offer(o)
    8182     */
     83    @Deprecated
    8284    @Override
    8385    public boolean offer(E o, long timeout, TimeUnit unit) {
    8486        timestamp(o);
    public class PriBlockingQueue<E extends  
    9496     *  Non blocking. Does not add if full.
    9597     *  @deprecated use offer(o)
    9698     */
     99    @Deprecated
    97100    @Override
    98101    public void put(E o) {
    99102        timestamp(o);
  • router/java/src/org/cybergarage/upnp/Action.java

    ============================================================
    public class Action 
    227227         *  - {@link #setInArgumentValues(ArgumentList)} <br/>
    228228         *  - {@link #setOutArgumentValues(ArgumentList)}
    229229         */
     230        @Deprecated
    230231        public void setArgumentValues(ArgumentList argList)
    231232        {
    232233                getArgumentList().set(argList);
  • router/java/src/org/cybergarage/upnp/ArgumentList.java

    ============================================================
    public class ArgumentList extends Vector 
    6262        /**
    6363         * @deprecated
    6464         */
     65        @Deprecated
    6566        public void set(ArgumentList inArgList)
    6667        {
    6768                int nInArgs = inArgList.size();