|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.repository.sequencer.SequencingService
public class SequencingService
A sequencing system is used to monitor changes in the content of DNA repositories and to sequence the content to extract or to generate structured information.
Nested Class Summary | |
---|---|
static interface |
SequencingService.Selector
Interface used to select the set of Sequencer instances that should be run. |
class |
SequencingService.Statistics
The statistics for the system. |
Field Summary | |
---|---|
static SequencingService.Selector |
DEFAULT_SEQUENCER_SELECTOR
The default SequencingService.Selector that considers every Sequencer to be used for every node. |
Constructor Summary | |
---|---|
SequencingService()
Create a new sequencing system, configured with no sequencers and not monitoring any workspaces. |
Method Summary | |
---|---|
boolean |
addSequencer(SequencerConfig config)
Add the configuration for a sequencer, or update any existing one that represents the same configuration |
ServiceAdministrator |
getAdministrator()
Return the administrative component for this service. |
ExecutionContext |
getExecutionContext()
|
ExecutorService |
getExecutorService()
Get the executor service used to run the sequencers. |
RepositoryLibrary |
getRepositoryLibrary()
Get the repository library to be used for repository lookup |
SequencingService.Selector |
getSequencerSelector()
Get the sequencing selector used by this system. |
SequencingService.Statistics |
getStatistics()
Get the statistics for this system. |
boolean |
removeSequencer(SequencerConfig config)
Remove the configuration for a sequencer. |
void |
setExecutionContext(ExecutionContext executionContext)
|
void |
setExecutorService(ExecutorService executorService)
Set the executor service that should be used by this system. |
void |
setRepositoryLibrary(RepositoryLibrary repositoryLibrary)
|
void |
setSequencerSelector(SequencingService.Selector sequencerSelector)
Set the sequencer selector, or null if the default sequencer selector should be used. |
boolean |
updateSequencer(SequencerConfig config)
Update the configuration for a sequencer, or add it if there is no matching
configuration . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SequencingService.Selector DEFAULT_SEQUENCER_SELECTOR
SequencingService.Selector
that considers every Sequencer
to be used for every node.
setSequencerSelector(org.jboss.dna.repository.sequencer.SequencingService.Selector)
Constructor Detail |
---|
public SequencingService()
paused
and must be configured and then
started
.
Method Detail |
---|
public ServiceAdministrator getAdministrator()
getAdministrator
in interface AdministeredService
public SequencingService.Statistics getStatistics()
public boolean addSequencer(SequencerConfig config)
same configuration
config
- the new configuration
unchanged
sequencer configuration
IllegalArgumentException
- if config
is nullupdateSequencer(SequencerConfig)
,
removeSequencer(SequencerConfig)
public boolean updateSequencer(SequencerConfig config)
matching
configuration
.
config
- the updated (or new) configuration
unchanged
sequencer configuration
IllegalArgumentException
- if config
is nulladdSequencer(SequencerConfig)
,
removeSequencer(SequencerConfig)
public boolean removeSequencer(SequencerConfig config)
config
- the configuration to be removed
IllegalArgumentException
- if config
is nulladdSequencer(SequencerConfig)
,
updateSequencer(SequencerConfig)
public ExecutionContext getExecutionContext()
public void setExecutionContext(ExecutionContext executionContext)
executionContext
- Sets executionContext to the specified value.public RepositoryLibrary getRepositoryLibrary()
public void setRepositoryLibrary(RepositoryLibrary repositoryLibrary)
public ExecutorService getExecutorService()
setExecutorService(ExecutorService)
public void setExecutorService(ExecutorService executorService)
executor that uses a single thread
.
executorService
- the executor servicegetExecutorService()
,
Executors.newCachedThreadPool()
,
Executors.newCachedThreadPool(java.util.concurrent.ThreadFactory)
,
Executors.newFixedThreadPool(int)
,
Executors.newFixedThreadPool(int, java.util.concurrent.ThreadFactory)
,
Executors.newScheduledThreadPool(int)
,
Executors.newScheduledThreadPool(int, java.util.concurrent.ThreadFactory)
,
Executors.newSingleThreadExecutor()
,
Executors.newSingleThreadExecutor(java.util.concurrent.ThreadFactory)
,
Executors.newSingleThreadScheduledExecutor()
,
Executors.newSingleThreadScheduledExecutor(java.util.concurrent.ThreadFactory)
public SequencingService.Selector getSequencerSelector()
public void setSequencerSelector(SequencingService.Selector sequencerSelector)
default sequencer selector
should be used.
sequencerSelector
- the selector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |