Skip to content

Commit

Permalink
add offline
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Jul 27, 2017
1 parent 7b1e98b commit 61833ce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class DubboOperationEndpoint implements MvcEndpoint {
@Autowired
private DubboProperties properties;
private Registry registry;
public static Boolean OFFLINE=false;

@PostConstruct
public void init() {
Expand All @@ -36,6 +37,7 @@ public void init() {
@RequestMapping("/offline")
public String offline() {
ProtocolConfig.destroyAll();
OFFLINE = true;
return "sucess";
}

Expand Down

0 comments on commit 61833ce

Please sign in to comment.