Skip to content

Commit

Permalink
Added snapshot() to the jmx service
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Dec 10, 2012
1 parent d2d86c6 commit 5c94ded
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -98,10 +98,20 @@ public void stop() {
}
}

@ManagedOperation(description = "Run the purge process")
@ManagedOperation(description = "Run the outgoing purge process")
public void purge() {
engine.getPurgeService().purgeOutgoing(true);
}

@ManagedOperation(description = "Run the purge process")
public String snapshot() {
File file = engine.snapshot();
if (file != null) {
return file.getAbsolutePath();
} else {
return null;
}
}

@ManagedOperation(description = "Force the channel settings to be read from the database")
public void clearChannelCache() {
Expand Down

0 comments on commit 5c94ded

Please sign in to comment.