mirror of https://github.com/alibaba/arthas.git
dashboard/watch/monitor/tt/stack/trace support press Q to exit. close #410
parent
ec7c5aea33
commit
2058ae4785
@ -0,0 +1,24 @@
|
||||
package com.taobao.arthas.core.shell.handlers.shell;
|
||||
|
||||
import com.taobao.arthas.core.shell.command.CommandProcess;
|
||||
import com.taobao.arthas.core.shell.handlers.Handler;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hengyunabc 2019-02-09
|
||||
*
|
||||
*/
|
||||
public class QExitHandler implements Handler<String> {
|
||||
private CommandProcess process;
|
||||
|
||||
public QExitHandler(CommandProcess process) {
|
||||
this.process = process;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handle(String event) {
|
||||
if ("q".equalsIgnoreCase(event)) {
|
||||
process.end();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue