Ejemplo n.º 1
0
        private List <Node> DescribeNodes()
        {
            ApDescribeNodesRequest  request  = new ApDescribeNodesRequest(Credentials);
            ApDescribeNodesResponse response = EndPoints.ApDashboardService.DescribeNodes(request);

            return(response.Nodes);
        }
Ejemplo n.º 2
0
        public ApDescribeNodesResponse DescribeNodes(ApDescribeNodesRequest request)
        {
            Log.Debug(this, "DescribeNodes()");

            try
            {
                Authenticate(request);

                // Update nodes
                UpdateNodes();
                // Update application instances in nodes
                UpdateApplications(Database.GetInstance().Nodes);

                ApDescribeNodesResponse response = new ApDescribeNodesResponse();
                response.Nodes = Database.GetInstance().Nodes;
                return(response);
            }
            catch (Exception e)
            {
                Log.Error(this, e);
                throw e;
            }
        }