Search in sources :

Example 26 with OutPara

use of com.tencent.wstt.gt.OutPara in project GT by Tencent.

the class Client method setOutPara.

public void setOutPara(String paraName, long time, short value) {
    OutPara outPara = getOutPara(paraName);
    if (null != outPara && OutPara.DISPLAY_DISABLE != outPara.getDisplayProperty()) {
        outPara.setValue(time, String.valueOf(value));
        // add on 20130923 为了出参支持历史曲线
        OpPerfBridge.addHistory(outPara, outPara.getValue(), time, value);
    }
}
Also used : OutPara(com.tencent.wstt.gt.OutPara)

Example 27 with OutPara

use of com.tencent.wstt.gt.OutPara in project GT by Tencent.

the class OpPerfManager method getAllEnable.

/**
	 * 获取所有非disable态出参对应的性能对象数组
	 * @return
	 */
public synchronized TagTimeEntry[] getAllEnable() {
    List<TagTimeEntry> entryList = new ArrayList<TagTimeEntry>();
    for (TagTimeEntry tte : getAll()) {
        Client client = ClientManager.getInstance().getClient(tte.getExkey());
        OutPara op = client.getOutPara(tte.getName());
        if (null != op && op.getDisplayProperty() < OutPara.DISPLAY_DISABLE && op.isMonitor()) {
            entryList.add(tte);
        }
    }
    return entryList.toArray(EMPTY);
}
Also used : TagTimeEntry(com.tencent.wstt.gt.ui.model.TagTimeEntry) OutPara(com.tencent.wstt.gt.OutPara) ArrayList(java.util.ArrayList)

Example 28 with OutPara

use of com.tencent.wstt.gt.OutPara in project GT by Tencent.

the class OpUIManager method refreshOutputParam.

public static void refreshOutputParam() {
    for (OutPara op : list_op) {
        if (op.getDisplayProperty() < AidlEntry.DISPLAY_DISABLE) {
            String value = op.getValue();
            op.setFreezValue(value);
            op.setValue(value);
        }
    }
}
Also used : OutPara(com.tencent.wstt.gt.OutPara)

Example 29 with OutPara

use of com.tencent.wstt.gt.OutPara in project GT by Tencent.

the class Client method setOutPara.

public void setOutPara(String paraName, long time, int value) {
    OutPara outPara = getOutPara(paraName);
    if (null != outPara && OutPara.DISPLAY_DISABLE != outPara.getDisplayProperty()) {
        outPara.setValue(time, String.valueOf(value));
        // add on 20130923 为了出参支持历史曲线
        OpPerfBridge.addHistory(outPara, outPara.getValue(), time, value);
    }
}
Also used : OutPara(com.tencent.wstt.gt.OutPara)

Example 30 with OutPara

use of com.tencent.wstt.gt.OutPara in project GT by Tencent.

the class IOutParaManager method removeOutPara.

public void removeOutPara(String paraName) {
    OutPara para = outParaMap.remove(paraName);
    OpPerfManager.getInstance().remove(paraName);
    OpUIManager.list_op.remove(para);
}
Also used : OutPara(com.tencent.wstt.gt.OutPara)

Aggregations

OutPara (com.tencent.wstt.gt.OutPara)30 Client (com.tencent.wstt.gt.manager.Client)4 ArrayList (java.util.ArrayList)4 TagTimeEntry (com.tencent.wstt.gt.ui.model.TagTimeEntry)3 CommonString (com.tencent.wstt.gt.utils.CommonString)3 NetUtils (com.tencent.wstt.gt.api.utils.NetUtils)2 ParamConst (com.tencent.wstt.gt.manager.ParamConst)2 Intent (android.content.Intent)1 Message (android.os.Message)1 View (android.view.View)1 TextView (android.widget.TextView)1 AidlEntry (com.tencent.wstt.gt.AidlEntry)1 InPara (com.tencent.wstt.gt.InPara)1 GTMainActivity (com.tencent.wstt.gt.activity.GTMainActivity)1 CpuUtils (com.tencent.wstt.gt.api.utils.CpuUtils)1 GWSaveEntry (com.tencent.wstt.gt.log.GWSaveEntry)1