Beispiel #1
0
class TSWorkloadType(tso):
    module = tso.String()
    path = tso.String()

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

    params = tso.Map(TSWorkloadParameter)
Beispiel #2
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 #3
0
class TSAgentResource(tso):
    resId = tso.Int()
    
    resClass = tso.String()
    resType = tso.String()
    
    data = tso.Any()
    
    state = tso.Int()
Beispiel #4
0
class TSClientDescriptor(tso):
    id = tso.Int()
    type = tso.String()
    uuid = tso.String()
    authType = tso.Int()

    # See JSONTS.STATE_*
    state = tso.Int()

    endpoint = tso.String()
Beispiel #5
0
class TSAgentDescriptor(tso):
    hostname = tso.String()

    domainname = tso.String()
    osname = tso.String()
    release = tso.String()
    machineArch = tso.String()

    numCPUs = tso.Int()
    numCores = tso.Int()
    memTotal = tso.Int()
Beispiel #6
0
class TSExperimentProfileInfo(tso):
    profileId = tso.Int()
    
    userId = tso.Int()
    
    description = tso.String()
    creationDate = tso.Int()
Beispiel #7
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 #8
0
class TSExperimentWorkload(tso):
    agentId = tso.Nullable(tso.Int())
    workloadType = tso.Nullable(tso.String())
    
    threadpool = tso.Nullable(tso.String())
    params = tso.Any()
    
    @staticmethod
    def createEmptyWorkload():
        workload = TSExperimentWorkload()
        
        workload.agentId = None
        workload.workloadType = None
        workload.threadpool = None
        workload.params = {}
        
        return workload
Beispiel #9
0
class TSUserDescriptor(tso):
    name = tso.String()
    
    # See tsload.jsonts.server.TSServerClient - AUTH_* contstants
    AUTH_ADMIN = 2
    AUTH_OPERATOR = 3
    AUTH_USER = 4
    
    role = tso.Int()
Beispiel #10
0
class TSAgentResourceChild(tso):
    parentName = tso.String()
    childName = tso.String()
Beispiel #11
0
class UserAgent(TSAgentInterface):
    authUser = TSMethod(tso.Object(TSUserDescriptor),
                        userName = tso.String(),
                        userPassword = tso.String())
Beispiel #12
0
class TSWLParamStringSet(TSWLParamCommon):
    strset = tso.Array(tso.String())
    default = tso.Optional(tso.String())
Beispiel #13
0
class TSWLParamString(TSWLParamCommon):
    default = tso.Optional(tso.String())
    len = tso.Int()
Beispiel #14
0
class TSWLParamCommon(tso):
    WLPF_NO_FLAGS = 0x00
    WLPF_OPTIONAL = 0x01

    flags = tso.Int()
    description = tso.String()
Beispiel #15
0
class TSResource(tso):
    children = tso.Array(tso.String())
    type = tso.String()
    data = tso.Any()