buildCommand method

  1. @override
String buildCommand()
override

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

Implementation

@override
String buildCommand() {
  var monitorCommand = 'monitor';
  if (lastNotificationTime != null) {
    monitorCommand += ':${lastNotificationTime.toString()}';
  }
  if (regex != null) {
    monitorCommand += ' $regex';
  }
  monitorCommand += '\n';
  return monitorCommand;
}