org.openanzo.client
Class DatasetServiceProperties

java.lang.Object
  extended by org.openanzo.client.DatasetServiceProperties

public class DatasetServiceProperties
extends java.lang.Object

Configuration properties for the local client stack.

Author:
Generated Source from org.openanzo.utils.properties.jet

Field Summary
static java.lang.String KEY_IMMEDIATE_EVENTS_ENABLED
          Key for property "org.openanzo.local.immediateEvents.enabled" Fire immediate graph events to listeners upon committing transaction to queue.
static java.lang.String KEY_PERSISTENCE_ENABLED
          Key for property "org.openanzo.local.persistence.enabled" This determines if the data retrieved into the local cache and local transactions are persisted to disk Server:Not Used Client:If true, the client stack uses a relational database to store statements, as opposed to an in memory store if false. Embedded:Should not be used, since an embedded client is already directly accessing the server copy of the data.
 
Constructor Summary
DatasetServiceProperties()
           
 
Method Summary
static boolean getImmediateEventsEnabled(java.util.Properties properties)
          Get KEY_IMMEDIATE_EVENTS_ENABLED property from properties
static boolean getPersistenceEnabled(java.util.Properties properties)
          Get KEY_PERSISTENCE_ENABLED property from properties
static void setImmediateEventsEnabled(java.util.Properties properties, boolean immediateEventsEnabled)
          Set KEY_IMMEDIATE_EVENTS_ENABLED property to immediateEvents.enabled in properties
static void setPersistenceEnabled(java.util.Properties properties, boolean persistenceEnabled)
          Set KEY_PERSISTENCE_ENABLED property to persistence.enabled in properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_PERSISTENCE_ENABLED

public static final java.lang.String KEY_PERSISTENCE_ENABLED
Key for property "org.openanzo.local.persistence.enabled" This determines if the data retrieved into the local cache and local transactions are persisted to disk
  • Server:Not Used
  • Client:If true, the client stack uses a relational database to store statements, as opposed to an in memory store if false.
  • Embedded:Should not be used, since an embedded client is already directly accessing the server copy of the data.
  • See Also:
    Constant Field Values

    KEY_IMMEDIATE_EVENTS_ENABLED

    public static final java.lang.String KEY_IMMEDIATE_EVENTS_ENABLED
    Key for property "org.openanzo.local.immediateEvents.enabled" Fire immediate graph events to listeners upon committing transaction to queue. Since events are fired when committed to the queue and not the server, it is still possible for transaction to fail when committed on the server, so graph contents may not reflect the same state as events might imply.
  • Server:Not Used
  • Client:If true, events are fire immediately, irrespective of if the transaction is successfully committed on the server. Can be used if a UI depends soley on the events to update its state.
  • Embedded:Shouldn't be needed, since committing within an embedded client can directly update the server and need need to run background replications.
  • See Also:
    Constant Field Values
    Constructor Detail

    DatasetServiceProperties

    public DatasetServiceProperties()
    Method Detail

    getPersistenceEnabled

    public static boolean getPersistenceEnabled(java.util.Properties properties)
    Get KEY_PERSISTENCE_ENABLED property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_PERSISTENCE_ENABLED,or "false" if not present

    setPersistenceEnabled

    public static void setPersistenceEnabled(java.util.Properties properties,
                                             boolean persistenceEnabled)
    Set KEY_PERSISTENCE_ENABLED property to persistence.enabled in properties

    Parameters:
    properties - containing configuration data
    persistenceEnabled - value for persistence.enabled

    getImmediateEventsEnabled

    public static boolean getImmediateEventsEnabled(java.util.Properties properties)
    Get KEY_IMMEDIATE_EVENTS_ENABLED property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_IMMEDIATE_EVENTS_ENABLED,or "false" if not present

    setImmediateEventsEnabled

    public static void setImmediateEventsEnabled(java.util.Properties properties,
                                                 boolean immediateEventsEnabled)
    Set KEY_IMMEDIATE_EVENTS_ENABLED property to immediateEvents.enabled in properties

    Parameters:
    properties - containing configuration data
    immediateEventsEnabled - value for immediateEvents.enabled


    Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.