Пример #1
0
 public void destroy() {
   try {
     conn.close();
   } catch (Exception e) {
     RpcCommunicator.instance().getLogger().error(e.getMessage());
   }
 }
Пример #2
0
 public static ITerminalProxy create(String host, int port, Boolean ssl_enable) {
   int type = RpcConsts.CONNECTION_SOCK;
   if (ssl_enable) type |= RpcConsts.CONNECTION_SSL;
   RpcConnection conn = RpcCommunicator.instance().createConnection(type, host, port);
   ITerminalProxy prx = new ITerminalProxy(conn);
   return prx;
 }
Пример #3
0
 public boolean unmarshall(ByteBuffer d) {
   boolean r = false;
   try {
     byte v_1 = d.get();
     this.succ = v_1 == 0 ? false : true;
     this.code = d.getInt();
     int v_2 = d.getInt();
     byte[] _sb_3 = new byte[v_2];
     d.get(_sb_3);
     this.msg = new String(_sb_3);
   } catch (Exception e) {
     tce.RpcCommunicator.instance().getLogger().error(e.getMessage());
     r = false;
     return r;
   }
   return true;
 }
Пример #4
0
 public void onSimpleText(SimpleText_t text) throws RpcException {
   onSimpleText(text, tce.RpcCommunicator.instance().getProperty_DefaultCallWaitTime(), null);
 }
Пример #5
0
 public void onSystemNotification(Notification_t notification) throws RpcException {
   onSystemNotification(
       notification, tce.RpcCommunicator.instance().getProperty_DefaultCallWaitTime(), null);
 }
Пример #6
0
 public void onError(String errcode, String errmsg) throws RpcException {
   onError(
       errcode, errmsg, tce.RpcCommunicator.instance().getProperty_DefaultCallWaitTime(), null);
 }
Пример #7
0
 public void onMessage(Message_t message) throws RpcException {
   onMessage(message, tce.RpcCommunicator.instance().getProperty_DefaultCallWaitTime(), null);
 }