org.fcrepo.server.resourceIndex
Class ResourceIndexRebuilder

java.lang.Object
  extended by org.fcrepo.server.resourceIndex.ResourceIndexRebuilder
All Implemented Interfaces:
Rebuilder, org.springframework.context.ApplicationContextAware

public class ResourceIndexRebuilder
extends Object
implements org.springframework.context.ApplicationContextAware, Rebuilder

A Rebuilder for the resource index.


Constructor Summary
ResourceIndexRebuilder()
           
 
Method Summary
 void addObject(DigitalObject obj)
          Add the data of interest for the given object.
 void finish()
          Free up any system resources associated with rebuilding.
 String getAction()
          Get a short phrase describing what the user can do with this rebuilder.
 Map<String,String> getOptions()
           
 void init()
           
 void setApplicationContext(org.springframework.context.ApplicationContext context)
           
 void setModuleConfiguration(ModuleConfiguration riConfig)
           
 void setServerConfiguration(ServerConfiguration serverConfig)
          Initialize the rebuilder, given the server configuration.
 void setServerDir(File serverBaseDir)
           
 void setTripleGenerator(TripleGenerator generator)
           
 void setTriplestoreConnector(org.trippi.TriplestoreConnector conn)
           
 boolean shouldStopServer()
          Returns true is the server _must_ be shut down for this rebuilder to safely operate.
 void start(Map<String,String> options)
          Validate the provided options and perform any necessary startup tasks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceIndexRebuilder

public ResourceIndexRebuilder()
Method Detail

setTriplestoreConnector

public void setTriplestoreConnector(org.trippi.TriplestoreConnector conn)

setModuleConfiguration

public void setModuleConfiguration(ModuleConfiguration riConfig)

getAction

public String getAction()
Get a short phrase describing what the user can do with this rebuilder.

Specified by:
getAction in interface Rebuilder

shouldStopServer

public boolean shouldStopServer()
Returns true is the server _must_ be shut down for this rebuilder to safely operate.

Specified by:
shouldStopServer in interface Rebuilder

setServerConfiguration

public void setServerConfiguration(ServerConfiguration serverConfig)
Initialize the rebuilder, given the server configuration.

Specified by:
setServerConfiguration in interface Rebuilder

setServerDir

public void setServerDir(File serverBaseDir)
Specified by:
setServerDir in interface Rebuilder

init

public void init()
Specified by:
init in interface Rebuilder

getOptions

public Map<String,String> getOptions()
Specified by:
getOptions in interface Rebuilder

setTripleGenerator

public void setTripleGenerator(TripleGenerator generator)

start

public void start(Map<String,String> options)
           throws ResourceIndexException
Validate the provided options and perform any necessary startup tasks.

Specified by:
start in interface Rebuilder
Throws:
ResourceIndexException

addObject

public void addObject(DigitalObject obj)
               throws ResourceIndexException
Add the data of interest for the given object.

Specified by:
addObject in interface Rebuilder
Throws:
ResourceIndexException

finish

public void finish()
            throws Exception
Free up any system resources associated with rebuilding.

Specified by:
finish in interface Rebuilder
Throws:
Exception

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext context)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2012 DuraSpace. All Rights Reserved.