Package starcluster :: Module node :: Class Node
[hide private]
[frames] | no frames]

Class Node

source code


This class represents a single compute node in a StarCluster.

It contains all useful metadata for the node such as the internal/external hostnames, ips, etc as well as a paramiko ssh object for executing commands, creating/modifying files on the node.

Takes boto.ec2.instance.Instance, key_location, and alias as input and optionally a user to ssh as (defaults to root)

Instance Methods [hide private]
 
__init__(self, instance, key_location, alias, user='root')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
is_master(self) source code
 
stop(self) source code
 
is_ssh_up(self) source code
 
is_up(self) source code
 
update(self) source code
 
get_hosts_entry(self)
Returns /etc/hosts entry for this node
source code
 
__del__(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  ip_address
  public_dns_name
  private_ip_address
  private_dns_name
  private_dns_name_short
  id
  block_device_mapping
  dns_name
  state
  launch_time
  key_name
  arch
  instance_type
  image_id
  placement
  network_names
Returns all network names for this node in a dictionary
  spot_id
  ssh

Inherited from object: __class__

Method Details [hide private]

__init__(self, instance, key_location, alias, user='root')
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

ip_address

Get Method:
unreachable.ip_address(self)

public_dns_name

Get Method:
unreachable.public_dns_name(self)

private_ip_address

Get Method:
unreachable.private_ip_address(self)

private_dns_name

Get Method:
unreachable.private_dns_name(self)

private_dns_name_short

Get Method:
unreachable.private_dns_name_short(self)

id

Get Method:
unreachable.id(self)

block_device_mapping

Get Method:
unreachable.block_device_mapping(self)

dns_name

Get Method:
unreachable.dns_name(self)

state

Get Method:
unreachable.state(self)

launch_time

Get Method:
unreachable.launch_time(self)

key_name

Get Method:
unreachable.key_name(self)

arch

Get Method:
unreachable.arch(self)

instance_type

Get Method:
unreachable.instance_type(self)

image_id

Get Method:
unreachable.image_id(self)

placement

Get Method:
unreachable.placement(self)

network_names

Returns all network names for this node in a dictionary

Get Method:
unreachable.network_names(self) - Returns all network names for this node in a dictionary

spot_id

Get Method:
unreachable.spot_id(self)

ssh

Get Method:
unreachable.ssh(self)