示例#1
0
        public string Offline(int nodeId)
        {
            //Create an instance of the NodeManagerService class
            NodeManagerService node = new NodeManagerService();

            //Returns the status of whether the node's status was set successfully to offline or not from the SetNodeOffline method in the NodeManagerService class
            return(node.SetNodeOffline(nodeId));
        }
示例#2
0
        public string MaxLimits([FromBody] Nodes node)
        {
            //Create an instance of the NodeManagerService class
            NodeManagerService newNode = new NodeManagerService();

            //Returns the status of whether the node's max limits were set successfully or not from the SetNodeMaxLimits method in the NodeManagerService class
            return(newNode.SetNodeMaxLimits(node));
        }
示例#3
0
        public string AddNode(Nodes node)
        {
            //Create an instance of the NodeManagerService class
            NodeManagerService newNode = new NodeManagerService();

            //Returns the status of whether the node was created successfully or not from the AddNode method in the NodeManagerService class
            return(newNode.AddNode(node));
        }
示例#4
0
        public string RemoveNode(int nodeId)
        {
            //Create an instance of the NodeManagerService class
            NodeManagerService node = new NodeManagerService();

            //Returns the status of whether the node was removed successfully or not from the RemoveNode method in the NodeManagerService class
            return(node.RemoveNode(nodeId));
        }
示例#5
0
        public List <NodesDAO> Nodes(int?nodeId)
        {
            //Create an instance of the NodeManagerService class
            NodeManagerService node = new NodeManagerService();

            //Returns the result(s) of the GetNodes method in the NodeManagerService class
            return(node.GetNodes(nodeId));
        }