#
# NEPI, a framework to manage network experiments
# Copyright (C) 2013 INRIA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
# Author: Julien Tribino
# Lucia Guevgeozian
from nepi.execution.attribute import Attribute, Flags, Types
from nepi.execution.resource import ResourceManager, clsinit_copy, \
ResourceState, reschedule_delay
@clsinit_copy
class OMF6Resource(ResourceManager):
"""
Generic resource gathering XMPP credential information and common methods
for OMF nodes, channels, applications, etc.
"""
_rtype = "OMFResource"
@classmethod
def _register_attributes(cls):
xmppHost = Attribute("xmppHost", "Xmpp Server",
flags = Flags.Credential)
xmppUser = Attribute("xmppUser", "Xmpp User")
xmppPort = Attribute("xmppPort", "Xmpp Port",
flags = Flags.Credential)
xmppPassword = Attribute("xmppPassword", "Xmpp Password",
flags = Flags.Credential)
cls._register_attribute(xmppHost)
cls._register_attribute(xmppUser)
cls._register_attribute(xmppPort)
cls._register_attribute(xmppPassword)
def __init__(self, ec, guid):
super(OMF6Resource, self).__init__(ec, guid)
pass