nextgrid.api.ram
Interface Registry

All Superinterfaces:
java.io.Serializable

public interface Registry
extends java.io.Serializable

Type description.

Author:
Rodrigo Ruiz

Method Summary
 void delete(Process process)
          Removes a process from a registry.
 void delete(java.net.URI uri)
          Removes a process from a registry.
 Process get(java.net.URI uri)
          Retrieves a process from a registry.
 java.util.Collection<Process> query(java.lang.String query, java.lang.String lang)
          Performs a query in a given language.
 java.net.URI register(Process process)
          Registers a process.
 boolean supports(java.lang.String lang)
          Gets if this registry supports the given syntax.
 

Method Detail

register

java.net.URI register(Process process)
                      throws RegistryException
Registers a process.

Parameters:
process - The process to register
Returns:
An URI that can be used as an identifier
Throws:
RegistryException - If an error occurs

delete

void delete(Process process)
            throws RegistryException
Removes a process from a registry.

Parameters:
process - The process to remove
Throws:
RegistryException - If an error occurs

delete

void delete(java.net.URI uri)
            throws RegistryException
Removes a process from a registry.

Parameters:
uri - The process identifier
Throws:
RegistryException - If an error occurs

get

Process get(java.net.URI uri)
            throws RegistryException
Retrieves a process from a registry.

Parameters:
uri - The process identifier
Returns:
The retrieved process
Throws:
RegistryException - If an error occurs

query

java.util.Collection<Process> query(java.lang.String query,
                                    java.lang.String lang)
                                    throws RegistryException
Performs a query in a given language.

Parameters:
query - The query text
lang - The query language
Returns:
A collection of results
Throws:
RegistryException - If an error occurs

supports

boolean supports(java.lang.String lang)
Gets if this registry supports the given syntax.

Parameters:
lang - The identifier of the query language syntax
Returns:
true if it supports the query language, false otherwise


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.