C# Class MCloud.NodeDriver

ファイルを表示 Open project: jacksonh/MCloud Class Usage Examples

Public Methods

Method Description
CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth ) : Node

Create a new node using the default options for this node driver type.

CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth, NodeOptions options ) : Node
DestroyNode ( Node node ) : void

Destroy the node, once a node is destroyed it is no longer usable and can not be recreated.

ListImages ( ) : List

A list of images available from the cloud provider

ListImages ( NodeLocation location ) : List

A list of images available from the cloud provider at a specific location.

ListLocations ( ) : List

A list of all the data center locations from this cloud provider

ListNodes ( ) : List

Get a list of nodes that exist on the cloud provider.

ListSizes ( ) : List

A list of sizes available from the cloud provider.

ListSizes ( NodeLocation location ) : List

A list of sizes available from the cloud provider, at a specific location.

NodeDriver ( string key, string secret ) : System
RebootNode ( Node node ) : void

Reboot the node.

UpdateNode ( Node node ) : void

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.

Method Details

CreateNode() public method

Create a new node using the default options for this node driver type.
public CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth ) : Node
name string
size NodeSize
image NodeImage
location NodeLocation
auth NodeAuth
return Node

CreateNode() public abstract method

public abstract CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth, NodeOptions options ) : Node
name string
size NodeSize
image NodeImage
location NodeLocation
auth NodeAuth
options NodeOptions
return Node

DestroyNode() public abstract method

Destroy the node, once a node is destroyed it is no longer usable and can not be recreated.
public abstract DestroyNode ( Node node ) : void
node Node
return void

ListImages() public abstract method

A list of images available from the cloud provider
public abstract ListImages ( ) : List
return List

ListImages() public abstract method

A list of images available from the cloud provider at a specific location.
public abstract ListImages ( NodeLocation location ) : List
location NodeLocation
return List

ListLocations() public abstract method

A list of all the data center locations from this cloud provider
public abstract ListLocations ( ) : List
return List

ListNodes() public abstract method

Get a list of nodes that exist on the cloud provider.
public abstract ListNodes ( ) : List
return List

ListSizes() public abstract method

A list of sizes available from the cloud provider.
public abstract ListSizes ( ) : List
return List

ListSizes() public abstract method

A list of sizes available from the cloud provider, at a specific location.
public abstract ListSizes ( NodeLocation location ) : List
location NodeLocation
return List

NodeDriver() public method

public NodeDriver ( string key, string secret ) : System
key string
secret string
return System

RebootNode() public abstract method

Reboot the node.
public abstract RebootNode ( Node node ) : void
node Node
return void

UpdateNode() public abstract method

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.
public abstract UpdateNode ( Node node ) : void
node Node
return void