public void CommunicationThread(object serverid) { int i = (int)serverid; try{ using (var request2 = new ConfigurationMessageWriter(this.graph_name, this.input_vertex_path, this.input_edge_path, this.l_output_path, this.directed, this.weighted, this.e_job_id, this.e_log_path, this.algorithm, this.source_vertex, this.maxIteration, this.damping_factor, this.input_path, this.e_output_path, this.home_dir, this.num_machines, this.num_threads, this.t_job_id, this.t_log_path)) { Global.CloudStorage.LoadGraphToBenchmarkServer(i, request2); } } catch (Exception ex) { Console.WriteLine("Server" + i + " died!"); } }
public void Run() { using (var request = new ConfigurationMessageWriter(graph_name, input_vertex_path, input_edge_path, l_output_path, directed, weighted, e_job_id, e_log_path, algorithm, source_vertex, maxIteration, damping_factor, input_path, e_output_path, home_dir, num_machines, num_threads, t_job_id, t_log_path)) { Global.CloudStorage.RunToBenchmarkServer(0, request); } }
void examples() { using (var request = new ConfigurationMessageWriter("Ping!1")) { Global.CloudStorage.SynPingToBenchmarkServer(0, request); } using (var request = new PingMessageWriter("Ping!2")) { Global.CloudStorage.AsynPingToBenchmarkServer(0, request); } using (var request = new PingMessageWriter("Ping!3")) { using (var response = Global.CloudStorage.SynEchoPingToBenchmarkServer(0, request)) { Console.WriteLine("Server Response: {0}", response.Message); } } }
static void Main(string[] args) { // Trinity doesn't load the config file correctly if we don't tell it to. TrinityConfig.LoadConfig(); TrinityConfig.CurrentRunningMode = RunningMode.Client; Program program = new Program(); program.readCommandLineArguments(args); program.setConfiguration(); if (args.Length > 0) { if (args[0] == "run_all") { using (var request = new ConfigurationMessageWriter("Start/Loader")) { Global.CloudStorage.SynPingToBenchmarkServer(0, request); } } if (args[0] == "run") { program.Run(); } if (args[0] == "verify") { program.verifySetup(); } if (args[0] == "load") { program.LoadGraph(); } if (args[0] == "delete") { program.Delete(); } } else { Console.WriteLine("#######################################################################"); Console.WriteLine("Options: (to run with configuration add run [dotnet run run [OPTIONS]])"); Console.WriteLine("--graph-name"); Console.WriteLine("--input-vertex-path"); Console.WriteLine("--input-edge-path"); Console.WriteLine("--loutput-path"); Console.WriteLine("--directed"); Console.WriteLine("--weighted"); Console.WriteLine("--ejob-id"); Console.WriteLine("--elog-path"); Console.WriteLine("--algorithm"); Console.WriteLine("--source-vertex"); Console.WriteLine("--max-iterations"); Console.WriteLine("--damping-factor"); Console.WriteLine("--input-path"); Console.WriteLine("--eoutput-path"); Console.WriteLine("--home-dir"); Console.WriteLine("--num-machines"); Console.WriteLine("--num-threads"); Console.WriteLine("--tjob-id"); Console.WriteLine("--tlog-path"); } }