cloudmesh.management.configuration.counter
¶
Module Contents¶
Classes¶
A counter is used to keep track of some value that can be increased |
-
class
cloudmesh.management.configuration.counter.
Counter
(counter_file_path='~/.cloudmesh/counter.yaml')¶ Bases:
object
A counter is used to keep track of some value that can be increased and is associated with a user. Typically it is used to increment the vm id or the job id.
-
incr
(self, name='counter')¶ increments the counter by one :return:
-
decr
(self, name='counter')¶ increments the counter by one :return:
-
get
(self, name='counter')¶ returns the value of the counter :param name: name of the counter :return: the value of the counter
-
set
(self, name='counter', value=None)¶ sets a counter associated with a particular user :param name: name of the counter :param value: the value :return:
-