geni::util::api::GeniAPI Class Reference

List of all members.

Public Member Functions

def __init__
def getPLCShell
def getPLCShellVersion
def getCredential
def getCredentialFromRegistry
 Get our credential from a remote registry using a geniclient connection.
def getCredentialFromLocalRegistry
 Get our current credential directly from the local registry.
def loadCredential
 Attempt to load credential from file if it exists.
def geni_fields_to_pl_fields
 Convert geni fields to PLC fields for use when registering up updating registry record in the PLC database.
def fill_record_pl_info
 Fill in the planetlab specific fields of a Geni record.
def lookup_users
def fill_record_geni_info
def fill_record_info
 Given a geni record, fill in the PLC specific and Geni specific fields in the record.
def update_membership_list
def update_membership
def callable
 Return a new instance of the specified method.
def call
 Call the named method from the specified source with the specified arguments.
def handle
 Handle an XML-RPC or SOAP request from the specified source.

Public Attributes

 encoding
 config
 auth
 interface
 key_file
 cert_file
 credential
 plshell
 plshell_version
 basedir
 server_basedir
 hrn
 time_format
 plauth

Static Public Attributes

 methods = geni.methods.all


Member Function Documentation

def geni::util::api::GeniAPI::__init__ (   self,
  config = "/etc/geni/geni_config",
  encoding = "utf-8",
  peer_cert = None,
  interface = None,
  key_file = None,
  cert_file = None 
)

def geni::util::api::GeniAPI::getPLCShell (   self  ) 

def geni::util::api::GeniAPI::getPLCShellVersion (   self  ) 

def geni::util::api::GeniAPI::getCredential (   self  ) 

def geni::util::api::GeniAPI::getCredentialFromRegistry (   self  ) 

Get our credential from a remote registry using a geniclient connection.

def geni::util::api::GeniAPI::getCredentialFromLocalRegistry (   self  ) 

Get our current credential directly from the local registry.

def geni::util::api::GeniAPI::loadCredential (   self  ) 

Attempt to load credential from file if it exists.

If it doesnt get credential from registry.

def geni::util::api::GeniAPI::geni_fields_to_pl_fields (   self,
  type,
  hrn,
  record 
)

Convert geni fields to PLC fields for use when registering up updating registry record in the PLC database.

Parameters:
type type of record (user, slice, ...)
hrn human readable name
geni_fields dictionary of geni fields
pl_fields dictionary of PLC fields (output)

def geni::util::api::GeniAPI::fill_record_pl_info (   self,
  record 
)

Fill in the planetlab specific fields of a Geni record.

This involves calling the appropriate PLC method to retrieve the database record for the object.

PLC data is filled into the pl_info field of the record.

Parameters:
record,: record to fill in field (in/out param)

def geni::util::api::GeniAPI::lookup_users (   self,
  auth_table,
  user_id_list,
  role = "*" 
)

def geni::util::api::GeniAPI::fill_record_geni_info (   self,
  record 
)

def geni::util::api::GeniAPI::fill_record_info (   self,
  record 
)

Given a geni record, fill in the PLC specific and Geni specific fields in the record.

def geni::util::api::GeniAPI::update_membership_list (   self,
  oldRecord,
  record,
  listName,
  addFunc,
  delFunc 
)

def geni::util::api::GeniAPI::update_membership (   self,
  oldRecord,
  record 
)

def geni::util::api::GeniAPI::callable (   self,
  method 
)

Return a new instance of the specified method.

def geni::util::api::GeniAPI::call (   self,
  source,
  method,
  args 
)

Call the named method from the specified source with the specified arguments.

def geni::util::api::GeniAPI::handle (   self,
  source,
  data 
)

Handle an XML-RPC or SOAP request from the specified source.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Thu Jun 11 14:08:05 2009 for GeniWrapper by  doxygen 1.5.5