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

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

public class JGroupsChannelProvider
extends Object
implements ServiceProvider<org.jgroups.Channel>

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.

Field Summary
static String CHANNEL_INJECT
           
static String CLUSTER_NAME
           
protected  String clusterName
           
static String CONFIGURATION_FILE
           
static String JGROUPS_PREFIX
           
 
Constructor Summary
JGroupsChannelProvider()
           
 
Method Summary
 org.jgroups.Channel 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

clusterName

protected String clusterName
Constructor Detail

JGroupsChannelProvider

public JGroupsChannelProvider()
Method Detail

start

public void start(Properties props,
                  BuildContext context)
Specified by:
start in interface ServiceProvider<org.jgroups.Channel>

getService

public org.jgroups.Channel getService()
Specified by:
getService in interface ServiceProvider<org.jgroups.Channel>

stop

public void stop()
Specified by:
stop in interface ServiceProvider<org.jgroups.Channel>


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