Package flumotion :: Package common :: Module registry :: Class ComponentRegistry
[show private | hide private]
[frames | no frames]

Class ComponentRegistry

Loggable --+
           |
          ComponentRegistry


Registry, this is normally not instantiated.
Method Summary
  __init__(self)
  addFile(self, file)
  addFromString(self, string)
bool addRegistryPath(self, path, prefix)
Add a registry path to this registry, scanning it for registry snippets.
  clean(self)
Clean the cache of components.
  dump(self, fd)
Dump the cache of components to the given opened file descriptor.
  getBundles(self)
RegistryEntryComponent getComponent(self, name)
  getComponents(self)
  getDirectories(self)
RegistryEntryPlug getPlug(self, type)
  getPlugs(self)
  hasComponent(self, name)
  hasPlug(self, name)
  isEmpty(self)
flumotion.common.bundle.BundlerBasket makeBundlerBasket(self)
  rebuildNeeded(self)
  save(self, force)
  verify(self, force)
Verify if the registry is uptodate and rebuild if it is not.
    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.

Class Variable Summary
str filename = '/builddir/build/BUILD/flumotion-0.4.2/cache/...
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Loggable
Implements __implemented__ = <implementedBy flumotion.common.log.Lo...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

addFile(self, file)

Parameters:
file - The file to add, either as an open file object, or as the name of a file to open.
           (type=str or file.)

addRegistryPath(self, path, prefix='flumotion')

Add a registry path to this registry, scanning it for registry snippets.
Parameters:
path - a full path containing a 'flumotion' directory, which will be scanned for registry files.
Returns:
whether the path could be added
           (type=bool)

clean(self)

Clean the cache of components.

dump(self, fd)

Dump the cache of components to the given opened file descriptor.
Parameters:
fd - open file descriptor to write to
           (type=integer)

getComponent(self, name)

Returns:
RegistryEntryComponent

getPlug(self, type)

Returns:
RegistryEntryPlug

makeBundlerBasket(self)

Returns:
flumotion.common.bundle.BundlerBasket

verify(self, force=False)

Verify if the registry is uptodate and rebuild if it is not.
Parameters:
force - True if the registry needs rebuilding for sure.

Class Variable Details

filename

Type:
str
Value:
'/builddir/build/BUILD/flumotion-0.4.2/cache/registry/registry.xml'    

logCategory

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

Generated by Epydoc 2.1 on Sun Oct 26 16:39:16 2008 http://epydoc.sf.net