buildCommand method

  1. @override
String buildCommand()
override

Build the @ command to be sent to remote secondary for execution.

Implementation

@override
String buildCommand() {
  var statsCommand = 'stats';
  if (statIds != null) {
    statsCommand += ':$statIds';
    if (regex != null) {
      statsCommand += ':$regex';
    }
  }
  statsCommand += '\n';
  return statsCommand;
}