Package Products :: Package ZenModel :: Module interfaces |
[hide private]
[frames] | no frames]

# Source Code for Module Products.ZenModel.interfaces

     1  ###########################################################################
     2  #
     3  # This program is part of Zenoss Core, an open source monitoring platform.
     4  # Copyright (C) 2007, Zenoss Inc.
     5  #
     6  # This program is free software; you can redistribute it and/or modify it
     7  # under the terms of the GNU General Public License version 2 as published by
     8  # the Free Software Foundation.
     9  #
    10  # For complete information please visit: http://www.zenoss.com/oss/
    11  #
    12  ###########################################################################
    13
    14  from zope.interface import Interface
    15
    16 -class IDeviceLoader(Interface):
    17      """
    18      Object with ability to add devices to the database.
    19      """
    20 -    def load_device():
    21          """
    22          Attempt to load a single device into the database.
    23          """
    24
    25 -    def load_devices():
    26          """
    27          Attempt to load multiple devices into the database.
    28          """
    29
    30 -class IIndexed(Interface):
    31      """
    32      Object with ability to keep itself indexed in one or more catalogs.
    33      """
    34 -    def index_object():
    35          pass
    36 -    def unindex_object():
    37          pass
    38