net.sourceforge.domian.repository
Class RepartitionService

java.lang.Object
  extended by net.sourceforge.domian.repository.RepartitionService

public class RepartitionService
extends java.lang.Object

Service for repartitioning of PartitionRepository instances.

Since:
0.4
Author:
Eirik Torske

Nested Class Summary
private static class RepartitionService.RepartitionTask
          The actual task to perform whenever this service is invoked.
 
Field Summary
private  java.util.concurrent.ScheduledExecutorService scheduler
           
 
Constructor Summary
RepartitionService(PartitionRepository repository)
          The repartitioning interval is set to 60 seconds.
RepartitionService(PartitionRepository repository, java.lang.Integer repartitionInterval)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scheduler

private final java.util.concurrent.ScheduledExecutorService scheduler
Constructor Detail

RepartitionService

public RepartitionService(PartitionRepository repository)
The repartitioning interval is set to 60 seconds.

Parameters:
repository - the repository to repartition

RepartitionService

public RepartitionService(PartitionRepository repository,
                          java.lang.Integer repartitionInterval)
Parameters:
repository - the repository to repartition
repartitionInterval - the number of seconds between each repartitioning


Copyright © 2006-2010. All Rights Reserved.