[jboss-cvs] jboss-profiler/java/src/expansion/org/jboss/profiler/exp/agent/geronimo ...

Takuro Okada t2-okada at nri.co.jp
Fri Mar 2 00:30:44 EST 2007


  User: tokada  
  Date: 07/03/02 00:30:44

  Added:       java/src/expansion/org/jboss/profiler/exp/agent/geronimo 
                        Tag: JBossProfiler_Expansion
                        DefaultProfilerServiceGBean.java
  Log:
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +73 -0     jboss-profiler/java/src/expansion/org/jboss/profiler/exp/agent/geronimo/Attic/DefaultProfilerServiceGBean.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DefaultProfilerServiceGBean.java
  ===================================================================
  RCS file: DefaultProfilerServiceGBean.java
  diff -N DefaultProfilerServiceGBean.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ DefaultProfilerServiceGBean.java	2 Mar 2007 05:30:44 -0000	1.1.2.1
  @@ -0,0 +1,73 @@
  +/*
  + * JBoss, Home of Professional Open Source
  + * Copyright 2006, JBoss Inc., and individual contributors as indicated
  + * by the @authors tag. See the copyright.txt in the distribution for a
  + * full listing of individual contributors.
  + *
  + * This 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 software 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 software; if not, write to the Free
  + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  + */
  +
  +package org.jboss.profiler.exp.agent.geronimo;
  +
  +import org.apache.geronimo.gbean.GBeanInfo;
  +import org.apache.geronimo.gbean.GBeanInfoBuilder;
  +import org.apache.geronimo.gbean.GBeanLifecycle;
  +import org.apache.log4j.Logger;
  +import org.jboss.profiler.exp.agent.DefaultProfilerService;
  +
  +/**
  + * 
  + * @author Takuro Okada (Nomura Research Institute, Ltd.)
  + * Copyright 2007 Nomura Research Institute, Ltd. All Rights Reserved.
  + */
  +public class DefaultProfilerServiceGBean extends DefaultProfilerService implements GBeanLifecycle {
  +
  +    private static Logger logger = Logger.getLogger(DefaultProfilerServiceGBean.class);
  +    
  +    /*
  +     * GBean Info
  +     */
  +    private static final GBeanInfo GBEAN_INFO;
  +    static {
  +      GBeanInfoBuilder infoFactory = new GBeanInfoBuilder(DefaultProfilerServiceGBean.class.getName(), DefaultProfilerServiceGBean.class);
  +      infoFactory.addAttribute("persistorName", String.class, true);
  +      infoFactory.addAttribute("storable", boolean.class, true);
  +      infoFactory.addAttribute("persistentPeriod", long.class, true);
  +      infoFactory.addAttribute("persistentPath", String.class, true);
  +      infoFactory.addAttribute("metricsSize", int.class, false);
  +      infoFactory.addOperation("snapMetrics");
  +      infoFactory.addOperation("snapMetrics", new Class[] {String.class, String[].class, Long.class, Long.class});
  +      infoFactory.addOperation("resetMetrics");
  +      GBEAN_INFO = infoFactory.getBeanInfo();
  +    }
  +    
  +    public static GBeanInfo getGBeanInfo() {
  +        return GBEAN_INFO;
  +    }
  +    
  +    public void doStart() throws Exception {
  +        super.start();
  +    }
  +    
  +    public void doStop() throws Exception {
  +        super.stop();
  +    }
  +    
  +    public void doFail() {
  +        logger.error("DefaultProfilerServiceGBean failed.");
  +    }
  +
  +}
  
  
  



More information about the jboss-cvs-commits mailing list