use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.
the class GTBinder method registerGlobalInPara.
@Override
public void registerGlobalInPara(InPara para) throws RemoteException {
Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
client.register(para);
}
use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.
the class GTBinder method getGlobalInPara.
@Override
public InPara getGlobalInPara(String key) throws RemoteException {
Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
InPara para = client.getInPara(key);
return para;
}
use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.
the class GTBinder method registerGlobalOutPara.
@Override
public void registerGlobalOutPara(OutPara para) throws RemoteException {
Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
client.register(para);
}
use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.
the class GTBinder method setInPara.
@Override
public void setInPara(String key, String newValue) throws RemoteException {
Client client = ClientManager.getInstance().getClient(getCallingUid());
InPara iv = client.getInPara(key);
if (null != iv) {
iv.getValues().remove(newValue);
iv.getValues().add(0, newValue);
}
}
use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.
the class GTBinder method setGlobalOutPara.
@Override
public void setGlobalOutPara(String key, String value) throws RemoteException {
Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
OutPara para = client.getOutPara(key);
if (null != para) {
para.setValue(value);
// add on 20130923 为了出参支持历史曲线
if (para.isMonitor()) {
try {
long lValue = Long.parseLong(value);
OpPerfBridge.addHistory(para, value, lValue);
} catch (Exception e) {
// 非数字,直接重置
para.setMonitor(false);
OpPerfBridge.removeProfilerData(key);
}
}
}
}
Aggregations