Skip to content

IRepository Interface

sequenze edited this page Jun 15, 2017 · 8 revisions

Defines the methods that allow operations on multiple tuple spaces. These methods are used for supporting networked tuple spaces.

Inheritance Hierarchy

Object

Syntax

public abstract interface IRepository

Methods

Name                                           Description
AddGate(String) Adds a new Gate to the repository based on the provided connectionstring.
AddSpace(String,ISpace) Adds a new Space to the repository, identified by the specified parameter.
GetSpace(String) Returns the local instance of the space identified by the parameter.
Get(String,IPattern) Retrieves and removes the first tuple from the target Space, matching the specified pattern. The operation will block if no elements match.
Get(String,Object[]) Retrieves and removes the first tuple from the target Space, matching the specified pattern. The operation will block if no elements match.
GetP(String,IPattern) Retrieves and removes the first tuple from the target Space, matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match.
GetP(String,Object[]) Retrieves and removes the first tuple from the target Space, matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match.
GetAll(String,IPattern) Retrieves and removes all tuples from the target Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
GetAll(String,Object[]) Retrieves and removes all tuples from the target Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
Query(String,IPattern) Retrieves the first tuple from the target Space, matching the specified pattern. The operation will block if no elements match.
Query(String,Object[]) Retrieves the first tuple from the target Space, matching the specified pattern. The operation will block if no elements match.
QueryP(String,IPattern) Retrieves the first tuple from the target Space, matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match.
QueryP(String,Object[]) Retrieves the first tuple from the target Space, matching the specified pattern.The operation is non-blocking.The operation will return null if no elements match.
QueryAll(String,IPattern) Retrieves all tuples from the target Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
QueryAll(String,Object[]) Retrieves all tuples from the target Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
Put(String,ITuple) Inserts the tuple passed as argument into the target Space.
Put(String,Object[]) Inserts the tuple passed as argument into the target Space.

Remarks

IRepository is the base interface of all repositories.

See Also

ISpace, IPattern, ITuple

Clone this wiki locally