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

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

public class JGroupsChannelProvider
extends Object
implements ServiceProvider<MessageSender>

Service to initialize a JGroups Channel. This needs to be centralized to allow sharing of channels across different index managers.

Author:
Lukasz Moren, Sanne Grinovero (C) 2012 Red Hat Inc., Ales Justin

Field Summary
static String CHANNEL_INJECT
           
static String CLASSLOADER
           
static String CLUSTER_NAME
           
static String CONFIGURATION_FILE
           
static String JGROUPS_PREFIX
           
static String MUX_ID
           
 
Constructor Summary
JGroupsChannelProvider()
           
 
Method Summary
 MessageSender getService()
           
 void start(Properties props, BuildContext context)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JGROUPS_PREFIX

public static final String JGROUPS_PREFIX
See Also:
Constant Field Values

CONFIGURATION_FILE

public static final String CONFIGURATION_FILE
See Also:
Constant Field Values

CLUSTER_NAME

public static final String CLUSTER_NAME
See Also:
Constant Field Values

CHANNEL_INJECT

public static final String CHANNEL_INJECT
See Also:
Constant Field Values

CLASSLOADER

public static final String CLASSLOADER
See Also:
Constant Field Values

MUX_ID

public static final String MUX_ID
See Also:
Constant Field Values
Constructor Detail

JGroupsChannelProvider

public JGroupsChannelProvider()
Method Detail

start

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

getService

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

stop

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


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