Beispiel #1
0
class RootAgent(TSAgentInterface):
    hello = TSMethod(tso.Object(TSHelloResponse),
                     agentType=tso.String(),
                     agentUuid=tso.String())

    authMasterKey = TSMethod(masterKey=tso.String())

    listClients = TSMethod(tso.Array(tso.Object(TSClientDescriptor)))
Beispiel #2
0
class TSExperimentProfile(TSExperimentProfileInfo):    
    threadpools = tso.Map(tso.Object(TSExperimentThreadPool))
    workloads = tso.Map(tso.Object(TSExperimentWorkload))

    @staticmethod
    def createEmptyProfile():
        profile = TSExperimentProfile()
        
        profile.profileId = -1
        
        profile.threadpools = {}
        profile.workloads = {}
        
        profile.description = ""
        
        profile.userId = -1
        profile.creationDate = -1
        
        return profile
Beispiel #3
0
class ExpSvcAgent(TSAgentInterface):
    listAgents = TSMethod(tso.Map(tso.Object(TSExpSvcAgentDescriptor)))
    
    getWorkloadTypes = TSMethod(tso.Map(tso.Object(TSWorkloadType)),
                                agentId = tso.Int())
    getAgentResources = TSMethod(tso.Object(TSAgentResourceInfo),
                                 agentId = tso.Int())
    
    listProfiles = TSMethod(tso.Map(tso.Object(TSExperimentProfileInfo)))
    
    getProfile = TSMethod(tso.Object(TSExperimentProfile),
                          profileName = tso.String(),
                          profile = tso.Object(TSExperimentProfileInfo))
    
    configureProfile = TSMethod(profileName = tso.String(),
                                profile = tso.Object(TSExperimentProfile))
Beispiel #4
0
class UserAgent(TSAgentInterface):
    authUser = TSMethod(tso.Object(TSUserDescriptor),
                        userName = tso.String(),
                        userPassword = tso.String())
Beispiel #5
0
class LoadAgent(TSAgentInterface):
    getHostInfo = TSMethod(tso.Object(TSAgentDescriptor))

    getWorkloadTypes = TSMethod(tso.Map(TSWorkloadType))
    getResources = TSMethod(tso.Map(tso.Map(TSResource)))