Skip to content

Commit

Permalink
Merge pull request logrhythm#89 from kjell-hedstrom/MaxPCapUsageComma…
Browse files Browse the repository at this point in the history
…nd_v2.0

Max p cap usage command v2.0
  • Loading branch information
Ben Aldrich committed Dec 12, 2013
2 parents bbf59a1 + 2551623 commit 90182d2
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions protofiles/CommandRequest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message CommandRequest {
DRIVEINFO = 6;
TEST = 7;
COMMAND_STATUS = 8;
CONFIG_REQUEST = 9;
}
required CommandType type = 1;
optional string stringArgOne = 2;
Expand Down
19 changes: 19 additions & 0 deletions protofiles/ConfigDefaults.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package protoMsg;
import "ConfTypeMsg.proto";

option java_package = "com.logrhythm.nm.message";
option java_outer_classname = "ConfigDefaultsMsg";

message ConfigDefaults {
message DefaultValues {
optional ConfType.Type type = 1;
optional string configName = 2;
optional string defaultU64 = 3;
optional string maxU64 = 4;
optional string minU64 = 5;

}

repeated DefaultValues values = 1;

}
14 changes: 14 additions & 0 deletions protofiles/ConfigDefaultsRequest.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package protoMsg;
import "ConfTypeMsg.proto";

option java_package = "com.logrhythm.nm.message";
option java_outer_classname = "ConfigDefaultsRequestMsg";

// See also ConfigDefaults.proto
// For the ConfType request config parameters
// The CommandReply will contain the ConfigDefaults.proto with
// parameter name, default value, max, min
message ConfigDefaultsRequest {
optional ConfType.Type type = 1;
repeated string requestedConfigParams = 2;
}
4 changes: 4 additions & 0 deletions scripts/buildProtoFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ cd "$cppSrcDir"
"$protoc" -I="$protoFileDir" --cpp_out=libprocess "$protoFileDir"/ProcessRequest.proto
"$protoc" -I="$protoFileDir" --cpp_out=libprocess "$protoFileDir"/ProcessReply.proto
"$protoc" -I="$protoFileDir" --cpp_out=libcommand "$protoFileDir"/DriveInfo.proto
"$protoc" -I="$protoFileDir" --cpp_out=libcommand "$protoFileDir"/ConfigDefaults.proto
"$protoc" -I="$protoFileDir" --cpp_out=libcommand "$protoFileDir"/ConfigDefaultsRequest.proto
mv liblrdpi/DpiMsgLRproto.pb.cc liblrdpi/DpiMsgLRproto.pb.cpp
mv liblrdpi/Applications.pb.cc liblrdpi/Applications.pb.cpp
mv libstats/StatsMsg.pb.cc libstats/StatsMsg.pb.cpp
Expand All @@ -83,6 +85,8 @@ mv libcommand/CommandReply.pb.cc libcommand/CommandReply.pb.cpp
mv libprocess/ProcessRequest.pb.cc libprocess/ProcessRequest.pb.cpp
mv libprocess/ProcessReply.pb.cc libprocess/ProcessReply.pb.cpp
mv libcommand/DriveInfo.pb.cc libcommand/DriveInfo.pb.cpp
mv libcommand/ConfigDefaults.pb.cc libcommand/ConfigDefaults.pb.cpp
mv libcommand/ConfigDefaultsRequest.pb.cc libcommand/ConfigDefaultsRequest.pb.cpp
cd "$startDir"

mkdir -p "$phpSrcDir"
Expand Down

0 comments on commit 90182d2

Please sign in to comment.