Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) FuseSource, Inc. http://fusesource.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.fusesource.fabric.monitor.plugins.jmx;

Represents a polling value for a JMX MBean attribute

Author(s):
Hiram Chirino
@XmlRootElement(name="mbean_poll")
public class MBeanAttributePollDTO extends PollDTO {
    public String mbean;
    public String attribute;
    public String key;
    public MBeanAttributePollDTO() {
    }
    public MBeanAttributePollDTO(String mbeanString attribute) {
        this. = mbean;
        this. = attribute;
    }
    public MBeanAttributePollDTO(String mbeanString attributeString key) {
        this. = mbean;
        this. = attribute;
        this. = key;
    }
    @Override
    public boolean equals(Object o) {
        if (this == oreturn true;
        if (o == null || getClass() != o.getClass()) return false;
        MBeanAttributePollDTO that = (MBeanAttributePollDTOo;
        if ( != null ? !.equals(that.attribute) : that.attribute != nullreturn false;
        if ( != null ? !.equals(that.key) : that.key != nullreturn false;
        if ( != null ? !.equals(that.mbean) : that.mbean != nullreturn false;
        return true;
    }
    @Override
    public int hashCode() {
        int result =  != null ? .hashCode() : 0;
        result = 31 * result + ( != null ? .hashCode() : 0);
        result = 31 * result + ( != null ? .hashCode() : 0);
        return result;
    }
    @Override
    public String toString() {
        return "MBeanAttributePollDTO{" +
                "attribute='" +  + '\'' +
                ", mbean='" +  + '\'' +
                ", key='" +  + '\'' +
                '}';
    }
New to GrepCode? Check out our FAQ X