C# Class MCloud.Node

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
Exibir arquivo Open project: jacksonh/MCloud Class Usage Examples

Public Methods

Method Description
Deploy ( Deployment d, NodeAuth auth ) : void

Run the supplied deployment on the node. This is a syncrhonous operation and will block until the node deployment is completed.

Destroy ( ) : void

Issue a destroy node command. This will request that the cloud provider terminates and destroys the node.

Reboot ( ) : void

Issue a reboot command.

ToString ( ) : string
Update ( ) : void

Gets updated information for the node. This function will update the node's State, Public and Private IP addresses and the node's name.

Private Methods

Method Description
IPsToString ( List list ) : string
Node ( string id, string name, NodeState state, List public_ips, List private_ips, NodeDriver driver ) : System

Method Details

Deploy() public method

Run the supplied deployment on the node. This is a syncrhonous operation and will block until the node deployment is completed.
public Deploy ( Deployment d, NodeAuth auth ) : void
d Deployment
auth NodeAuth
return void

Destroy() public method

Issue a destroy node command. This will request that the cloud provider terminates and destroys the node.
public Destroy ( ) : void
return void

Reboot() public method

Issue a reboot command.
public Reboot ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Update() public method

Gets updated information for the node. This function will update the node's State, Public and Private IP addresses and the node's name.
public Update ( ) : void
return void