2 Replies Latest reply on Mar 28, 2013 8:56 AM by udayatom

    bounding error to share the data

    udayatom Newbie

      Hello friends,

       

                   I got this error, please resolve me. i am confusion of class coversion. explain me friends

       

       

      Regards,

      Udaya kumar

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      package org.rhq.plugins.UniqueViewer;

       

      import java.util.Set;

      import java.util.*;

      import org.rhq.core.domain.measurement.AvailabilityType;

      import org.rhq.core.domain.measurement.MeasurementDataNumeric;

      import org.rhq.core.domain.measurement.MeasurementReport;

      import org.rhq.core.domain.measurement.MeasurementScheduleRequest;

      import org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException;

      import org.rhq.core.pluginapi.inventory.ResourceComponent;

      import org.rhq.core.pluginapi.inventory.ResourceContext;

      import org.rhq.core.pluginapi.measurement.MeasurementFacet;

       

      public class ServerManagementComponent implements ResourceComponent, MeasurementFacet {

       

       

       

          int failedemails;

          int successemails;

          int totalemails;

          int loggedin;

          int loggedoff;

          int activeusers;

          int inactiveusers;

      Random rand = new Random();

       

       

          public AvailabilityType getAvailability()

          {       

              return AvailabilityType.UP;

          }

       

          public void start(ResourceContext context) throws InvalidPluginConfigurationException, Exception

          {

       

          }

       

          public void stop()

          {

         

          }

         

          public int getfailedemails()

              {

                      failedemails=rand.nextInt(500);

                      return failedemails;

              }

       

       

       

      =============================================================================================================================================

      package org.rhq.plugins.UniqueViewer;

       

      import java.util.Set;

      import java.util.*;

       

      import org.rhq.core.domain.measurement.AvailabilityType;

      import org.rhq.core.domain.measurement.MeasurementDataNumeric;

      import org.rhq.core.domain.measurement.MeasurementReport;

      import org.rhq.core.domain.measurement.MeasurementScheduleRequest;

      import org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException;

      import org.rhq.core.pluginapi.inventory.ResourceComponent;

      import org.rhq.core.pluginapi.inventory.ResourceContext;

      import org.rhq.core.pluginapi.measurement.MeasurementFacet;

      public class UserManagementComponent implements ResourceComponent<ServerManagementComponent>, MeasurementFacet {

       

      private ResourceContext resourceContext;

       

       

       

          public AvailabilityType getAvailability()

          {

       

              return AvailabilityType.UP;

          }

       

          public void start(ResourceContext<ServerManagementComponent> context) throws InvalidPluginConfigurationException, Exception

          {

       

          this.resourceContext=context;

          }

       

          public void stop()

          {

       

          }

       

      ==============================================================================================================================================

       

       

       

                                   

      UniqueViewer\src\main\java\org\rhq\plugins\SolartisUniqueViewer\UserManagementComponent.java:[14,66] type parameter org.rhq.plugins.UniqueViewer.ServerManagementComponent is not within its bound

      UniqueViewer\src\main\java\org\rhq\plugins\SolartisUniqueViewer\UserManagementComponent.java:[26,35] type parameter org.rhq.plugins.UniqueViewer.ServerManagementComponent is not within its bound

      UniqueViewer\src\main\java\org\rhq\plugins\SolartisUniqueViewer\UserManagementComponent.java:[40,53] cannot find symbol

      method getloggedin()