private void setUpFileDistributionHandlers() {
        getSupervisor().addMethod(new Method("ping", "", "i", this::ping)
                                  .methodDesc("ping")
                                  .returnDesc(0, "ret code", "return code, 0 is OK"));
        getSupervisor().addMethod(new Method("printStatistics", "", "s", this::printStatistics)
                                  .methodDesc("printStatistics")
                                  .returnDesc(0, "statistics", "Statistics for server"));
        getSupervisor().addMethod(new Method("filedistribution.serveFile", "si*", "is", this::serveFile)
                                  .requireCapabilities(Capability.CONFIGSERVER__FILEDISTRIBUTION_API));
        getSupervisor().addMethod(new Method("filedistribution.setFileReferencesToDownload", "S", "i", this::setFileReferencesToDownload)
                                  .requireCapabilities(Capability.CONFIGSERVER__FILEDISTRIBUTION_API)
                                  .methodDesc("set which file references to download")
                                  .paramDesc(0, "file references", "file reference to download")
                                  .returnDesc(0, "ret", "0 if success, 1 otherwise"));
        getSupervisor().addMethod(new Method("filedistribution.triggerDownload", "Ss", "i", this::triggerDownload)
                                          .requireCapabilities(Capability.CONFIGSERVER__FILEDISTRIBUTION_API)
                                          .methodDesc("trigger download of file references from supplied source")
                                          .paramDesc(0, "file references", "file reference to download")
                                          .paramDesc(1, "address", "address (jrt spec) for a source to download from")
                                          .returnDesc(0, "ret", "0 if success, 1 otherwise"));
    }
Set up RPC method handlers, except handlers for getting config (see #setUpGetConfigHandlers())
configserver/src/main/java/com/yahoo/vespa/config/server/rpc/RpcServer.java