buildCommand method
Build the @ command to be sent to remote secondary for execution.
Implementation
@override
String buildCommand() {
StringBuffer serverCommandBuffer = StringBuffer('stats');
if (statIds != null) {
serverCommandBuffer.write(':$statIds');
if (regex != null) {
serverCommandBuffer.write(':$regex');
}
}
return (serverCommandBuffer..write('\n')).toString();
}