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

java.lang.Object
  extended by org.hibernate.search.backend.impl.jgroups.JGroupsBackendQueueProcessor
All Implemented Interfaces:
BackendQueueProcessor
Direct Known Subclasses:
MasterJGroupsBackendQueueProcessor, SlaveJGroupsBackendQueueProcessor

public abstract class JGroupsBackendQueueProcessor
extends Object
implements BackendQueueProcessor

Common base class for Master and Slave BackendQueueProcessorFactories

Author:
Lukasz Moren

Field Summary
protected  org.jgroups.Address address
           
protected  org.jgroups.Channel channel
           
protected  String clusterName
           
static String CONFIGURATION_FILE
           
static String CONFIGURATION_STRING
           
static String CONFIGURATION_XML
           
protected  DirectoryBasedIndexManager indexManager
           
protected  String indexName
           
static String JG_CLUSTER_NAME
           
static String JGROUPS_PREFIX
           
 
Constructor Summary
JGroupsBackendQueueProcessor()
           
 
Method Summary
 void close()
          Used to shutdown and eventually release resources.
 org.jgroups.Address getAddress()
          Cluster's node address
 org.jgroups.Channel getChannel()
           
 String getClusterName()
           
 void initialize(Properties props, WorkerBuildContext context, DirectoryBasedIndexManager indexManager)
          Used at startup, called once as first method.
 void setClusterName(String clusterName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.search.backend.spi.BackendQueueProcessor
applyStreamWork, applyWork, getExclusiveWriteLock
 

Field Detail

JGROUPS_PREFIX

public static final String JGROUPS_PREFIX
See Also:
Constant Field Values

CONFIGURATION_STRING

public static final String CONFIGURATION_STRING
See Also:
Constant Field Values

CONFIGURATION_XML

public static final String CONFIGURATION_XML
See Also:
Constant Field Values

CONFIGURATION_FILE

public static final String CONFIGURATION_FILE
See Also:
Constant Field Values

JG_CLUSTER_NAME

public static final String JG_CLUSTER_NAME
See Also:
Constant Field Values

clusterName

protected String clusterName

channel

protected org.jgroups.Channel channel

address

protected org.jgroups.Address address

indexName

protected String indexName

indexManager

protected DirectoryBasedIndexManager indexManager
Constructor Detail

JGroupsBackendQueueProcessor

public JGroupsBackendQueueProcessor()
Method Detail

initialize

public void initialize(Properties props,
                       WorkerBuildContext context,
                       DirectoryBasedIndexManager indexManager)
Description copied from interface: BackendQueueProcessor
Used at startup, called once as first method.

Specified by:
initialize in interface BackendQueueProcessor
Parameters:
props - all configuration properties
context - context giving access to required meta data
indexManager - the index it is related to.

close

public void close()
Description copied from interface: BackendQueueProcessor
Used to shutdown and eventually release resources. No other method should be used after this one.

Specified by:
close in interface BackendQueueProcessor

getChannel

public org.jgroups.Channel getChannel()

setClusterName

public void setClusterName(String clusterName)

getClusterName

public String getClusterName()

getAddress

public org.jgroups.Address getAddress()
Cluster's node address

Returns:
Address


Copyright © 2006-2012 Hibernate. All Rights Reserved.