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.
-
contains(Object)
- Checks whether an object is already stored in the Object Repository.
-
contains(ObjectName)
- Checks whether an object is already stored in the Object Repository.
-
getDomain()
- Gets the domain name associated with the repository.
-
getNbElements()
- Returns the number of objects currently stored in the Object
Repository.
-
getObject(ObjectName, QueryExp)
- Gets handles on managed objects controlled by the Object Repository.
-
isPersistent()
- Indicates whether or not the Object Repository offers persistency.
-
isQuerySrv()
- Indicates whether or not the Object Repository supports filtering.
-
register(Object, ObjectName)
- Registers a named object in the Object Repository.
-
registerDB(Object, ObjectName)
- Registers a named object with persistency in the Object Repository.
-
retrieve(ObjectName)
- Checks whether an object with a specific name is contained in the
Object Repository.
-
setConfig(Vector)
- The method is only required when configuring JDBC implementations
of a repository.
-
setDomain(String)
- Sets the domain name associated with the repository.
-
unregister(Object)
- Removes a reference from the Object Repository using the object
reference.
-
unregister(ObjectName)
- Removes a reference from the Object Repository using the object
name.
-
update(Object, ObjectName)
- Updates an object in the Object Repository.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
isPersistent
public abstract boolean isPersistent()
- Indicates whether or not the Object Repository offers persistency.
- Returns:
- True if persistency is supported, false otherwise.
getDomain
public abstract String getDomain()
- Gets the domain name associated with the repository.
- Returns:
- The server's domain name.
setDomain
public abstract void setDomain(String domain)
- Sets the domain name associated with the repository.
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.
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