Пример #1
0
 @Override
 public void addedCommand(PreparedCommand pc) {
   CommandHistoryEntry entry =
       CommandHistoryEntry.newBuilder()
           .setCommandId(pc.getCommandId())
           .addAllAttr(pc.getAttributes())
           .build();
   doSend(entry);
 }
Пример #2
0
 @Override
 public void updatedCommand(CommandId cmdId, long changeDate, String key, Value value) {
   CommandHistoryAttribute cha =
       CommandHistoryAttribute.newBuilder()
           .setName(key)
           .setValue(ValueUtility.toGbp(value))
           .build();
   CommandHistoryEntry entry =
       CommandHistoryEntry.newBuilder().setCommandId(cmdId).addAttr(cha).build();
   doSend(entry);
 }