コード例 #1
0
    def buildMessage(self):

        # note that we don't validate these strings -- if they contain newlines
        # (and so mess up the transition protocol) then the server will error
        result = ["faultInject"]
        result.append(toNonNoneString(self.options.faultName))
        result.append(toNonNoneString(self.options.type))
        result.append(toNonNoneString(self.options.ddlStatement))
        result.append(toNonNoneString(self.options.databaseName))
        result.append(toNonNoneString(self.options.tableName))
        result.append(toNonNoneString(self.options.numOccurrences))
        result.append(toNonNoneString(self.options.sleepTimeSeconds))
        return '\n'.join(result)
コード例 #2
0
ファイル: clsInjectFault.py プロジェクト: 50wu/gpdb
    def buildMessage(self) :

        # note that we don't validate these strings -- if they contain newlines
        # (and so mess up the transition protocol) then the server will error
        result = ["faultInject"]
        result.append( toNonNoneString(self.options.faultName))
        result.append( toNonNoneString(self.options.type))
        result.append( toNonNoneString(self.options.ddlStatement))
        result.append( toNonNoneString(self.options.databaseName))
        result.append( toNonNoneString(self.options.tableName))
        result.append( toNonNoneString(self.options.numOccurrences))
        result.append( toNonNoneString(self.options.sleepTimeSeconds))
        return '\n'.join(result)
コード例 #3
0
 def buildGetStatusMessage(self):
     # note that we don't validate this string then the server may error
     result = ["getFaultInjectStatus"]
     result.append(toNonNoneString(self.options.faultName))
     return '\n'.join(result)
コード例 #4
0
ファイル: clsInjectFault.py プロジェクト: 50wu/gpdb
 def buildGetStatusMessage(self) :
     # note that we don't validate this string then the server may error
     result = ["getFaultInjectStatus"]
     result.append( toNonNoneString(self.options.faultName))
     return '\n'.join(result)