Ejemplo n.º 1
0
 public AgentMessage(ESwarmVersionValue NewVersion,EMessageType NewType)
 {
     To      = Constants.INVALID;
     From    = Constants.INVALID;
     Version = NewVersion;
     Type    = NewType;
 }
Ejemplo n.º 2
0
        public Int32 GetMessage(Int32 ConnectionHandle, Hashtable InParameters, ref Hashtable OutParameters)
        {
            // Initialize the output parameters
            OutParameters = null;

            // Validate the input parameters
            if (InParameters.ContainsKey("Version"))
            {
                ESwarmVersionValue InParametersVersion = ( ESwarmVersionValue )InParameters["Version"];
                switch (InParametersVersion)
                {
                case ESwarmVersionValue.VER_1_0:
                    if (InParameters.ContainsKey("Timeout"))
                    {
                        return(GetMessage_1_0(ConnectionHandle, InParameters, ref OutParameters));
                    }
                    break;
                }
            }

            return(Constants.ERROR_INVALID_ARG);
        }
Ejemplo n.º 3
0
        public Int32 BeginJobSpecification(Int32 ConnectionHandle, Hashtable InParameters, ref Hashtable OutParameters)
        {
            // Initialize the output parameters
            OutParameters = null;

            // Validate the input parameters
            if (InParameters.ContainsKey("Version"))
            {
                ESwarmVersionValue InParametersVersion = ( ESwarmVersionValue )InParameters["Version"];
                switch (InParametersVersion)
                {
                case ESwarmVersionValue.VER_1_0:
                    if (InParameters.ContainsKey("Specification32") &&
                        InParameters.ContainsKey("Specification64"))
                    {
                        return(BeginJobSpecification_1_0(ConnectionHandle, InParameters, ref OutParameters));
                    }
                    break;
                }
            }

            return(Constants.ERROR_INVALID_ARG);
        }
Ejemplo n.º 4
0
        public Int32 OpenConnection(Hashtable InParameters, ref Hashtable OutParameters)
        {
            // Initialize the output parameters
            OutParameters = null;

            // Validate the input parameters
            if ((InParameters != null) &&
                (InParameters.ContainsKey("Version")))
            {
                ESwarmVersionValue InParametersVersion = ( ESwarmVersionValue )InParameters["Version"];
                switch (InParametersVersion)
                {
                case ESwarmVersionValue.VER_1_0:
                    if (InParameters.ContainsKey("ProcessID") &&
                        InParameters.ContainsKey("LoggingFlags"))
                    {
                        return(OpenConnection_1_0(InParameters, ref OutParameters));
                    }
                    break;
                }
            }

            return(Constants.ERROR_INVALID_ARG);
        }
Ejemplo n.º 5
0
 /**
  * Constructor, initializes to specified values
  *
  * @param NewVersion The version of the message format; one of ESwarmVersionValue
  * @param NewType The type of the message, one of EMessageType
  */
 public FMessage(ESwarmVersionValue NewVersion, EMessageType NewType)
 {
     Version = NewVersion;
     Type    = NewType;
 }