/*
 * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 * This software is the proprietary information of Sun Microsystems, Inc.
 * Use is subject to license terms.
 *
 * Copyright 2004 Sun Microsystems, Inc.  Tous droits réservés.
 * Ce logiciel est propriété de Sun Microsystems, Inc.
 * Distribué par des licences qui en restreignent l'utilisation.
 *
 * ident        "%Z%%M% %I%     %E% SMI"
 *
 */

package com.sun.mfwk.cib.sdk.states;

// jdk
import java.util.Map;
import java.util.logging.Logger;

// Java ES-MF sdk
import com.sun.mfwk.cib.sdk.util.CIBObjectNameMapFactory;
import com.sun.mfwk.util.log.MfLogService;

// jmx
import javax.management.MBeanServerConnection;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

/**
 * Provides default implementation of an availability status State provider for
 * a CIB Application.
 * This implementation is fully based on the Java-ES MF Instrumentation SDK.
 */
public class CIBApplicationAvailabilityStatusImpl
    extends CIBAvailabilityStatusStateImpl {

  static final Logger logger = MfLogService.getLogger("cib-sdk");
  static final String className = "CIBApplicationAvailabilityStatusImpl";

  public CIBApplicationAvailabilityStatusImpl(MBeanServerConnection connection,
                                              Map map) {
    super(connection, map);
  }

  /**
   * Contructor
   * @param connection MBeanServerConnection
   */
  public CIBApplicationAvailabilityStatusImpl(MBeanServerConnection connection) throws
      MalformedObjectNameException {
    super(connection, CIBObjectNameMapFactory.getCIBApplicationStateMap());
  }
}
