public void run() {
Config config = Config.getConfig();
Volume volume = config.getVolumes().getVolume(volumeIndex);
audit.info("index volume {"+volume+", "+principal+"}");
logger.debug("index volume {"+volume+", "+principal+"}");
MessageIndex index = (MessageIndex)config.getIndex();
try {
index.deleteIndex(volume);
config.getArchiver().processMessages(new IndexMessage(volume));
} catch (Exception e) {
logger.error("failed to index volume {"+volume+"}:"+e.getMessage(),e);
}
}