SMILA 1.0 API documentation

org.eclipse.smila.solr.admin
Class SolrAdministrationAgent

java.lang.Object
  extended by org.eclipse.smila.management.LocatedManagementAgentBase
      extended by org.eclipse.smila.solr.admin.SolrAdministrationAgent
All Implemented Interfaces:
LocatedManagementAgent, ManagementAgent

public class SolrAdministrationAgent
extends LocatedManagementAgentBase


Constructor Summary
SolrAdministrationAgent(SolrAdministration administration)
          Constructor.
 
Method Summary
 void clearCoreCache(java.lang.String coreName)
          remove internal data about the given core because it was removed or changed and the caches should be updated.
 void clearCoreCaches()
          clear internal caches after external admin operations.
 java.lang.String create(java.lang.String core, java.lang.String intanceDir)
          Execute create action.
protected  java.lang.String getCategory()
          Gets the category.
 java.lang.Object getCoreNames()
          Execute getCoreNames action.
 java.lang.Object getFieldNames(java.lang.String coreName)
          Execute getFieldNames action.
protected  java.lang.String getName()
          Gets the name.
 java.lang.String reload(java.lang.String core)
          Execute reload action.
 java.lang.String rename(java.lang.String core, java.lang.String other)
          Execute rename action.
 java.lang.String unload(java.lang.String core)
          Execute unload action.
 
Methods inherited from class org.eclipse.smila.management.LocatedManagementAgentBase
getLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrAdministrationAgent

public SolrAdministrationAgent(SolrAdministration administration)
Constructor.

Parameters:
solrAdmin - the SolrAdmin.
Method Detail

getCategory

protected java.lang.String getCategory()
Gets the category.

Specified by:
getCategory in class LocatedManagementAgentBase
Returns:
the category
See Also:
LocatedManagementAgentBase.getCategory()

getName

protected java.lang.String getName()
Gets the name.

Specified by:
getName in class LocatedManagementAgentBase
Returns:
the name
See Also:
LocatedManagementAgentBase.getName()

create

public java.lang.String create(java.lang.String core,
                               java.lang.String intanceDir)
Execute create action.

Parameters:
core - the core name.
intanceDir - the instance directory.
dataDir - the data directory.
Returns:
the response message.

reload

public java.lang.String reload(java.lang.String core)
Execute reload action.

Parameters:
core - the core name.
Returns:
the response message.

rename

public java.lang.String rename(java.lang.String core,
                               java.lang.String other)
Execute rename action.

Parameters:
core - the core name.
other - the new core name.
Returns:
the response message.

unload

public java.lang.String unload(java.lang.String core)
Execute unload action.

Parameters:
core - the core name.
Returns:
the response message.

getCoreNames

public java.lang.Object getCoreNames()
Execute getCoreNames action.

Returns:
either a list of core names, or an error message.

getFieldNames

public java.lang.Object getFieldNames(java.lang.String coreName)
Execute getFieldNames action.

Parameters:
coreName - the core name.
Returns:
either a list of field names, or an error message.

clearCoreCaches

public void clearCoreCaches()
clear internal caches after external admin operations.


clearCoreCache

public void clearCoreCache(java.lang.String coreName)
remove internal data about the given core because it was removed or changed and the caches should be updated.


SMILA 1.0 API documentation