gr.uoa.di.madgik.rr
Class RRContext

java.lang.Object
  extended by gr.uoa.di.madgik.rr.RRContext

public class RRContext
extends Object


Nested Class Summary
static class RRContext.DatastoreType
           
static class RRContext.ReadPolicy
           
static class RRContext.WritePolicy
           
 
Constructor Summary
protected RRContext()
           
 
Method Summary
 Long getBridgingPeriod()
           
 Boolean getClearDataStoreOnStartup()
           
 Set<String> getEditableTargets()
           
 Lock getExclusiveLock()
           
 javax.jdo.PersistenceManagerFactory getFactoryForRead(RRContext.DatastoreType persistencyType)
           
 javax.jdo.PersistenceManagerFactory getFactoryForWrite(RRContext.DatastoreType persistencyType)
           
 Set<String> getInMemoryTargets()
           
 String getLocalNodeHostname()
           
 String getLocalNodePort()
           
 javax.jdo.PersistenceManager getManagerForRead(RRContext.DatastoreType persistencyType)
           
 javax.jdo.PersistenceManager getManagerForWrite(RRContext.DatastoreType persistencyType)
           
 Set<String> getReadOnlyTargets()
           
 String getRepositoryProvider()
           
 Properties getRepositoryProviderConfig()
           
 Lock getSharedLock()
           
 Long getShortBridgingPeriod()
           
 Set<String> getUpdateTargets()
           
 boolean isDatastoreSupported(RRContext.DatastoreType datastore)
           
 boolean isDatastoreSupportedForRead(RRContext.DatastoreType datastore)
           
 boolean isDatastoreSupportedForWrite(RRContext.DatastoreType datastore)
           
 boolean isTargetInMemory(String target)
           
 void reset()
           
 void resetDT(RRContext.DatastoreType datastoretype)
           
 void setLocalNodeHostname(String localNodeHostname)
           
 void setLocalNodePort(String localNodePort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RRContext

protected RRContext()
             throws ResourceRegistryException
Throws:
ResourceRegistryException
Method Detail

getRepositoryProvider

public String getRepositoryProvider()

getRepositoryProviderConfig

public Properties getRepositoryProviderConfig()

getReadOnlyTargets

public Set<String> getReadOnlyTargets()

getEditableTargets

public Set<String> getEditableTargets()

getUpdateTargets

public Set<String> getUpdateTargets()

getInMemoryTargets

public Set<String> getInMemoryTargets()

setLocalNodeHostname

public void setLocalNodeHostname(String localNodeHostname)

getLocalNodeHostname

public String getLocalNodeHostname()
                            throws ResourceRegistryException
Throws:
ResourceRegistryException

setLocalNodePort

public void setLocalNodePort(String localNodePort)

getLocalNodePort

public String getLocalNodePort()
                        throws ResourceRegistryException
Throws:
ResourceRegistryException

isTargetInMemory

public boolean isTargetInMemory(String target)

getBridgingPeriod

public Long getBridgingPeriod()

getShortBridgingPeriod

public Long getShortBridgingPeriod()

getClearDataStoreOnStartup

public Boolean getClearDataStoreOnStartup()

getFactoryForRead

public javax.jdo.PersistenceManagerFactory getFactoryForRead(RRContext.DatastoreType persistencyType)
                                                      throws ResourceRegistryException
Throws:
ResourceRegistryException

getFactoryForWrite

public javax.jdo.PersistenceManagerFactory getFactoryForWrite(RRContext.DatastoreType persistencyType)
                                                       throws ResourceRegistryException
Throws:
ResourceRegistryException

getManagerForRead

public javax.jdo.PersistenceManager getManagerForRead(RRContext.DatastoreType persistencyType)
                                               throws ResourceRegistryException
Throws:
ResourceRegistryException

getManagerForWrite

public javax.jdo.PersistenceManager getManagerForWrite(RRContext.DatastoreType persistencyType)
                                                throws ResourceRegistryException
Throws:
ResourceRegistryException

isDatastoreSupportedForRead

public boolean isDatastoreSupportedForRead(RRContext.DatastoreType datastore)

isDatastoreSupportedForWrite

public boolean isDatastoreSupportedForWrite(RRContext.DatastoreType datastore)

isDatastoreSupported

public boolean isDatastoreSupported(RRContext.DatastoreType datastore)

getSharedLock

public Lock getSharedLock()

getExclusiveLock

public Lock getExclusiveLock()

reset

public void reset()
           throws ResourceRegistryException
Throws:
ResourceRegistryException

resetDT

public void resetDT(RRContext.DatastoreType datastoretype)
             throws ResourceRegistryException
Throws:
ResourceRegistryException


Copyright © 2013. All Rights Reserved.