org.jboss.messaging.core.paging.impl
Class PagingStoreFactoryNIO

java.lang.Object
  extended by org.jboss.messaging.core.paging.impl.PagingStoreFactoryNIO
All Implemented Interfaces:
PagingStoreFactory

public class PagingStoreFactoryNIO
extends java.lang.Object
implements PagingStoreFactory

Integration point between Paging and NIO

Author:
Clebert Suconic

Constructor Summary
PagingStoreFactoryNIO(java.lang.String directory, ExecutorFactory executorFactory)
           
 
Method Summary
 java.util.concurrent.Executor getGlobalDepagerExecutor()
           
 SequentialFileFactory newFileFactory(SimpleString destinationName)
           
protected  SequentialFileFactory newFileFactory(java.lang.String directoryName)
           
 PagingStore newStore(SimpleString destinationName, AddressSettings settings)
           
 java.util.List<PagingStore> reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository)
           
 void setPagingManager(PagingManager pagingManager)
           
 void setPostOffice(PostOffice postOffice)
           
 void setStorageManager(StorageManager storageManager)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagingStoreFactoryNIO

public PagingStoreFactoryNIO(java.lang.String directory,
                             ExecutorFactory executorFactory)
Method Detail

getGlobalDepagerExecutor

public java.util.concurrent.Executor getGlobalDepagerExecutor()
Specified by:
getGlobalDepagerExecutor in interface PagingStoreFactory

stop

public void stop()
Specified by:
stop in interface PagingStoreFactory

newStore

public PagingStore newStore(SimpleString destinationName,
                            AddressSettings settings)
                     throws java.lang.Exception
Specified by:
newStore in interface PagingStoreFactory
Throws:
java.lang.Exception

newFileFactory

public SequentialFileFactory newFileFactory(SimpleString destinationName)
                                     throws java.lang.Exception
Specified by:
newFileFactory in interface PagingStoreFactory
Parameters:
storeName -
Returns:
Throws:
java.lang.Exception

setPagingManager

public void setPagingManager(PagingManager pagingManager)
Specified by:
setPagingManager in interface PagingStoreFactory

setStorageManager

public void setStorageManager(StorageManager storageManager)
Specified by:
setStorageManager in interface PagingStoreFactory

setPostOffice

public void setPostOffice(PostOffice postOffice)
Specified by:
setPostOffice in interface PagingStoreFactory

reloadStores

public java.util.List<PagingStore> reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository)
                                         throws java.lang.Exception
Specified by:
reloadStores in interface PagingStoreFactory
Throws:
java.lang.Exception

newFileFactory

protected SequentialFileFactory newFileFactory(java.lang.String directoryName)


Copyright © 2006 JBoss Inc. All Rights Reserved.