org.ow2.petals.registry.api.repository
Interface Repository

All Superinterfaces:
CoreRepository, LifeCycle, Operations

public interface Repository
extends CoreRepository

The repository interface to be implemented to really store the resource

Author:
Christophe HAMERLING - eBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.petals.registry.api.lifecycle.LifeCycle
LifeCycle.STATE
 
Method Summary
 int clean()
          Clean the repository ie delete all the entries
 long size()
          Get the repository size ie the number of entries
 long size(java.lang.String path)
          Get the number of entries under the given path
 
Methods inherited from interface org.ow2.petals.registry.api.lifecycle.LifeCycle
getState, init, isInitialized, isNotInitialized, isRunning, isStarted, isStopped, start, stop
 
Methods inherited from interface org.ow2.petals.registry.api.repository.Operations
deleteDataFromRegistry, keepOnly
 
Methods inherited from interface org.ow2.petals.registry.api.Operations
delete, get, getAll, put, query
 

Method Detail

size

long size()
          throws RegistryException
Get the repository size ie the number of entries

Throws:
RegistryException

size

long size(java.lang.String path)
          throws RegistryException
Get the number of entries under the given path

Parameters:
path -
Returns:
Throws:
RegistryException

clean

int clean()
          throws RegistryException
Clean the repository ie delete all the entries

Returns:
the number of deleted entries
Throws:
RegistryException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.