Module Expr Str Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad TryExcept body ImportFrom alias Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Raise Call NameLoad Num If CompareNotIn AttributeLoad NameLoad attr TupleLoad Str Str body Print Str Print Str Print Str Raise Call NameLoad Num Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body If Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Print BinOpMod Str AttributeLoad NameLoad attr Raise Call NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr Call NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Global identifier For TupleStore NameStore NameStore NameLoad body If UnaryOpNot NameLoad body Assign NameStore Num Break If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Raise Call NameLoad NameLoad
N/A N/A Copyright 2009 Chris Davis

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. N/A sys N/A imp os.path dirname join abspath exists optparse OptionParser N/A BIN_DIR N/A dirname N/A abspath __file__ N/A ROOT_DIR N/A dirname BIN_DIR N/A CONF_DIR N/A join ROOT_DIR conf N/A default_relayrules N/A join CONF_DIR relay-rules.conf N/A LIB_DIR N/A join ROOT_DIR lib N/A N/A N/A N/A sys path insert 0 LIB_DIR N/A N/A twisted.internet epollreactor N/A N/A N/A epollreactor install N/A N/A N/A ImportError N/A N/A twisted.internet stdio reactor defer twisted.protocols.basic LineReceiver carbon.routers ConsistentHashingRouter RelayRulesRouter carbon.client CarbonClientManager carbon log events N/A option_parser N/A OptionParser usage %prog [options] <host:port:instance> <host:port:instance> ... N/A N/A N/A option_parser add_option --debug action store_true help Log debug info to stdout N/A N/A N/A option_parser add_option --keyfunc help Use a custom key function (path/to/module.py:myFunc) N/A N/A N/A option_parser add_option --replication type int default 1 help Replication factor N/A N/A N/A option_parser add_option --routing default consistent-hashing help Routing method: "consistent-hashing" (default) or "relay" N/A N/A N/A option_parser add_option --diverse-replicas action store_true help Spread replicas across diff. servers N/A N/A N/A option_parser add_option --relayrules default default_relayrules help relay-rules.conf file to use for relay routing N/A N/A options args N/A N/A option_parser parse_args N/A N/A args N/A N/A At least one host:port destination required
 N/A N/A N/A option_parser print_usage N/A N/A SystemExit 1 N/A N/A N/A options routing N/A consistent-hashing relay N/A N/A Invalid --routing value, must be one of: N/A   consistent-hashing N/A   relay N/A N/A SystemExit 1 N/A destinations N/A N/A arg args N/A N/A parts N/A N/A arg split : 2 N/A host N/A parts N/A 0 N/A port N/A int N/A parts N/A 1 N/A N/A N/A len parts 2 N/A N/A instance N/A parts N/A 2 N/A N/A instance None N/A N/A N/A destinations append N/A host port instance N/A N/A options debug N/A N/A N/A N/A log logToStdout N/A N/A N/A log setDebugEnabled True N/A N/A N/A defer setDebugging True N/A N/A N/A options routing consistent-hashing N/A N/A router N/A ConsistentHashingRouter N/A options replication diverse_replicas N/A options diverse_replicas N/A N/A N/A N/A options routing relay N/A N/A N/A exists N/A options relayrules N/A N/A router N/A RelayRulesRouter N/A options relayrules N/A N/A N/A relay rules file %s does not exist N/A options relayrules N/A N/A SystemExit 1 N/A client_manager N/A CarbonClientManager router N/A N/A N/A reactor callWhenRunning N/A client_manager startService N/A N/A options keyfunc N/A N/A N/A N/A router setKeyFunctionFromModule N/A options keyfunc N/A firstConnectAttempts N/A N/A N/A client_manager startClient dest N/A dest destinations N/A firstConnectsAttempted N/A N/A defer DeferredList firstConnectAttempts StdinMetricsReader N/A LineReceiver N/A N/A delimiter lineReceived N/A N/A self line N/A N/A N/A N/A N/A N/A metric value timestamp N/A N/A line split N/A datapoint N/A N/A float timestamp N/A float value N/A N/A N/A datapoint N/A 1 N/A datapoint N/A 1 N/A N/A N/A client_manager sendDatapoint metric datapoint N/A N/A N/A ValueError N/A N/A N/A N/A log err None N/A Dropping invalid line: %s line N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A log msg stdin disconnected startShutdown N/A N/A results N/A N/A N/A N/A N/A log msg N/A startShutdown(%s) N/A str results N/A allStopped N/A N/A client_manager stopAllClients N/A N/A N/A allStopped addCallback shutdown N/A N/A N/A N/A firstConnectsAttempted addCallback startShutdown N/A N/A N/A N/A N/A stdio StandardIO N/A StdinMetricsReader N/A exitCode 0 shutdown N/A N/A results N/A N/A N/A exitCode N/A N/A success result results N/A N/A N/A success N/A N/A exitCode 1 N/A N/A N/A reactor running N/A N/A N/A N/A reactor stop N/A N/A N/A N/A reactor run N/A N/A SystemExit exitCode