Bug 536360 (RHQ-718)
Summary: | Agent 'sending>' prompt is misleading - change prompt | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Jeff Weiss <jweiss> |
Component: | Agent | Assignee: | John Mazzitelli <mazz> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 1.0.1 | CC: | dajohnso |
Target Milestone: | --- | Keywords: | Improvement |
Target Release: | --- | Flags: | jweiss:
archived+
|
Hardware: | All | ||
OS: | All | ||
URL: | http://jira.rhq-project.org/browse/RHQ-718 | ||
Whiteboard: | |||
Fixed In Version: | 1.2 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: |
all
|
|
Last Closed: | Type: | --- | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeff Weiss
2008-08-06 21:43:00 UTC
suggest we just go with a ">" prompt. When in development/debug mode, I'll try to keep this as-is (because in debug mode, its useful to know if in shutdown/started/sending mode). But for normal customer operations, we can just use ">" as the prompt. here's the code that fixes this - will check in once svn is open again (this goes in AgentMain - its a new getDefaultPrompt() method): /** * Returns the default user prompt, which is dynamically determined based on the state of the agent and its client * command sender if the agent's logger is in debug mode. If not, a standard prompt is used no matter * what state the sender object is in. * * @return default prompt string */ private String getDefaultPrompt() { String prompt; if (LOG.isDebugEnabled()) { ClientCommandSender sender = m_clientSender; if ((sender != null) && isStarted()) { prompt = (sender.isSending()) ? PROMPT_SENDING : PROMPT_STARTED; } else { prompt = PROMPT_SHUTDOWN; } } else { prompt = PROMPT_TINY; } return prompt; } This requires a new constant defines at the top: private static final String PROMPT_TINY = "> "; This bug was previously known as http://jira.rhq-project.org/browse/RHQ-718 |