Package org.ow2.easybeans.component.api

Examples of org.ow2.easybeans.component.api.EZBComponentException


    public synchronized void setStatisticMode(final String statisticId, final STATISTIC_MODE statisticMode)
            throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        managedStatistic.setManagedStatisticMode(statisticMode);
    }
View Full Code Here


     */
    public synchronized boolean getStatisticState(final String statisticId) throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        return managedStatistic.getManagedStatisticState();
    }
View Full Code Here

    public synchronized void setStatisticState(final String statisticId, final boolean statisticStateValue)
            throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        managedStatistic.setManagedStatisticState(statisticStateValue);
    }
View Full Code Here

     */
    public synchronized void resetStatistic(final String statisticId) throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        managedStatistic.getStatistic().reset();
    }
View Full Code Here

     */
    public synchronized String getStatisticName(final String statisticId) throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        return managedStatistic.getStatistic().getName();
    }
View Full Code Here

     */
    public synchronized String getStatisticDescription(final String statisticId) throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        return managedStatistic.getStatistic().getDescription();
    }
View Full Code Here

     */
    public synchronized String getStatisticValue(final String statisticId) throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        return managedStatistic.getStatistic().getValue();
    }
View Full Code Here

     */
    public synchronized long getStatisticStartTime(final String statisticId) throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        return managedStatistic.getStatistic().getStartTime();
    }
View Full Code Here

     */
    public synchronized long getStatisticLastSampleTime(final String statisticId) throws EZBComponentException {
        ManagedStatistic managedStatistic = this.managedStatistics.get(statisticId);

        if (managedStatistic == null) {
            throw new EZBComponentException("Cannot find statistic " + statisticId);
        }

        return managedStatistic.getStatistic().getLastSampleTime();
    }
View Full Code Here

     * @throws EZBComponentException if registering fails.
     */
    public void register(final String componentName, final EZBComponent component) throws EZBComponentException {
        // Existing ?
        if (this.components.containsKey(componentName)) {
            throw new EZBComponentException("Cannot register the component with the name '" + componentName
                    + "'. There is an existing component with this name.");
        }

        this.logger.debug("Registering component with name {0}.", componentName);
        this.components.put(componentName, component);
View Full Code Here

TOP

Related Classes of org.ow2.easybeans.component.api.EZBComponentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.