Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

Pause on start#576

Merged
gerring merged 30 commits intomasterfrom
pause_on_start
Feb 28, 2017
Merged

Pause on start#576
gerring merged 30 commits intomasterfrom
pause_on_start

Conversation

@gerring
Copy link
Copy Markdown
Contributor

@gerring gerring commented Feb 28, 2017

Added ability for solstice scanning to automatically pause until the user tells it to run.

}

List<U> items = getSubmissionQueue();
if (items!=null && items.size()>0) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Use isEmpty() to check whether the collection is empty or not. rule

assertEquals(start.getSize(), beans.size());
assertEquals(1, startEvents.size());

Thread.sleep(100);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAJOR Remove this use of "Thread.sleep()". rule

// Ok done that, now we sent it off...
submitter.submit(bean);

Thread.sleep(200);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAJOR Remove this use of "Thread.sleep()". rule

}


if (!isDurable()) return false;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAJOR At most one statement is allowed per line, but 2 statements were found on this line. rule

// Ok done that, now we sent it off...
pi.exec("submit("+name+", block="+(blocking?"True":"False")+", broker_uri='"+uri+"')");

Thread.sleep(200);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAJOR Remove this use of "Thread.sleep()". rule

// Ok done that, now we sent it off...
pi.exec("submit("+name+", block="+(blocking?"True":"False")+", broker_uri='"+uri+"')");

Thread.sleep(200);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAJOR Remove this use of "Thread.sleep()". rule

@gerring
Copy link
Copy Markdown
Contributor Author

gerring commented Feb 28, 2017

SonarQube analysis reported 8 issues

  • MAJOR 5 major
  • MINOR 3 minor

Watch the comments in this conversation to review them.

2 extra issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MINOR MalcolmModel.java#L32: Move this variable to comply with Java Code Conventions. rule
  2. MINOR MalcolmModel.java#L35: Move this variable to comply with Java Code Conventions. rule

@gerring gerring merged commit e83b0fd into master Feb 28, 2017
@gerring gerring deleted the pause_on_start branch February 28, 2017 17:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant