Beispiel #1
0
class TSExperimentProfileInfo(tso):
    profileId = tso.Int()
    
    userId = tso.Int()
    
    description = tso.String()
    creationDate = tso.Int()
Beispiel #2
0
class TSAgentResource(tso):
    resId = tso.Int()
    
    resClass = tso.String()
    resType = tso.String()
    
    data = tso.Any()
    
    state = tso.Int()
Beispiel #3
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 #4
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 #5
0
class TSExperimentThreadPool(tso):
    agentId = tso.Nullable(tso.Int())
    numWorkers = tso.Int()
    
    @staticmethod
    def createEmptyThreadPool():
        threadpool = TSExperimentThreadPool()
        
        threadpool.agentId = None
        threadpool.numWorkers = 0
        
        return threadpool
Beispiel #6
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 #7
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 #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 TSExpSvcAgentDescriptor(TSAgentDescriptor):
    agentId = tso.Int()
    
    isOnline = tso.Bool()
    lastOnline = tso.Int()
Beispiel #10
0
class TSHelloResponse(tso):
    agentId = tso.Int()
Beispiel #11
0
class TSWLParamString(TSWLParamCommon):
    default = tso.Optional(tso.String())
    len = tso.Int()
Beispiel #12
0
class TSWLParamInteger(TSWLParamCommon):
    default = tso.Optional(tso.Int())
    min = tso.Optional(tso.Int())
    max = tso.Optional(tso.Int())
Beispiel #13
0
class TSWLParamCommon(tso):
    WLPF_NO_FLAGS = 0x00
    WLPF_OPTIONAL = 0x01

    flags = tso.Int()
    description = tso.String()