Updating the Remote protocol to support control messages
This commit is contained in:
parent
9e951435d5
commit
fd6c879668
2 changed files with 1724 additions and 892 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -11,6 +11,11 @@ option optimize_for = SPEED;
|
|||
protoc RemoteProtocol.proto --java_out ../java
|
||||
*******************************************/
|
||||
|
||||
message AkkaRemoteProtocol {
|
||||
optional RemoteMessageProtocol message = 1;
|
||||
optional RemoteControlProtocol instruction = 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines a remote message.
|
||||
*/
|
||||
|
|
@ -26,6 +31,21 @@ message RemoteMessageProtocol {
|
|||
optional string cookie = 9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines some control messages for the remoting
|
||||
*/
|
||||
message RemoteControlProtocol {
|
||||
optional string cookie = 1;
|
||||
required CommandType commandType = 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the type of the RemoteControlProtocol command type
|
||||
*/
|
||||
enum CommandType {
|
||||
SHUTDOWN = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines a remote ActorRef that "remembers" and uses its original Actor instance
|
||||
* on the original node.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue