Changeset f0f1a6f


Ignore:
Timestamp:
Oct 2, 2010 3:15:03 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b83184e
Parents:
333f806
Message:

initializer cleanups, reduce rates, javadoc

Location:
router/java/src/net/i2p/router/client
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/client/ClientListenerRunner.java

    r333f806 rf0f1a6f  
    4242        _manager = manager;
    4343        _port = port;
    44         _running = false;
    45         _listening = false;
    4644       
    4745        String val = context.getProperty(BIND_ALL_INTERFACES);
  • router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java

    r333f806 rf0f1a6f  
    4444    public ClientManagerFacadeImpl(RouterContext context) {
    4545        _context = context;
    46         _manager = null;
    4746        _log.debug("Client manager facade created");
    4847    }
  • router/java/src/net/i2p/router/client/LeaseRequestState.java

    r333f806 rf0f1a6f  
    3434        _expiration = expiration;
    3535        _requestedLeaseSet = requested;
    36         _successful = false;
    3736    }
    3837   
  • router/java/src/net/i2p/router/client/MessageReceivedJob.java

    r333f806 rf0f1a6f  
    4848    /**
    4949     * Deliver notification to the client that the given message is available.
    50      * This is synchronous and returns true if the notification was sent safely,
    51      * otherwise it returns false
    52      *
    5350     */
    5451    public void messageAvailable(MessageId id, long size) {
     
    6057        msg.setSessionId(_runner.getSessionId().getSessionId());
    6158        msg.setSize(size);
     59        // has to be >= 0, it is initialized to -1
    6260        msg.setNonce(1);
    6361        msg.setStatus(MessageStatusMessage.STATUS_AVAILABLE);
  • router/java/src/net/i2p/router/client/RequestLeaseSetJob.java

    r333f806 rf0f1a6f  
    4545        _onFail = onFail;
    4646        _requestState = state;
    47         ctx.statManager().createRateStat("client.requestLeaseSetSuccess", "How frequently the router requests successfully a new leaseSet?", "ClientMessages", new long[] { 10*60*1000, 60*60*1000, 24*60*60*1000 });
    48         ctx.statManager().createRateStat("client.requestLeaseSetTimeout", "How frequently the router requests a new leaseSet but gets no reply?", "ClientMessages", new long[] { 10*60*1000, 60*60*1000, 24*60*60*1000 });
    49         ctx.statManager().createRateStat("client.requestLeaseSetDropped", "How frequently the router requests a new leaseSet but the client drops?", "ClientMessages", new long[] { 10*60*1000, 60*60*1000, 24*60*60*1000 });
     47        ctx.statManager().createRateStat("client.requestLeaseSetSuccess", "How frequently the router requests successfully a new leaseSet?", "ClientMessages", new long[] { 60*60*1000 });
     48        ctx.statManager().createRateStat("client.requestLeaseSetTimeout", "How frequently the router requests a new leaseSet but gets no reply?", "ClientMessages", new long[] { 60*60*1000 });
     49        ctx.statManager().createRateStat("client.requestLeaseSetDropped", "How frequently the router requests a new leaseSet but the client drops?", "ClientMessages", new long[] { 60*60*1000 });
    5050    }
    5151   
Note: See TracChangeset for help on using the changeset viewer.