Beispiel #1
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 #2
0
class TSWorkloadType(tso):
    module = tso.String()
    path = tso.String()

    wlclass = tso.Array(tso.String())

    params = tso.Map(TSWorkloadParameter)
Beispiel #3
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 #4
0
class TSAgentResourceInfo(tso):
    resources = tso.Map(TSAgentResource)
    childLinks = tso.Array(TSAgentResourceChild)
Beispiel #5
0
class LoadAgent(TSAgentInterface):
    getHostInfo = TSMethod(tso.Object(TSAgentDescriptor))

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