FileDocCategorySizeDatePackage
Repository.javaAPI DocJava SE 5 API3864Fri Aug 26 14:55:00 BST 2005com.sun.jmx.mbeanserver

Repository

public interface Repository
The Repository interface provides local access to the implementation of Repository Service in use in the agent.
since
1.5
since.unbundled
JMX RI 1.2

Fields Summary
Constructors Summary
Methods Summary
public voidaddMBean(java.lang.Object object, javax.management.ObjectName name)
Stores an MBean associated with its object name in the repository.

param
object MBean to be stored in the repository.
param
name MBean object name.
exception
InstanceAlreadyExistsException The MBean is already stored in the repository.

public booleancontains(javax.management.ObjectName name)
Checks whether an MBean of the name specified is already stored in the repository.

param
name name of the MBean to find.
return
true if the MBean is stored in the repository, false otherwise.

public java.lang.IntegergetCount()
Gets the number of MBeans stored in the repository.

return
Number of MBeans.

public java.lang.StringgetDefaultDomain()
Gets the name of the domain currently used by default in the repository.

return
A string giving the name of the default domain name.

public java.lang.String[]getDomains()
Returns the list of domains in which any MBean is currently registered.

since.unbundled
JMX RI 1.2

public booleanisFiltering()
Indicates whether or not the Repository Service supports filtering. If the Repository Service does not support filtering, the MBean Server will perform filtering.

return
true if filtering is supported, false otherwise.

public java.util.Setquery(javax.management.ObjectName name, javax.management.QueryExp query)
Selects and retrieves the list of MBeans whose names match the specified object name pattern and which match the specified query expression (optionally).

param
name The name of the MBean(s) to retrieve - may be a specific object or a name pattern allowing multiple MBeans to be selected.
param
query query expression to apply when selecting objects - this parameter will be ignored when the Repository Service does not support filtering.
return
The list of MBeans selected. There may be zero, one or many MBeans returned in the Set.

public voidremove(javax.management.ObjectName name)
Removes an MBean from the repository.

param
name name of the MBean to remove.
exception
InstanceNotFoundException The MBean does not exist in the repository.

public java.lang.Objectretrieve(javax.management.ObjectName name)
Retrieves the MBean of the name specified from the repository. The object name must match exactly.

param
name name of the MBean to retrieve.
return
The retrieved MBean if it is contained in the repository, null otherwise.

public voidsetConfigParameters(java.util.ArrayList configParameters)
The purpose of this method is to provide a unified way to provide whatever configuration information is needed by the specific underlying implementation of the repository.

param
configParameters An list containing the configuration parameters needed by the specific Repository Service implementation.