public abstract class AbstractRepositoryConsumer extends AbstractConsumer
Modifier and Type | Field and Description |
---|---|
protected boolean |
fed |
Constructor and Description |
---|
AbstractRepositoryConsumer(ScmProviderRepository repository,
ScmLogger logger)
AbstractRepositoryConsumer constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
consumeLine(String line)
Process one line of output from the execution of the "scm xxxx" command.
|
ScmProviderRepository |
getRepository() |
boolean |
isFed() |
void |
setFed(boolean fed) |
void |
setRepository(ScmProviderRepository repository) |
getLogger, parseDate, parseDate, setLogger
protected boolean fed
public AbstractRepositoryConsumer(ScmProviderRepository repository, ScmLogger logger)
logger
- The logger to use in the consumerpublic ScmProviderRepository getRepository()
public void setRepository(ScmProviderRepository repository)
repository
- The repository to set.public boolean isFed()
public void setFed(boolean fed)
fed
- The fed to set.public void consumeLine(String line)
line
- The line of output from the external command that has been pumped to us.StreamConsumer.consumeLine(java.lang.String)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.