org.terracotta.modules.async
Class ProcessingBucketGroup<I>

java.lang.Object
  extended by org.terracotta.modules.async.ProcessingBucketGroup<I>
All Implemented Interfaces:
com.tc.cluster.DsoClusterListener

public class ProcessingBucketGroup<I>
extends Object
implements com.tc.cluster.DsoClusterListener


Constructor Summary
ProcessingBucketGroup(AsyncConfig config, StealPolicy<I> policy)
           
ProcessingBucketGroup(com.tc.cluster.DsoCluster cluster, AsyncConfig config, StealPolicy<I> policy)
           
 
Method Summary
 AsyncConfig getConfig()
           
 void nodeJoined(com.tc.cluster.DsoClusterEvent event)
           
 void nodeLeft(com.tc.cluster.DsoClusterEvent event)
           
 void operationsDisabled(com.tc.cluster.DsoClusterEvent event)
           
 void operationsEnabled(com.tc.cluster.DsoClusterEvent event)
           
 void start(ProcessingBucket<I> bucket)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingBucketGroup

public ProcessingBucketGroup(AsyncConfig config,
                             StealPolicy<I> policy)

ProcessingBucketGroup

public ProcessingBucketGroup(com.tc.cluster.DsoCluster cluster,
                             AsyncConfig config,
                             StealPolicy<I> policy)
Method Detail

getConfig

public AsyncConfig getConfig()

start

public void start(ProcessingBucket<I> bucket)
           throws ExistingRunningThreadException
Throws:
ExistingRunningThreadException

stop

public void stop()

nodeJoined

public void nodeJoined(com.tc.cluster.DsoClusterEvent event)
Specified by:
nodeJoined in interface com.tc.cluster.DsoClusterListener

nodeLeft

public void nodeLeft(com.tc.cluster.DsoClusterEvent event)
Specified by:
nodeLeft in interface com.tc.cluster.DsoClusterListener

operationsDisabled

public void operationsDisabled(com.tc.cluster.DsoClusterEvent event)
Specified by:
operationsDisabled in interface com.tc.cluster.DsoClusterListener

operationsEnabled

public void operationsEnabled(com.tc.cluster.DsoClusterEvent event)
Specified by:
operationsEnabled in interface com.tc.cluster.DsoClusterListener


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.