All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cs-core.5.10.7.source-code.replication.proto Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
syntax = "proto2";

option java_package = "org.yamcs.replication.protobuf";
option java_outer_classname = "ReplicationProto";
option java_multiple_files = true;


//sent from Slave to Master directly when the Master is the TCP server 
//or after a Wakeup when the Slave is the TCP server
message Request {
    enum Type {START_REPLAY = 1;};
    optional string authToken = 1;
    optional uint32 requestSeq = 2;//used to track back the response
    optional string yamcsInstance =3;
    optional Type type = 4;  //currently only START_REPLAY
    optional uint64 startTxId = 5; //start replay with this transaction 
}

//sent from Master to Slave when the Slave is the TCP server
//the Slave will send back a Request on the same socket
message Wakeup {
    optional string authToken = 1 ;
    optional string yamcsInstance = 2; 
}

//sent regularely from Master to Slave
// contains the mission time relation to the local time
// used also as a heartbeat to keep the TCP link alive and detect link failures
message TimeMessage {
    //local UNIX time in millisecs
	optional int64 localTime = 1;
	//Yamcs time in millisecs
	optional int64 missionTime = 2;
	//time speed (mission time vs wall clock time)
	optional double speed = 3;
}

message Response {
   optional uint32 requestSeq = 1;
   optional int32 result = 2;
   optional string errorMsg = 3;
}

message ColumnInfo {
    optional uint32 id = 1;
    optional string name = 2;  
    optional string type = 3;
    optional string protoClass = 4; //the name of the class implementing the proto object if the dataType=PROTOBUF
}

message StreamInfo {
    optional uint32 id = 1;   //stream id 
    optional string name = 2;  //stream name
    repeated ColumnInfo columns = 3;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy