Skip to content

Commit

Permalink
WIP: Network Communicator class
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlevidon committed Jan 12, 2025
1 parent ef3e0ba commit b501927
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions hpc/LoadBalancer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,30 @@ class FilesystemCommunicatorFactory : public JobCommunicatorFactory {
};


class NetworkCommunicator : public JobCommunicator {
public:
NetworkCommunicator() {
// Open TCP port for listening
}

std::map<std::string, std::string> getInitMessage() override {
}
private:
std::string host;
int port;
};

class NetworkCommunicatorFactory : public JobCommunicatorFactory {
public:
NetworkCommunicatorFactory() = default;

std::unique_ptr<JobCommunicator> create() override {
return std::make_unique<NetworkCommunicator>();
}
private:
};


// A JobScriptLocator specifies where the job script for a particular model is located.
struct JobScriptLocator {
std::filesystem::path selectJobScript(const std::string& model_name) {
Expand Down

0 comments on commit b501927

Please sign in to comment.