sapling/eden/fs/service/EdenMain.h
Chad Austin 987dd994b6 add a StructuredLogger instance to ServerState
Summary:
Allocate and hook up a StructuredLogger at startup if the EdenConfig
has the appropriate values set.

Reviewed By: simpkins

Differential Revision: D18071821

fbshipit-source-id: 3996b6644bbf0c16bb3b9950d57a79d4619a1656
2019-11-13 15:23:38 -08:00

32 lines
674 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#pragma once
#include <string>
namespace facebook {
namespace eden {
class EdenServer;
class EdenMain {
public:
virtual ~EdenMain() {}
int main(int argc, char** argv);
protected:
// Subclasses can override these methods to tweak Eden's start-up behavior
virtual std::string getEdenfsBuildName();
virtual std::string getEdenfsVersion();
virtual std::string getLocalHostname();
virtual void runServer(const EdenServer& server);
};
} // namespace eden
} // namespace facebook