private void sendSyncCommand(String command, Object msgId) { if (_exception != null) { throw _exception; } if (_spoutMsg == null) { _spoutMsg = new SpoutMsg(); } _spoutMsg.setCommand(command); _spoutMsg.setId(msgId); querySubprocess(); }
public void writeSpoutMsg(SpoutMsg msg) throws IOException { JSONObject obj = new JSONObject(); obj.put("command", msg.getCommand()); obj.put("id", msg.getId()); writeMessage(obj); }
private void sendSyncCommand(String command, Object msgId) { if (_exception != null) { throw _exception; } if (_spoutMsg == null) { _spoutMsg = new SpoutMsg(); } _spoutMsg.setCommand(command); _spoutMsg.setId(msgId); querySubprocess(); }
public void writeSpoutMsg(SpoutMsg msg) throws IOException { JSONObject obj = new JSONObject(); obj.put("command", msg.getCommand()); obj.put("id", msg.getId()); writeMessage(obj); }