001package com.identityworksllc.iiq.common.plugin;
002
003import org.apache.commons.logging.Log;
004import org.apache.commons.logging.LogFactory;
005import sailpoint.api.SailPointContext;
006import sailpoint.tools.GeneralException;
007import sailpoint.tools.Util;
008
009/**
010 * A no-op implementation of the single-server service class, used
011 * for testing and demonstrations.
012 */
013public class SmokeTestSingleServerService extends SingleServerService {
014    private static final Log log = LogFactory.getLog(SmokeTestSingleServerService.class);
015
016    /**
017     * Gets the plugin name (empty for this one)
018     * @return an empty string
019     */
020    @Override
021    public String getPluginName() {
022        return "";
023    }
024
025    @Override
026    public void implementation(SailPointContext context) throws GeneralException {
027        log.warn(executionCount.get() + ": Running the single-server smoke test service on host " + Util.getHostName());
028    }
029
030    @Override
031    public int skipExecutionCount() {
032        return 3;
033    }
034}