Package archipelagentiphonenotification :: Module appnotificator :: Class AppNotificator
[hide private]
[frames] | no frames]

Class AppNotificator

source code

archipelcore.archipelPlugin.TNArchipelPlugin --+
                                               |
                                              AppNotificator

Instance Methods [hide private]
 
__init__(self, configuration, entity, entry_point_group)
Initialize the plugin.
source code
 
send(self, title, message, subtitle=None)
Send the notification.
source code
 
vm_create(self, origin, user_info, parameters)
Handle hook HOOK_VM_CREATE.
source code
 
vm_shutoff(self, origin, user_info, parameters)
Handle hook HOOK_VM_SHUTOFF.
source code
 
vm_stop(self, origin, user_info, parameters)
Handle hook HOOK_VM_STOP.
source code
 
vm_destroy(self, origin, user_info, parameters)
Handle hook HOOK_VM_DESTROY.
source code
 
vm_suspend(self, origin, user_info, parameters)
Handle hook HOOK_VM_SUSPEND.
source code
 
vm_resume(self, origin, user_info, parameters)
Handle hook HOOK_VM_RESUME.
source code
 
vm_undefine(self, origin, user_info, parameters)
Handle hook HOOK_VM_UNDEFINE.
source code
 
vm_define(self, origin, user_info, parameters)
Handle hook HOOK_VM_DEFINE.
source code
 
hypervisor_alloc(self, origin, user_info, parameters)
Handle hook HOOK_HYPERVISOR_ALLOC.
source code
 
hypervisor_free(self, origin, user_info, parameters)
Handle hook HOOK_HYPERVISOR_FREE.
source code
 
hypervisor_clone(self, origin, user_info, parameters)
Handle hook HOOK_HYPERVISOR_CLONE.
source code
 
hypervisor_migrate_leave(self, origin, user_info, parameters)
Handle hook HOOK_HYPERVISOR_MIGRATEDVM_LEAVE.
source code
 
hypervisor_migrate_arrive(self, origin, user_info, parameters)
Handle hook HOOK_HYPERVISOR_MIGRATEDVM_ARRIVE.
source code

Inherited from archipelcore.archipelPlugin.TNArchipelPlugin: register_handlers, unregister_handlers

Static Methods [hide private]
dict
plugin_info()
Return informations about the plugin.
source code
Method Details [hide private]

__init__(self, configuration, entity, entry_point_group)
(Constructor)

source code 

Initialize the plugin.

Parameters:
  • configuration (Configuration object) - the configuration
  • entity (TNArchipelEntity) - the entity that owns the plugin
  • entry_point_group (string) - the group name of plugin entry_point
Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.__init__

plugin_info()
Static Method

source code 

Return informations about the plugin.

Returns: dict
dictionary contaning plugin informations
Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.plugin_info

send(self, title, message, subtitle=None)

source code 

Send the notification.

Parameters:
  • title (string) - the title of the notification
  • message (string) - the content of the message

vm_create(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_CREATE.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

vm_shutoff(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_SHUTOFF.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

vm_stop(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_STOP.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

vm_destroy(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_DESTROY.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

vm_suspend(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_SUSPEND.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

vm_resume(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_RESUME.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

vm_undefine(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_UNDEFINE.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

vm_define(self, origin, user_info, parameters)

source code 

Handle hook HOOK_VM_DEFINE.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

hypervisor_alloc(self, origin, user_info, parameters)

source code 

Handle hook HOOK_HYPERVISOR_ALLOC.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

hypervisor_free(self, origin, user_info, parameters)

source code 

Handle hook HOOK_HYPERVISOR_FREE.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

hypervisor_clone(self, origin, user_info, parameters)

source code 

Handle hook HOOK_HYPERVISOR_CLONE.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

hypervisor_migrate_leave(self, origin, user_info, parameters)

source code 

Handle hook HOOK_HYPERVISOR_MIGRATEDVM_LEAVE.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument

hypervisor_migrate_arrive(self, origin, user_info, parameters)

source code 

Handle hook HOOK_HYPERVISOR_MIGRATEDVM_ARRIVE.

Parameters:
  • origin (TNArchipelEntity) - the origin of the hook
  • user_info (object) - random user info
  • parameters (object) - runtim argument