public static enum RemoteRun.AgentToMaster.MessageType extends Enum<RemoteRun.AgentToMaster.MessageType> implements com.google.protobuf.ProtocolMessageEnum
AgentToMaster.MessageType| Enum Constant and Description |
|---|
AGENT_INFO
AGENT_INFO = 7; |
EXITED
EXITED = 4; |
RECEIVED_DATA
RECEIVED_DATA = 6; |
REQUESTED_DATA
REQUESTED_DATA = 5; |
STARTED
STARTED = 1; |
STDERR_FRAGMENT
STDERR_FRAGMENT = 3; |
STDOUT_FRAGMENT
STDOUT_FRAGMENT = 2; |
| Modifier and Type | Field and Description |
|---|---|
static int |
AGENT_INFO_VALUE
AGENT_INFO = 7; |
static int |
EXITED_VALUE
EXITED = 4; |
static int |
RECEIVED_DATA_VALUE
RECEIVED_DATA = 6; |
static int |
REQUESTED_DATA_VALUE
REQUESTED_DATA = 5; |
static int |
STARTED_VALUE
STARTED = 1; |
static int |
STDERR_FRAGMENT_VALUE
STDERR_FRAGMENT = 3; |
static int |
STDOUT_FRAGMENT_VALUE
STDOUT_FRAGMENT = 2; |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<RemoteRun.AgentToMaster.MessageType> |
internalGetValueMap() |
static RemoteRun.AgentToMaster.MessageType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RemoteRun.AgentToMaster.MessageType |
valueOf(int value) |
static RemoteRun.AgentToMaster.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemoteRun.AgentToMaster.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RemoteRun.AgentToMaster.MessageType STARTED
STARTED = 1;
(requestId) populated When the agent starts a process, it informs the master that the process has been started successfully.
public static final RemoteRun.AgentToMaster.MessageType STDOUT_FRAGMENT
STDOUT_FRAGMENT = 2;
(requestId, fragment) populated Some data has been output by the process on the stdout stream, relay it to the master.
public static final RemoteRun.AgentToMaster.MessageType STDERR_FRAGMENT
STDERR_FRAGMENT = 3;
(requestId, fragment) populated Some data has been output by the process on the stderr stream, relay it to the master.
public static final RemoteRun.AgentToMaster.MessageType EXITED
EXITED = 4;
(requestId, exitCode, exitReason [if failed]) populated A process has finished, this message notifies the master of the conditions under which it terminated. A non-zero exit code indicates failure, and the exitReason is supplied if there was an error whilst running the process or reading from its streams, etc.
public static final RemoteRun.AgentToMaster.MessageType REQUESTED_DATA
REQUESTED_DATA = 5;
(requestId, fragment, exitCode [if uploading and finished], exitReason [if failed]) populated Message #1: Master to Agent When the master wants a file from the agent, it sends a REQUEST_DATA stating which file or directory it wants. Message #2+: Agent to Master The agent responds with one or more REQUESTED_DATA messages including the requestId and fragment of data. When the file is either finished sending, or the agent encountered a problem that caused it to fail, the exitCode and exitReason are populated where applicable.
public static final RemoteRun.AgentToMaster.MessageType RECEIVED_DATA
RECEIVED_DATA = 6;
(requestId, exitCode [if receiving and finished], exitReason [if failed]) populated Message #1: Master to Agent When the master wants to send the agent a file, it sends a SEND_DATA_NOTIFICATION to the agent. This contains a location on the agent that the master would like to use to store the sent file, and a request ID to correlate related SEND_DATA_* type messages. SEND_DATA_NOTIFICATION has (requestId, path) populated. Message #2+: Master to Agent Subsequently, the master sends one or more SEND_DATA_FRAGMENT messages containing the actual data, and then when it finishes or errors, the final SEND_DATA_FRAGMENT will have dataSuccess set. If false, no error information is provided since the failure occurred on the master side, and the agent shouldn't know anything about it. SEND_DATA_FRAGMENT has (requestId, fragment [if any], dataSuccess [true if finished ok, false if failed]) populated Message #3: Agent to Master After receiving the final SEND_DATA_FRAGMENT, the agent responds to the master to tell if it has been successful writing the file to the requested location, or returning an error if anything has gone wrong. (requestId, exitCode [if receiving and finished], exitReason [if failed]) populated
public static final RemoteRun.AgentToMaster.MessageType AGENT_INFO
AGENT_INFO = 7;
(agentInfo) populated Message #1: Agent to Master AGENT_INFO sent on successful connection by an agent - includes data about the agent that the master can use to allow selection of different agents, deduction of paths, etc.
public static final int STARTED_VALUE
STARTED = 1;
(requestId) populated When the agent starts a process, it informs the master that the process has been started successfully.
public static final int STDOUT_FRAGMENT_VALUE
STDOUT_FRAGMENT = 2;
(requestId, fragment) populated Some data has been output by the process on the stdout stream, relay it to the master.
public static final int STDERR_FRAGMENT_VALUE
STDERR_FRAGMENT = 3;
(requestId, fragment) populated Some data has been output by the process on the stderr stream, relay it to the master.
public static final int EXITED_VALUE
EXITED = 4;
(requestId, exitCode, exitReason [if failed]) populated A process has finished, this message notifies the master of the conditions under which it terminated. A non-zero exit code indicates failure, and the exitReason is supplied if there was an error whilst running the process or reading from its streams, etc.
public static final int REQUESTED_DATA_VALUE
REQUESTED_DATA = 5;
(requestId, fragment, exitCode [if uploading and finished], exitReason [if failed]) populated Message #1: Master to Agent When the master wants a file from the agent, it sends a REQUEST_DATA stating which file or directory it wants. Message #2+: Agent to Master The agent responds with one or more REQUESTED_DATA messages including the requestId and fragment of data. When the file is either finished sending, or the agent encountered a problem that caused it to fail, the exitCode and exitReason are populated where applicable.
public static final int RECEIVED_DATA_VALUE
RECEIVED_DATA = 6;
(requestId, exitCode [if receiving and finished], exitReason [if failed]) populated Message #1: Master to Agent When the master wants to send the agent a file, it sends a SEND_DATA_NOTIFICATION to the agent. This contains a location on the agent that the master would like to use to store the sent file, and a request ID to correlate related SEND_DATA_* type messages. SEND_DATA_NOTIFICATION has (requestId, path) populated. Message #2+: Master to Agent Subsequently, the master sends one or more SEND_DATA_FRAGMENT messages containing the actual data, and then when it finishes or errors, the final SEND_DATA_FRAGMENT will have dataSuccess set. If false, no error information is provided since the failure occurred on the master side, and the agent shouldn't know anything about it. SEND_DATA_FRAGMENT has (requestId, fragment [if any], dataSuccess [true if finished ok, false if failed]) populated Message #3: Agent to Master After receiving the final SEND_DATA_FRAGMENT, the agent responds to the master to tell if it has been successful writing the file to the requested location, or returning an error if anything has gone wrong. (requestId, exitCode [if receiving and finished], exitReason [if failed]) populated
public static final int AGENT_INFO_VALUE
AGENT_INFO = 7;
(agentInfo) populated Message #1: Agent to Master AGENT_INFO sent on successful connection by an agent - includes data about the agent that the master can use to allow selection of different agents, deduction of paths, etc.
public static RemoteRun.AgentToMaster.MessageType[] values()
for (RemoteRun.AgentToMaster.MessageType c : RemoteRun.AgentToMaster.MessageType.values()) System.out.println(c);
public static RemoteRun.AgentToMaster.MessageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnumpublic static RemoteRun.AgentToMaster.MessageType valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RemoteRun.AgentToMaster.MessageType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RemoteRun.AgentToMaster.MessageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2015 Formicary. All rights reserved.