com.sun.jdmk
Class RepositorySupport

java.lang.Object
  extended by com.sun.jdmk.RepositorySupport
All Implemented Interfaces:
Repository

Deprecated. This class is kept as a utility class, though it is no longer used. It may not be supported in future releases.

public class RepositorySupport
extends Object
implements Repository

The RepositorySupport implements the Repository interface. This repository does not support persistency.


Constructor Summary
RepositorySupport()
          Deprecated. The default constructor.
 
Method Summary
 void addMBean(Object object, ObjectName name)
          Deprecated. Stores an MBean associated with its object name in the repository.
 boolean contains(ObjectName name)
          Deprecated. Checks whether an MBean of the name specified is already stored in the repository.
 Integer getCount()
          Deprecated. Gets the number of MBeans stored in the repository.
 String getDefaultDomain()
          Deprecated. Gets the name of the domain currently used by default in the repository.
 boolean isFiltering()
          Deprecated. Indicates whether or not the Repository Service supports filtering.
 Set query(ObjectName pattern, QueryExp query)
          Deprecated. Selects and retrieves the list of MBeans whose names match the specified object name pattern and which match the specified query expression (optionally).
 void remove(ObjectName name)
          Deprecated. Removes an MBean from the repository.
 Object retrieve(ObjectName name)
          Deprecated. Retrieves the MBean of the name specified from the repository.
 void setConfigParameters(ArrayList configParameters)
          Deprecated. 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.
 void setDefaultDomain(String domain)
          Deprecated. Sets the name of the domain currently used by default in the repository.
static boolean wildmatch(char[] str, char[] pat)
          Deprecated. Match a string against a shell-style pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositorySupport

public RepositorySupport()
Deprecated. 
The default constructor.

Method Detail

wildmatch

public static boolean wildmatch(char[] str,
                                char[] pat)
Deprecated. 
Match a string against a shell-style pattern. The only pattern characters recognised are ?, standing for any one character, and *, standing for any string of characters, including the empty string.

Parameters:
str - the string to match, as a character array.
pat - the pattern to match the string against, as a character array.
Returns:
true if and only if the string matches the pattern.

setConfigParameters

public void setConfigParameters(ArrayList configParameters)
Deprecated. 
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.

Specified by:
setConfigParameters in interface Repository
Parameters:
configParameters - An list containing the configuration parameters needed by the specific Repository Service implementation.

isFiltering

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

Specified by:
isFiltering in interface Repository
Returns:
true if filtering is supported, false otherwise.

addMBean

public void addMBean(Object object,
                     ObjectName name)
              throws InstanceAlreadyExistsException
Deprecated. 
Stores an MBean associated with its object name in the repository.

Specified by:
addMBean in interface Repository
Parameters:
object - MBean to be stored in the repository.
name - MBean object name.
Throws:
InstanceAlreadyExistsException - The MBean is already stored in the repository.

contains

public boolean contains(ObjectName name)
Deprecated. 
Checks whether an MBean of the name specified is already stored in the repository.

Specified by:
contains in interface Repository
Parameters:
name - name of the MBean to find.
Returns:
true if the MBean is stored in the repository, false otherwise.

retrieve

public Object retrieve(ObjectName name)
Deprecated. 
Retrieves the MBean of the name specified from the repository. The object name must match exactly.

Specified by:
retrieve in interface Repository
Parameters:
name - name of the MBean to retrieve.
Returns:
The retrieved MBean if it is contained in the repository, null otherwise.

query

public Set query(ObjectName pattern,
                 QueryExp query)
Deprecated. 
Selects and retrieves the list of MBeans whose names match the specified object name pattern and which match the specified query expression (optionally).

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

remove

public void remove(ObjectName name)
            throws InstanceNotFoundException
Deprecated. 
Removes an MBean from the repository.

Specified by:
remove in interface Repository
Parameters:
name - name of the MBean to remove.
Throws:
InstanceNotFoundException - The MBean does not exist in the repository.

getCount

public Integer getCount()
Deprecated. 
Gets the number of MBeans stored in the repository.

Specified by:
getCount in interface Repository
Returns:
Number of MBeans.

getDefaultDomain

public String getDefaultDomain()
Deprecated. 
Gets the name of the domain currently used by default in the repository.

Specified by:
getDefaultDomain in interface Repository
Returns:
A string giving the name of the default domain name.

setDefaultDomain

public void setDefaultDomain(String domain)
Deprecated. 
Sets the name of the domain currently used by default in the repository.

Specified by:
setDefaultDomain in interface Repository
Parameters:
domain - the default domain name.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.