Move meter.py into collector directory

With multiple publisher support, metering becomes only one type of
publisher, thus move the meter.py into collector.

The publish.py should be moved to publisher directory as only meter
publisher in future.

Change-Id: I3b4f5dac3cd46c77dc077ff6acbba79284640428
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
This commit is contained in:
Yunhong, Jiang 2012-12-04 11:46:36 +08:00
parent 81f149854f
commit 28caab87cf
27 changed files with 26 additions and 26 deletions

View File

@ -18,8 +18,8 @@
from stevedore import extension from stevedore import extension
from ceilometer.collector import meter
from ceilometer import extension_manager from ceilometer import extension_manager
from ceilometer import meter
from ceilometer import publish from ceilometer import publish
from ceilometer import service from ceilometer import service
from ceilometer import storage from ceilometer import storage

View File

@ -18,10 +18,10 @@
"""Publish a counter using the preferred RPC mechanism. """Publish a counter using the preferred RPC mechanism.
""" """
from ceilometer.collector import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.openstack.common import log from ceilometer.openstack.common import log
from ceilometer.openstack.common import rpc from ceilometer.openstack.common import rpc
from ceilometer import meter
LOG = log.getLogger(__name__) LOG = log.getLogger(__name__)

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests import api as tests_api from ceilometer.tests import api as tests_api

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from .base import FunctionalTest from .base import FunctionalTest

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from .base import FunctionalTest from .base import FunctionalTest

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from .base import FunctionalTest from .base import FunctionalTest

View File

@ -21,8 +21,8 @@
import datetime import datetime
import logging import logging
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.tests.db import require_map_reduce from ceilometer.tests.db import require_map_reduce

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from .base import FunctionalTest from .base import FunctionalTest

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from .base import FunctionalTest from .base import FunctionalTest

View File

@ -20,8 +20,8 @@
import datetime import datetime
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from .base import FunctionalTest from .base import FunctionalTest

View File

@ -25,7 +25,7 @@ from mock import patch
from stevedore import extension from stevedore import extension
from stevedore.tests import manager as test_manager from stevedore.tests import manager as test_manager
from ceilometer import meter from ceilometer.collector import meter
from ceilometer.collector import service from ceilometer.collector import service
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.storage import base from ceilometer.storage import base

View File

@ -18,8 +18,8 @@
"""Tests for ceilometer.meter """Tests for ceilometer.meter
""" """
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
def test_compute_signature_change_key(): def test_compute_signature_change_key():

View File

@ -51,8 +51,8 @@ import unittest
import mox import mox
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer import storage from ceilometer import storage
from ceilometer.tests.db import TestConnection, require_map_reduce from ceilometer.tests.db import TestConnection, require_map_reduce

View File

@ -23,8 +23,8 @@ import re
import sqlalchemy import sqlalchemy
import unittest import unittest
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer import storage from ceilometer import storage
from ceilometer.storage import migration from ceilometer.storage import migration
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg

View File

@ -25,8 +25,8 @@ import datetime
import logging import logging
import sys import sys
from ceilometer.collector import meter
from ceilometer import counter from ceilometer import counter
from ceilometer import meter
from ceilometer import storage from ceilometer import storage
from ceilometer.openstack.common import cfg from ceilometer.openstack.common import cfg
from ceilometer.openstack.common import timeutils from ceilometer.openstack.common import timeutils