Beispiel #1
0
    def checkSettings(self):
        """
        Check the sanity of the settings in this object.

        This method is called after all calls to parseSetting(...) have been done.
        Any defaults may be set here as well.

        An Exception is raised in the case of insanity.
        """
        workload.checkSettings(self)
Beispiel #2
0
    def checkSettings(self):
        """
        Check the sanity of the settings in this object.

        This method is called after all calls to parseSetting(...) have been done.
        Any defaults may be set here as well.

        An Exception is raised in the case of insanity.
        """
        workload.checkSettings(self)
        if self.duration is None and self.interval is None:
            raise Exception( "One of duration, interval or rate is requried for a linear workload." )