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 ().
Inheritance: Entity
Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public abstract bool RebootNode(Node node);
Exemplo n.º 3
0
 public abstract void Run(Node node, NodeAuth auth);
Exemplo n.º 4
0
 public abstract bool DestroyNode(Node node);
Exemplo n.º 5
0
 public override void Run(Node node, NodeAuth auth)
 {
     foreach (Deployment d in Steps) {
         d.Run (node, auth);
     }
 }
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 8
0
 /// <summary>
 /// Reboot the node.
 /// </summary>
 public abstract void RebootNode(Node node);