org.hibernate.search.backend.impl.jgroups
Class MasterSelectorServiceProvider

java.lang.Object
  extended by org.hibernate.search.backend.impl.jgroups.MasterSelectorServiceProvider
All Implemented Interfaces:
ServiceProvider<NodeSelectorStrategyHolder>

public class MasterSelectorServiceProvider
extends Object
implements ServiceProvider<NodeSelectorStrategyHolder>

Provides the GlobalMasterSelector as an internal service; this is useful to guarantee there is only one instance per SearchFactory exposed to all services needing to interact with it.

Author:
Sanne Grinovero (C) 2012 Red Hat Inc.

Constructor Summary
MasterSelectorServiceProvider()
           
 
Method Summary
 NodeSelectorStrategyHolder getService()
           
 void start(Properties properties, BuildContext context)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterSelectorServiceProvider

public MasterSelectorServiceProvider()
Method Detail

start

public void start(Properties properties,
                  BuildContext context)
Specified by:
start in interface ServiceProvider<NodeSelectorStrategyHolder>

getService

public NodeSelectorStrategyHolder getService()
Specified by:
getService in interface ServiceProvider<NodeSelectorStrategyHolder>

stop

public void stop()
Specified by:
stop in interface ServiceProvider<NodeSelectorStrategyHolder>


Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved