org.ow2.weblab.services.indexer.impl
Class SolrIndexer

java.lang.Object
  extended by org.ow2.weblab.services.indexer.impl.SolrIndexer
All Implemented Interfaces:
org.ow2.weblab.core.services.Indexer
Direct Known Subclasses:
SolrDataOperator

public class SolrIndexer
extends java.lang.Object
implements org.ow2.weblab.core.services.Indexer

Indexer using Embedded Solr server. This class only check index arguments and call Solr component


Field Summary
protected  SolrComponent solr
           
protected  javax.xml.ws.WebServiceContext wsContext
           
 
Constructor Summary
SolrIndexer()
           
 
Method Summary
 void destroy()
           
protected  java.lang.String getWebAppPath()
          Return the Web application path
 javax.xml.ws.WebServiceContext getWsContext()
           
 org.ow2.weblab.core.services.indexer.IndexReturn index(org.ow2.weblab.core.services.indexer.IndexArgs args)
           
 void init()
           
 void setWsContext(javax.xml.ws.WebServiceContext wsContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wsContext

protected javax.xml.ws.WebServiceContext wsContext

solr

protected SolrComponent solr
Constructor Detail

SolrIndexer

public SolrIndexer()
Method Detail

init

@PostConstruct
public void init()

index

public org.ow2.weblab.core.services.indexer.IndexReturn index(org.ow2.weblab.core.services.indexer.IndexArgs args)
                                                       throws org.ow2.weblab.core.services.UnexpectedException,
                                                              org.ow2.weblab.core.services.InvalidParameterException
Specified by:
index in interface org.ow2.weblab.core.services.Indexer
Throws:
org.ow2.weblab.core.services.UnexpectedException
org.ow2.weblab.core.services.InvalidParameterException

destroy

@PreDestroy
public void destroy()

getWebAppPath

protected java.lang.String getWebAppPath()
                                  throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
Return the Web application path

Returns:
webapp path
Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException

getWsContext

public javax.xml.ws.WebServiceContext getWsContext()
Returns:
the wsContext

setWsContext

public void setWsContext(javax.xml.ws.WebServiceContext wsContext)
Parameters:
wsContext - the wsContext to set


Copyright © 2004-2012. All Rights Reserved.