Package flumotion :: Package admin :: Module admin :: Class AdminModel
[show private | hide private]
[frames | no frames]

Type AdminModel

                   object --+    
                            |    
                      GObject --+
                                |
         Loggable --+           |
                    |           |
Jellyable --+       |           |
            |       |           |
 Serializable --+   |           |
                |   |           |
    Referenceable --+           |
                    |           |
        Referenceable --+       |
                        |       |
               BaseMedium --+   |
                            |   |
                PingingMedium --+
                                |
                               AdminModel


I live in the admin client. I am a data model for any admin view implementing a UI to communicate with one manager. I send signals when things happen.

Manager calls on us through flumotion.manager.admin.AdminAvatar
Method Summary
  __init__(self, authenticator)
  adminInfoStr(self)
  checkElements(self, workerName, elements)
  checkImport(self, workerName, moduleName)
  cleanComponents(self)
twisted.internet.defer.Deferred componentCallRemote(self, componentState, methodName, *args, **kwargs)
Call the given method on the given component with the given args.
  connectionFailed(self, failure)
  connectionInfoStr(self)
  connectToHost(self, host, port, use_insecure, keep_trying)
Connect to a host.
  get_components(self)
  getComponents(self)
  getConfiguration(self)
  getEntry(self, *args, **kwargs)
  getProperty(self, componentState, element, property)
  getWorkerHeavenState(self)
  isConnected(self)
  loadConfiguration(self, xml_string)
  managerInfoStr(self)
  reconnect(self)
  reload(self)
  reload_async(self, *args, **kwargs)
  reloadAdmin(self)
twisted.internet.defer.Deferred reloadComponent(self, componentState)
Tell the manager to reload code for a component.
deferred reloadManager(self)
Tell the manager to reload its code.
  remote_log(self, category, type, message)
  setProperty(self, componentState, element, property, value)
  setRemoteReference(self, *args, **kwargs)
  shutdown(self)
  stateAppend(self, state, key, value)
  stateRemove(self, state, key, value)
  stateSet(self, state, key, value)
twisted.internet.defer.Deferred workerCallRemote(self, workerName, methodName, *args, **kwargs)
Call the the given method on the given worker with the given args.
twisted.internet.defer.Deferred firing an flumotion.common.messages.Result workerRun(self, workerName, moduleName, functionName, *args, **kwargs)
Run the given function and args on the given worker.
    Inherited from PingingMedium
  startPinging(self, disconnect)
  stopPinging(self)
    Inherited from BaseMedium
  callRemote(self, name, *args, **kwargs)
Call the given method with the given arguments remotely on the server-side avatar.
  callRemoteLogging(self, level, stackDepth, name, *args, **kwargs)
Call the given method with the given arguments remotely on the server-side avatar.
  hasRemoteReference(self)
Does the medium have a remote reference to a server-side avatar ?
  runBundledFunction(self, *args, **kwargs)
    Inherited from Referenceable
  remoteMessageReceived(self, broker, message, args, kwargs)
    Inherited from Referenceable
  jellyFor(self, jellier)
(internal)
    Inherited from Serializable
  processUniqueID(self)
Return an ID which uniquely represents this object for this process.
    Inherited from Jellyable
  getStateFor(self, jellier)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.
    Inherited from GObject
  __cmp__(x, y)
x.__cmp__(y) <==> cmp(x,y)
  __gobject_init__(...)
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __repr__(x)
x.__repr__() <==> repr(x)
  chain(...)
  connect(...)
  connect_after(...)
  connect_object(...)
  connect_object_after(...)
  disconnect(...)
  disconnect_by_func(...)
  emit(...)
  emit_stop_by_name(...)
  freeze_notify(...)
  get_data(...)
  get_property(...)
  handler_block(...)
  handler_block_by_func(...)
  handler_disconnect(...)
  handler_is_connected(...)
  handler_unblock(...)
  handler_unblock_by_func(...)
  notify(...)
  set_data(...)
  set_property(...)
  stop_emission(...)
  thaw_notify(...)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Variable Summary
    Inherited from BaseMedium
twisted.spread.pb.RemoteReference remote: a remote reference to the server-side object on which perspective_(methodName) methods can be called

Class Variable Summary
GType __gtype__ = <GType flumotion+admin+admin+AdminModel (217...
Implements __implemented__ = <implementedBy flumotion.admin.admin.A...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
str logCategory: Implementors can provide a category to log their messages under.
NoneType planet = None                                                                  
    Inherited from BaseMedium
flumotion.common.bundleclient.BundleLoader bundleLoader = None                                                                  
str remoteLogName: name to use to log the other side of the connection
    Inherited from Referenceable
NoneType perspective = None                                                                  
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
    Inherited from GObject
str __gdoc__ = 'Object GObject\n\nSignals from GObject:\n  n...
getset_descriptor __grefcount__ = <attribute '__grefcount__' of 'gobject.G...
GProps props = <gobject.GProps object at 0x41d6b430>

Method Details

componentCallRemote(self, componentState, methodName, *args, **kwargs)

Call the given method on the given component with the given args.
Parameters:
componentState - component to call the method on
           (type=flumotion.common.planet.AdminComponentState)
methodName - name of method to call; serialized to a remote_methodName on the worker's medium
Returns:
twisted.internet.defer.Deferred

connectToHost(self, host, port, use_insecure=False, keep_trying=False)

Connect to a host.

getProperty(self, componentState, element, property)

Parameters:
componentState
           (type=flumotion.common.planet.AdminComponentState)

reloadComponent(self, componentState)

Tell the manager to reload code for a component.
Parameters:
componentState
           (type=flumotion.common.planet.AdminComponentState)
Returns:
twisted.internet.defer.Deferred

reloadManager(self)

Tell the manager to reload its code.
Returns:
deferred

setProperty(self, componentState, element, property, value)

Parameters:
componentState
           (type=flumotion.common.planet.AdminComponentState)

workerCallRemote(self, workerName, methodName, *args, **kwargs)

Call the the given method on the given worker with the given args.
Parameters:
workerName - name of the worker to call the method on
methodName - name of method to call; serialized to a remote_methodName on the worker's medium
Returns:
twisted.internet.defer.Deferred

workerRun(self, workerName, moduleName, functionName, *args, **kwargs)

Run the given function and args on the given worker. If the worker does not already have the module, or it is out of date, it will be retrieved from the manager.
Returns:
twisted.internet.defer.Deferred firing an flumotion.common.messages.Result

Class Variable Details

__gtype__

Type:
GType
Value:
<GType flumotion+admin+admin+AdminModel (2178720)>                     

__implemented__

Type:
Implements
Value:
<implementedBy flumotion.admin.admin.AdminModel>                       

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x40f22350>       

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'adminmodel'                                                           

planet

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Mon Oct 1 03:52:10 2007 http://epydoc.sf.net