<commit_before>/*
 * JBoss, Home of Professional Open Source.
 * Copyright (C) 2008 Red Hat, Inc.
 * Copyright (C) 2000-2007 MetaMatrix, Inc.
 * Licensed to Red Hat, Inc. under one or more contributor 
 * license agreements.  See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 */

package com.metamatrix.admin.api.server;

import java.util.Collection;

import com.metamatrix.admin.api.core.CoreMonitoringAdmin;
import com.metamatrix.admin.api.exception.AdminException;


/**
 * Interface that exposes the MetaMatrix server for system monitoring.
 *
 * <p>Clients should <i>not</i> code directly to this interface but
 * should instead use {@link ServerAdmin}.</p>
 * @since 4.3
 */
public interface ServerMonitoringAdmin extends CoreMonitoringAdmin {

    /**
     * Get the hosts that correspond to the specified identifier pattern.
     *
     * @param hostIdentifier the unique identifier for for a {@link com.metamatrix.admin.api.objects.Host Host}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all hosts are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.Host Host}
     * @throws AdminException if there's a system error.
     * @since 4.3
     */
    Collection getHosts(String hostIdentifier) throws AdminException;

    /**
     * Get the processes that correspond to the specified identifier pattern.
     *
     * @param processIdentifier the unique identifier for for a {@link com.metamatrix.admin.api.objects.ProcessObject ProcessObject}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all Processes are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.ProcessObject ProcessObject}
     * @throws AdminException if there's a system error.
     * @since 4.3
     */
    Collection getProcesses(String processIdentifier) throws AdminException;

    /**
     * Get the Connection Pools that correspond to the specified identifer pattern.
     *
     * @param poolIdentifier the unique poolIdentifier for for a {@link com.metamatrix.admin.api.objects.ConnectionPool ConnectionPool}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all Connection Pools are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.ConnectionPool ConnectionPool}s
     * @throws AdminException if there's a system error.
     * @since 4.3
     */
    Collection getConnectionPools(String poolIdentifier) throws AdminException;

    /**
     * Get the Resources that correspond to the specified identifer pattern.
     *
     * @param resourceIdentifier the unique resourceIdentifier for for a {@link com.metamatrix.admin.api.objects.Resource Resource}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all Resources are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.Resource Resource}
     * @throws AdminException if there's a system error.
     * @since 4.3
     */
    Collection getResources(String resourceIdentifier) throws AdminException;

    /**
     * Get the {@link com.metamatrix.admin.api.objects.DQP DQP}s that correspond to the specified identifer pattern.
     *<commit_msg>FEDERATE-147 - Resource Connection Pool methods are being deprecated due to the servers use of the connection pool feature is being removed<commit_after>/*
 * JBoss, Home of Professional Open Source.
 * Copyright (C) 2008 Red Hat, Inc.
 * Copyright (C) 2000-2007 MetaMatrix, Inc.
 * Licensed to Red Hat, Inc. under one or more contributor 
 * license agreements.  See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 */

package com.metamatrix.admin.api.server;

import java.util.Collection;

import com.metamatrix.admin.api.core.CoreMonitoringAdmin;
import com.metamatrix.admin.api.exception.AdminException;


/**
 * Interface that exposes the MetaMatrix server for system monitoring.
 *
 * <p>Clients should <i>not</i> code directly to this interface but
 * should instead use {@link ServerAdmin}.</p>
 * @since 4.3
 */
public interface ServerMonitoringAdmin extends CoreMonitoringAdmin {

    /**
     * Get the hosts that correspond to the specified identifier pattern.
     *
     * @param hostIdentifier the unique identifier for for a {@link com.metamatrix.admin.api.objects.Host Host}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all hosts are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.Host Host}
     * @throws AdminException if there's a system error.
     * @since 4.3
     */
    Collection getHosts(String hostIdentifier) throws AdminException;

    /**
     * Get the processes that correspond to the specified identifier pattern.
     *
     * @param processIdentifier the unique identifier for for a {@link com.metamatrix.admin.api.objects.ProcessObject ProcessObject}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all Processes are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.ProcessObject ProcessObject}
     * @throws AdminException if there's a system error.
     * @since 4.3
     */
    Collection getProcesses(String processIdentifier) throws AdminException;

    /**
     * Get the Connection Pools that correspond to the specified identifer pattern.
     *
     * @param poolIdentifier the unique poolIdentifier for for a {@link com.metamatrix.admin.api.objects.ConnectionPool ConnectionPool}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all Connection Pools are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.ConnectionPool ConnectionPool}s
     * @throws AdminException if there's a system error.
     * @since 4.3
     * @deprecated 5.5.4
     */
    Collection getConnectionPools(String poolIdentifier) throws AdminException;

    /**
     * Get the Resources that correspond to the specified identifer pattern.
     *
     * @param resourceIdentifier the unique resourceIdentifier for for a {@link com.metamatrix.admin.api.objects.Resource Resource}
     * in the system or "{@link com.metamatrix.admin.api.objects.AdminObject#WILDCARD WILDCARD}"
     * if all Resources are desired.
     * @return Collection of {@link com.metamatrix.admin.api.objects.Resource Resource}
     * @throws AdminException if there's a system error.
     * @since 4.3
     */
    Collection getResources(String resourceIdentifier) throws AdminException;

    /**
     * Get the {@link com.metamatrix.admin.api.objects.DQP DQP}s that correspond to the specified identifer pattern.
     *
{'fraction_non_alphanumeric': 0.08072389570186927, 'fraction_numerical': 0.009048696273365877, 'mean_word_length': 3.5901639344262297, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1699128', 'n_tokens_mistral': 2323, 'n_tokens_neox': 2199, 'n_words': 870}