Exemple #1
0
  protected final void init(ProtocolStackConfigurator configurator) throws Exception {
    List<ProtocolConfiguration> configs = configurator.getProtocolStack();
    // replace vars with system props
    configs.forEach(ProtocolConfiguration::substituteVariables);

    prot_stack = new ProtocolStack(this);
    prot_stack.setup(configs); // Setup protocol stack (creates protocol, calls init() on them)
  }
Exemple #2
0
 protected void resetAllStats() {
   List<Protocol> prots = getProtocolStack().getProtocols();
   prots.forEach(Protocol::resetStatistics);
   resetStats();
 }