org.jboss.system.server.profileservice.repository.clustered.local.file
Class FilesystemLocalContentManagerFactory

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.clustered.local.file.FilesystemLocalContentManagerFactory
All Implemented Interfaces:
LocalContentManagerFactory<FileBasedSynchronizationActionContext>

public class FilesystemLocalContentManagerFactory
extends Object
implements LocalContentManagerFactory<FileBasedSynchronizationActionContext>

LocalContentManagerFactory that creates a FilesystemLocalContentManager.

Version:
$Revision: $
Author:
Brian Stansberry

Constructor Summary
FilesystemLocalContentManagerFactory()
           
 
Method Summary
 boolean accepts(Collection<URI> uris)
          Indicates whether this factory can create a LocalContentManager that works with the given collection of URIs.
 LocalContentManager<FileBasedSynchronizationActionContext> getLocalContentManager(Map<String,URI> namedURIMap, org.jboss.profileservice.spi.ProfileKey profileKey, String localNodeName)
          Gets a LocalContentManager for the given set of URIs.
 ContentMetadataPersister getMetadataPersister()
           
 URI getTempDirURI()
           
 void setMetadataPersister(ContentMetadataPersister metadataPersister)
           
 void setTempDirURI(URI tempDirURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesystemLocalContentManagerFactory

public FilesystemLocalContentManagerFactory()
Method Detail

getMetadataPersister

public ContentMetadataPersister getMetadataPersister()

setMetadataPersister

public void setMetadataPersister(ContentMetadataPersister metadataPersister)

getTempDirURI

public URI getTempDirURI()

setTempDirURI

public void setTempDirURI(URI tempDirURI)

accepts

public boolean accepts(Collection<URI> uris)
Description copied from interface: LocalContentManagerFactory
Indicates whether this factory can create a LocalContentManager that works with the given collection of URIs.

Specified by:
accepts in interface LocalContentManagerFactory<FileBasedSynchronizationActionContext>
Parameters:
uris - the URIs. Cannot be null
Returns:
true if a persister can be created, false otherwise

getLocalContentManager

public LocalContentManager<FileBasedSynchronizationActionContext> getLocalContentManager(Map<String,URI> namedURIMap,
                                                                                         org.jboss.profileservice.spi.ProfileKey profileKey,
                                                                                         String localNodeName)
Description copied from interface: LocalContentManagerFactory
Gets a LocalContentManager for the given set of URIs.

Specified by:
getLocalContentManager in interface LocalContentManagerFactory<FileBasedSynchronizationActionContext>
Parameters:
namedURIMap - the URIs to be managed, keyed by a unique identifier
profileKey - key of the Profile associated with the content
localNodeName - cluster-wide unique name for this node
Returns:
the content manager


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.