org.apache.activemq.apollo.broker.store

DelayingStoreSupport

trait DelayingStoreSupport extends Store with BaseService

Support class for implementing Stores which delay doing updates so that it can support potentially be canceling the update due to subsequent operation.

linear super types: BaseService, Dispatched, Store, ServiceTrait, Service, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. DelayingStoreSupport
  2. BaseService
  3. Dispatched
  4. Store
  5. ServiceTrait
  6. Service
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. class DelayableUOW extends BaseRetained with StoreUOW

Value Members

  1. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. var _serviceFailure : Exception

    attributes: protected
    definition classes: BaseService
  9. var _service_state : State

    attributes: protected
    definition classes: BaseService
  10. def _start (on_completed: Runnable) : Unit

    attributes: protected abstract
    definition classes: BaseService
  11. def _stop (on_completed: Runnable) : Unit

    attributes: protected abstract
    definition classes: BaseService
  12. def add_queue (record: QueueRecord)(callback: (Boolean) ⇒ Unit) : Unit

    Adds a queue.

    Adds a queue.

    This method auto generates and assigns the key field of the queue record and returns true if it succeeded.

    attributes: abstract
    definition classes: Store
  13. val aggregator : AggregatingExecutor

  14. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  15. def assert_executing : Unit

    attributes: protected
    definition classes: Dispatched
  16. var canceled_add_message : Long

  17. var canceled_enqueue : Long

  18. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  19. var commit_latency : TimeMetric

  20. val commit_latency_counter : TimeCounter

  21. def configure (config: StoreDTO, reporter: Reporter) : Unit

    Supplies configuration data to the Store.

    Supplies configuration data to the Store. This will be called before the store is started, but may also occur after the the Store is started.

    attributes: abstract
    definition classes: Store
  22. def create_uow () : DelayableUOW

    Creates a store uow which is used to perform persistent operations as unit of work.

    Creates a store uow which is used to perform persistent operations as unit of work.

    definition classes: DelayingStoreSupportStore
  23. var delayedUOWs : HashMap[Int, DelayableUOW]

  24. val dispatch_queue : DispatchQueue

    definition classes: DelayingStoreSupport → Dispatched
  25. def drain_flushes : Unit

  26. def drain_uows : Unit

  27. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  28. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  29. def export_pb (streams: StreamManager[OutputStream]) : org.apache.activemq.apollo.util.Result[org.apache.activemq.apollo.util.Zilch,String] @scala.util.continuations.cpsParam[Unit,Unit]

    Exports the contents of the store to the provided streams.

    Exports the contents of the store to the provided streams. Each stream should contain a list of framed protobuf objects with the corresponding object types.

    attributes: abstract
    definition classes: Store
  30. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  31. def flush_delay : Long

    attributes: protected abstract
  32. var flush_latency : TimeMetric

  33. val flush_latency_counter : TimeCounter

  34. def flush_message (messageKey: Long)(cb: ⇒ Unit) : Unit

    Removes a the delivery associated with the provided from any internal buffers/caches.

    Removes a the delivery associated with the provided from any internal buffers/caches. The callback is executed once, the message is no longer buffered.

    definition classes: DelayingStoreSupportStore
  35. val flush_source : CustomDispatchSource[Int, ListBuffer[Int]]

  36. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  37. def get_last_queue_key (callback: (Option[Long]) ⇒ Unit) : Unit

    Ges the last queue key identifier stored.

    Ges the last queue key identifier stored.

    attributes: abstract
    definition classes: Store
  38. def get_next_msg_key : Long

    attributes: protected abstract
  39. def get_queue (queueKey: Long)(callback: (Option[QueueRecord]) ⇒ Unit) : Unit

    Loads the queue information for a given queue key.

    Loads the queue information for a given queue key.

    attributes: abstract
    definition classes: Store
  40. def get_store_status (callback: (StoreStatusDTO) ⇒ Unit) : Unit

    attributes: abstract
    definition classes: Store
  41. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  42. def import_pb (streams: StreamManager[InputStream]) : org.apache.activemq.apollo.util.Result[org.apache.activemq.apollo.util.Zilch,String] @scala.util.continuations.cpsParam[Unit,Unit]

    Imports a previously exported set of streams.

    Imports a previously exported set of streams. This deletes any previous data in the store.

    attributes: abstract
    definition classes: Store
  43. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  44. def key (x: QueueEntryRecord) : (Long, Long)

  45. def list_queue_entries (queueKey: Long, firstSeq: Long, lastSeq: Long)(callback: (Seq[QueueEntryRecord]) ⇒ Unit) : Unit

    Loads all the queue entry records for the given queue id between the first and last provided queue sequences (inclusive).

    Loads all the queue entry records for the given queue id between the first and last provided queue sequences (inclusive).

    attributes: abstract
    definition classes: Store
  46. def list_queue_entry_ranges (queueKey: Long, limit: Int)(callback: (Seq[QueueEntryRange]) ⇒ Unit) : Unit

    Groups all the entries in the specified queue into ranges containing up limit entries big and returns those ranges.

    Groups all the entries in the specified queue into ranges containing up limit entries big and returns those ranges. Allows you to incrementally, load all the entries in a queue.

    attributes: abstract
    definition classes: Store
  47. def list_queues (callback: (Seq[Long]) ⇒ Unit) : Unit

    Gets a listing of all queue entry sequences previously added and reports them to the callback.

    Gets a listing of all queue entry sequences previously added and reports them to the callback.

    attributes: abstract
    definition classes: Store
  48. def load_message (messageKey: Long)(callback: (Option[MessageRecord]) ⇒ Unit) : Unit

    Loads a delivery with the associated id from persistent storage.

    Loads a delivery with the associated id from persistent storage.

    attributes: abstract
    definition classes: Store
  49. var message_load_batch_size : IntMetric

  50. val message_load_batch_size_counter : IntMetricCounter

  51. var message_load_latency : TimeMetric

  52. val message_load_latency_counter : TimeCounter

  53. var metric_canceled_enqueue_counter : Long

  54. var metric_canceled_message_counter : Long

  55. var metric_flushed_enqueue_counter : Long

  56. var metric_flushed_message_counter : Long

  57. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  58. var next_batch_id : IntCounter

  59. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  60. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  61. var pendingStores : HashMap[Long, MessageAction]

  62. var pending_enqueues : HashMap[(Long, Long), MessageAction]

  63. def purge (callback: ⇒ Unit) : Unit

    Removes all previously stored data.

    Removes all previously stored data.

    attributes: abstract
    definition classes: Store
  64. var range_load_latency : TimeMetric

  65. val range_load_latency_counter : TimeCounter

  66. def remove_queue (queueKey: Long)(callback: (Boolean) ⇒ Unit) : Unit

    Removes a queue.

    Removes a queue. Success is reported via the callback.

    attributes: abstract
    definition classes: Store
  67. def serviceFailure : Exception

    definition classes: BaseService
  68. def service_state : State

    definition classes: BaseService
  69. def start (on_completed: Runnable) : Unit

    attributes: final
    definition classes: BaseService → Service
  70. def start () : Unit

    attributes: final
    definition classes: BaseService → Service
  71. def start (func: ⇒ Unit) : Unit

    definition classes: ServiceTrait
  72. def stop (on_completed: Runnable) : Unit

    attributes: final
    definition classes: BaseService → Service
  73. def stop () : Unit

    attributes: final
    definition classes: BaseService → Service
  74. def stop (func: ⇒ Unit) : Unit

    definition classes: ServiceTrait
  75. def store (uows: Seq[DelayableUOW])(callback: ⇒ Unit) : Unit

    attributes: protected abstract
  76. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  77. implicit def toIntMetricDTO (m: IntMetric) : IntMetricDTO

    attributes: implicit
  78. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  79. implicit def toTimeMetricDTO (m: TimeMetric) : TimeMetricDTO

    attributes: implicit
  80. val uow_source : CustomDispatchSource[DelayableUOW, ListBuffer[DelayableUOW]]

  81. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  82. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  83. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  84. def zero_copy_buffer_allocator () : ZeroCopyBufferAllocator

    definition classes: Store

Inherited from BaseService

Inherited from Dispatched

Inherited from Store

Inherited from ServiceTrait

Inherited from Service

Inherited from AnyRef

Inherited from Any