class FossologySshConnector {

    protected void waitCompletion(Channel channel, long timeout) throws SW360Exception {
        long startTime = currentTimeMillis();
        while (!channel.isClosed() && (currentTimeMillis() - startTime < timeout)) {
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                throw fail(e, "interrupted connection to Fossology");
            }
        }
        if (!channel.isClosed()) {
            throw fail("timeout while waiting for completion of connection to Fossology");
        }
    }

    @Autowired public  FossologySshConnector(JSchSessionProvider jSchSessionProvider, FossologySettings fossologySettings);

}