All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.jaw.reference.agent.services.MoRepSrvIf

public interface MoRepSrvIf
extends Serializable
This interface provides a means for accessing a local Managed Object Repository.

A Managed Object Repository contains references to managed object instances. Objects stored in the Object Repository are objects that can be managed.

A Managed Object Repository is used by the Common Management Framework for storing and retrieving objects to be managed.


Method Index

 o contains(Object)
Checks whether an object is already stored in the Object Repository.
 o contains(ObjectName)
Checks whether an object is already stored in the Object Repository.
 o getDomain()
Gets the domain name associated with the repository.
 o getNbElements()
Returns the number of objects currently stored in the Object Repository.
 o getObject(ObjectName, QueryExp)
Gets handles on managed objects controlled by the Object Repository.
 o isPersistent()
Indicates whether or not the Object Repository offers persistency.
 o isQuerySrv()
Indicates whether or not the Object Repository supports filtering.
 o register(Object, ObjectName)
Registers a named object in the Object Repository.
 o registerDB(Object, ObjectName)
Registers a named object with persistency in the Object Repository.
 o retrieve(ObjectName)
Checks whether an object with a specific name is contained in the Object Repository.
 o setConfig(Vector)
The method is only required when configuring JDBC implementations of a repository.
 o setDomain(String)
Sets the domain name associated with the repository.
 o unregister(Object)
Removes a reference from the Object Repository using the object reference.
 o unregister(ObjectName)
Removes a reference from the Object Repository using the object name.
 o update(Object, ObjectName)
Updates an object in the Object Repository.

Methods

 o setConfig
 public abstract void setConfig(Vector params)
The method is only required when configuring JDBC implementations of a repository. The purpose of the method is to provide a unify way of configuring different repository implemenations.

Parameters:
params - a vector containing the different configuration parameters of the repository.
 o register
 public abstract void register(Object object,
                               ObjectName name) throws IllegalArgumentException, InstanceAlreadyExistException
Registers a named object in the Object Repository.

Parameters:
object - Object to be added to the repository.
name - Name of the object.
Throws: IllegalArgumentException
One of the parameters in the call to the method is invalid.
Throws: InstanceAlreadyExistException
The instance is already registered in the object repository.
 o registerDB
 public abstract void registerDB(Object object,
                                 ObjectName name) throws IllegalArgumentException, InstanceAlreadyExistException
Registers a named object with persistency in the Object Repository.

Parameters:
object - Object to be added to the repository.
name - Name of the object.
Throws: IllegalArgumentException
One of the parameters in the call to the method is invalid.
Throws: InstanceAlreadyExistException
The instance is already registered in the object repository.
 o update
 public abstract void update(Object object,
                             ObjectName name) throws InstanceNotFoundException
Updates an object in the Object Repository.

Parameters:
object - The new object.
name - Name of the object.
Throws: InstanceNotFoundException
Object not found in repository.
 o unregister
 public abstract void unregister(Object object) throws InstanceNotFoundException
Removes a reference from the Object Repository using the object reference.

Parameters:
object - Object to be removed from the repository.
Throws: InstanceNotFoundException
Object not found in repository.
 o unregister
 public abstract void unregister(ObjectName name) throws InstanceNotFoundException
Removes a reference from the Object Repository using the object name.

Parameters:
object - Object to be removed from the repository.
Throws: InstanceNotFoundException
Object not found in repository.
 o contains
 public abstract boolean contains(Object object)
Checks whether an object is already stored in the Object Repository.

Parameters:
object - The object to be checked for.
Returns:
True if the object is part of the repository, false otherwise.
 o contains
 public abstract boolean contains(ObjectName name)
Checks whether an object is already stored in the Object Repository.

Parameters:
objectName - The object to be checked for.
Returns:
True if the object is part of the repository, false otherwise.
 o retrieve
 public abstract Object retrieve(ObjectName name)
Checks whether an object with a specific name is contained in the Object Repository.

Parameters:
name - The name to be retrieved.
Returns:
The object if the object is part of the repository, null otherwise.
 o isQuerySrv
 public abstract boolean isQuerySrv()
Indicates whether or not the Object Repository supports filtering. If the Object Repository does not support filtering, then the Common Management Framework (CMF) will perform filtering itself on behalf of the object repository.

Returns:
True if the filtering is supported, false otherwise.
 o isPersistent
 public abstract boolean isPersistent()
Indicates whether or not the Object Repository offers persistency.

Returns:
True if persistency is supported, false otherwise.
 o getDomain
 public abstract String getDomain()
Gets the domain name associated with the repository.

Returns:
The server's domain name.
 o setDomain
 public abstract void setDomain(String domain)
Sets the domain name associated with the repository.

 o getObject
 public abstract Vector getObject(ObjectName name,
                                  QueryExp query)
Gets handles on managed objects controlled by the Object Repository.

Parameters:
name - Instance name of the object to be retrieved.
query - Query to apply when selecting objects.
Returns:
The list of selected managed objects.
 o getNbElements
 public abstract Integer getNbElements()
Returns the number of objects currently stored in the Object Repository.

Returns:
The number of objects.

All Packages  Class Hierarchy  This Package  Previous  Next  Index