Module nodetree_virtual [erl svg]

The module nodetree_virtual is the PubSub node tree plugin that allow virtual nodes handling.

Copyright © 2006-2012 ProcessOne

Version: 3.0.0-alpha-5, May 23 2012 07:15:12

Behaviours: gen_pubsub_nodetree.

Authors: Christophe Romain (christophe.romain@process-one.net) [web site: http://www.process-one.net/].

Description

The module nodetree_virtual is the PubSub node tree plugin that allow virtual nodes handling.

PubSub node tree plugins are using the gen_nodetree behaviour.

The development of this plugin is still a work in progress. Due to optimizations in mod_pubsub, this plugin can not work anymore without altering functioning. Please, send us comments, feedback and improvements.

Function Index

create_node/6No node record is stored on database.
delete_node/2Virtual node tree does not handle parent/child.
get_node/1
get_node/2
get_node/3Virtual node tree does not handle a node database.
get_nodes/1
get_nodes/2Virtual node tree does not handle a node database.
get_subnodes/2*
get_subnodes/3Virtual node tree does not handle parent/child.
get_subnodes_tree/2*
get_subnodes_tree/3Virtual node tree does not handle parent/child.
init/3Called during pubsub modules initialisation.
options/0Returns the default pubsub node tree options.
set_node/1No node record is stored on database.
terminate/2

Function Details

create_node/6

create_node(Host, Node, Type, Owner, Options, Parents) -> ok

No node record is stored on database. Any valid node is considered as already created.

default allowed nodes: /home/host/user/any/node/name

delete_node/2

delete_node(Host, Node) -> [mod_pubsub:node()]

Virtual node tree does not handle parent/child. node deletion just affects the corresponding node.

get_node/1

get_node(NodeId) -> any()

get_node/2

get_node(Host, Node) -> any()

get_node/3

get_node(Host, Node, From) -> pubsubNode()

Virtual node tree does not handle a node database. Any node is considered as existing. Node record contains default values.

get_nodes/1

get_nodes(Host) -> any()

get_nodes/2

get_nodes(Host, From) -> [pubsubNode()]

Virtual node tree does not handle a node database. Any node is considered as existing. Nodes list can not be determined.

get_subnodes/2 *

get_subnodes(Host, Node) -> any()

get_subnodes/3

get_subnodes(Host, Node, From) -> [pubsubNode()]

Virtual node tree does not handle parent/child. Child list is empty.

get_subnodes_tree/2 *

get_subnodes_tree(Host, Node) -> any()

get_subnodes_tree/3

get_subnodes_tree(Host, Node::Index, From) -> [pubsubNode()]

Virtual node tree does not handle parent/child. Child list is empty.

init/3

init(Host, ServerHost, Opts) -> any()

Called during pubsub modules initialisation. Any pubsub plugin must implement this function. It can return anything.

This function is mainly used to trigger the setup task necessary for the plugin. It can be used for example by the developer to create the specific module database schema if it does not exists yet.

options/0

options() -> [Option]

Returns the default pubsub node tree options.

set_node/1

set_node(NodeRecord) -> ok | {error, Reason}

No node record is stored on database. Just do nothing.

terminate/2

terminate(Host, ServerHost) -> any()


Generated by EDoc, May 23 2012, 07:15:12.