archipelagentvirtualmachinesnapshoting :: snapshoting :: TNSnapshoting :: Class TNSnapshoting
[hide private]
[frames] | no frames]

Class TNSnapshoting

source code

archipelcore.archipelPlugin.TNArchipelPlugin --+
                                               |
                                              TNSnapshoting

Instance Methods [hide private]
 
__init__(self, configuration, entity, entry_point_group)
Initialize the plugin.
source code
 
register_handlers(self)
This method will be called by the plugin user when it will be necessary to register module for listening to stanza.
source code
 
unregister_handlers(self)
Unregister the handlers.
source code
 
process_iq(self, conn, iq)
This method is invoked when a ARCHIPEL_NS_SNAPSHOTING IQ is received.
source code
xmpp.Protocol.Iq
iq_take(self, iq)
Creating a snapshot.
source code
xmpp.Protocol.Iq
iq_get(self, iq)
List all snapshots.
source code
xmpp.Protocol.Iq
iq_getcurrent(self, iq)
Return current snapshot.
source code
xmpp.Protocol.Iq
iq_delete(self, iq)
Delete snapshot.
source code
xmpp.Protocol.Iq
iq_revert(self, iq)
Restore from a snapshot.
source code
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__

register_handlers(self)

source code 

This method will be called by the plugin user when it will be necessary to register module for listening to stanza.

Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.register_handlers

unregister_handlers(self)

source code 

Unregister the handlers.

Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.unregister_handlers

plugin_info()
Static Method

source code 

Return informations about the plugin.

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

process_iq(self, conn, iq)

source code 

This method is invoked when a ARCHIPEL_NS_SNAPSHOTING IQ is received. It understands IQ of type:

  • take
  • delete
  • get
  • current
  • revert
Parameters:
  • conn (xmpp.Dispatcher) - ths instance of the current connection that send the stanza
  • iq (xmpp.Protocol.Iq) - the received IQ

iq_take(self, iq)

source code 

Creating a snapshot.

Parameters:
  • iq (xmpp.Protocol.Iq) - the received IQ
Returns: xmpp.Protocol.Iq
a ready to send IQ containing the result of the action

iq_get(self, iq)

source code 

List all snapshots.

Parameters:
  • iq (xmpp.Protocol.Iq) - the received IQ
Returns: xmpp.Protocol.Iq
a ready to send IQ containing the result of the action

iq_getcurrent(self, iq)

source code 

Return current snapshot.

Parameters:
  • iq (xmpp.Protocol.Iq) - the received IQ
Returns: xmpp.Protocol.Iq
a ready to send IQ containing the result of the action

iq_delete(self, iq)

source code 

Delete snapshot.

Parameters:
  • iq (xmpp.Protocol.Iq) - the received IQ
Returns: xmpp.Protocol.Iq
a ready to send IQ containing the result of the action

iq_revert(self, iq)

source code 

Restore from a snapshot.

Parameters:
  • iq (xmpp.Protocol.Iq) - the received IQ
Returns: xmpp.Protocol.Iq
a ready to send IQ containing the result of the action