44 lines
866 B
Java
44 lines
866 B
Java
package org.gcube.smartgears.utils.sweeper;
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
import javax.xml.bind.JAXBException;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
/**
|
|
*
|
|
* @author andrea
|
|
*
|
|
*/
|
|
public class SweeperClient {
|
|
|
|
public static void main (String args[]) {
|
|
|
|
Logger logger = LoggerFactory.getLogger(SweeperClient.class);
|
|
|
|
Sweeper sw = null;
|
|
try {
|
|
sw = new Sweeper();
|
|
} catch (Exception e) {
|
|
logger.error("Error initializing the Sweeper ", e);
|
|
System.exit(1);
|
|
}
|
|
|
|
try {
|
|
sw.cleanGHNProfile();
|
|
} catch (FileNotFoundException | JAXBException e) {
|
|
logger.error("Error cleaning the GHN profile ", e);
|
|
System.exit(1);
|
|
}
|
|
try {
|
|
sw.cleanRIProfiles();
|
|
} catch (FileNotFoundException | JAXBException e) {
|
|
logger.error("Error cleaning the RunningInstance profile ", e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
|
|
}
|