public class RepositoryService extends Object implements org.jboss.msc.service.Service<JcrRepository>, Environment
RepositoryService instance is the service responsible for initializing a JcrRepository in the ModeShape
engine using the information from the configuration.| Modifier and Type | Field and Description |
|---|---|
static String |
BINARY_STORAGE_CONTAINER_NAME |
static String |
CONTENT_CONTAINER_NAME |
static String |
WORKSPACES_CONTAINER_NAME |
| Constructor and Description |
|---|
RepositoryService(RepositoryConfiguration repositoryConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeAuthenticatorField(MappedAttributeDefinition defn,
org.jboss.dmr.ModelNode newValue,
String authenticatorName)
Immediately change and apply the specified authenticator field in the current repository configuration to the new value.
|
void |
changeField(MappedAttributeDefinition defn,
org.jboss.dmr.ModelNode newValue)
Immediately change and apply the specified field in the current repository configuration to the new value.
|
void |
changeIndexDefinitionField(MappedAttributeDefinition defn,
org.jboss.dmr.ModelNode newValue,
String indexDefinitionName)
Immediately change and apply the specified index definition field in the current repository configuration to the new value.
|
void |
changeIndexProviderField(MappedAttributeDefinition defn,
org.jboss.dmr.ModelNode newValue,
String indexProviderName)
Immediately change and apply the specified index provider field in the current repository configuration to the new value.
|
void |
changeSequencerField(MappedAttributeDefinition defn,
org.jboss.dmr.ModelNode newValue,
String sequencerName)
Immediately change and apply the specified sequencer field in the current repository configuration to the new value.
|
void |
changeSourceField(MappedAttributeDefinition defn,
org.jboss.dmr.ModelNode newValue,
String sourceName)
Immediately change and apply the specified external source field in the current repository configuration to the new value.
|
void |
changeTextExtractorField(MappedAttributeDefinition defn,
org.jboss.dmr.ModelNode newValue,
String extractorName)
Immediately change and apply the specified extractor field in the current repository configuration to the new value.
|
org.jboss.msc.value.InjectedValue<BinaryStorage> |
getBinaryStorageInjector() |
CacheContainer |
getCacheContainer(String name)
Get the cache container with the given name.
|
org.jboss.msc.value.InjectedValue<CacheContainer> |
getCacheManagerInjector() |
ClassLoader |
getClassLoader(ClassLoader fallbackLoader,
String... classpathEntries)
Get a classloader given the supplied set of logical classpath entries, which the implementation can interpret however it
needs.
|
org.jboss.msc.value.InjectedValue<String> |
getDataDirectoryPathInjector() |
org.jboss.msc.value.InjectedValue<ModeShapeEngine> |
getEngineInjector() |
org.jboss.msc.value.InjectedValue<org.jboss.modules.ModuleLoader> |
getModuleLoaderInjector() |
org.jboss.msc.value.InjectedValue<RepositoryStatistics> |
getMonitorInjector() |
JcrRepository |
getValue() |
org.jboss.msc.value.InjectedValue<CacheContainer> |
getWorkspacesCacheContainerInjector() |
String |
repositoryName() |
void |
setJournalPath(String journalPath)
Sets the path (relative) of the journal.
|
void |
setJournalRelativeTo(String journalRelativeTo)
Sets the base folder of the journal
|
void |
shutdown()
Shutdown this environment, allowing it to reclaim any resources.
|
void |
start(org.jboss.msc.service.StartContext arg0) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final String CONTENT_CONTAINER_NAME
public static final String BINARY_STORAGE_CONTAINER_NAME
public static final String WORKSPACES_CONTAINER_NAME
public RepositoryService(RepositoryConfiguration repositoryConfiguration)
public JcrRepository getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<JcrRepository>IllegalStateExceptionIllegalArgumentExceptionpublic CacheContainer getCacheContainer(String name)
EnvironmentgetCacheContainer in interface Environmentname - the name of the cache container; may be nullpublic ClassLoader getClassLoader(ClassLoader fallbackLoader, String... classpathEntries)
EnvironmentgetClassLoader in interface EnvironmentfallbackLoader - the classloader that should be used is the fallback class loaderclasspathEntries - the logical classpath entriespublic void shutdown()
Environmentshutdown in interface Environmentpublic final String repositoryName()
public void start(org.jboss.msc.service.StartContext arg0)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<JcrRepository>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<JcrRepository>public void changeField(MappedAttributeDefinition defn, org.jboss.dmr.ModelNode newValue) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn - the attribute definition for the value; may not be nullnewValue - the new string valueRepositoryException - if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model nodepublic void changeIndexProviderField(MappedAttributeDefinition defn, org.jboss.dmr.ModelNode newValue, String indexProviderName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn - the attribute definition for the value; may not be nullnewValue - the new string valueindexProviderName - the name of the index providerRepositoryException - if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model nodepublic void changeIndexDefinitionField(MappedAttributeDefinition defn, org.jboss.dmr.ModelNode newValue, String indexDefinitionName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn - the attribute definition for the value; may not be nullnewValue - the new string valueindexDefinitionName - the name of the index definitionRepositoryException - if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model nodepublic void changeSequencerField(MappedAttributeDefinition defn, org.jboss.dmr.ModelNode newValue, String sequencerName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn - the attribute definition for the value; may not be nullnewValue - the new string valuesequencerName - the name of the sequencerRepositoryException - if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model nodepublic void changeSourceField(MappedAttributeDefinition defn, org.jboss.dmr.ModelNode newValue, String sourceName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn - the attribute definition for the value; may not be nullnewValue - the new string valuesourceName - the name of the sourceRepositoryException - if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model nodepublic void changeTextExtractorField(MappedAttributeDefinition defn, org.jboss.dmr.ModelNode newValue, String extractorName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn - the attribute definition for the value; may not be nullnewValue - the new string valueextractorName - the name of the sequencerRepositoryException - if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model nodepublic void changeAuthenticatorField(MappedAttributeDefinition defn, org.jboss.dmr.ModelNode newValue, String authenticatorName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn - the attribute definition for the value; may not be nullnewValue - the new string valueauthenticatorName - the name of the authenticatorRepositoryException - if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model nodepublic org.jboss.msc.value.InjectedValue<BinaryStorage> getBinaryStorageInjector()
public org.jboss.msc.value.InjectedValue<RepositoryStatistics> getMonitorInjector()
null)public org.jboss.msc.value.InjectedValue<ModeShapeEngine> getEngineInjector()
ModeShapeEngine referencepublic org.jboss.msc.value.InjectedValue<CacheContainer> getCacheManagerInjector()
public org.jboss.msc.value.InjectedValue<String> getDataDirectoryPathInjector()
public org.jboss.msc.value.InjectedValue<org.jboss.modules.ModuleLoader> getModuleLoaderInjector()
public org.jboss.msc.value.InjectedValue<CacheContainer> getWorkspacesCacheContainerInjector()
public void setJournalPath(String journalPath)
journalPath - a String, may not be nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.