An abstract representation of a node in the cloud. Typically you would obtain an instance of a Node by calling driver.ListNodes () or by using driver.CreateNode ().
상속: Entity
예제 #1
0
        public override void Run(Node node, NodeAuth auth)
        {
            if (node == null)
                throw new ArgumentNullException ("node");
            if (auth == null)
                throw new ArgumentNullException ("auth");

            if (node.PublicIPs.Count < 1)
                throw new ArgumentException ("node", "No public IPs available on node.");

            string host = node.PublicIPs [0].ToString ();
            CopyScript (host, auth);

            SshExec exec = new SshExec (host, auth.UserName);
        }
예제 #2
0
 public abstract bool RebootNode(Node node);
예제 #3
0
 public abstract void Run(Node node, NodeAuth auth);
예제 #4
0
 public abstract bool DestroyNode(Node node);
예제 #5
0
 public override void Run(Node node, NodeAuth auth)
 {
     foreach (Deployment d in Steps) {
         d.Run (node, auth);
     }
 }
예제 #6
0
 /// <summary>
 /// Destroy the node, once a node is destroyed it is no longer usable and can not be recreated.
 /// </summary>
 public abstract void DestroyNode(Node node);
예제 #7
0
 /// <summary>
 /// Get updated information on the specified node from the cloud provider.
 /// You would use this method to check to see if a node has changed its state.
 /// </summary>
 public abstract void UpdateNode(Node node);
예제 #8
0
 /// <summary>
 /// Reboot the node.
 /// </summary>
 public abstract void RebootNode(Node node);