package apps::protocols::jmx::plugin;

use strict;
use warnings;
use base qw(centreon::plugins::script_custom);

sub new {
    my ($class, %options) = @_;
    my $self = $class->SUPER::new(package => __PACKAGE__, %options);
    bless $self, $class;

    $self->{version} = '0.1';
    %{$self->{modes}} = (
                         'list-attributes'  => 'apps::protocols::jmx::mode::listattributes',
                         'numeric-value'    => 'apps::protocols::jmx::mode::numericvalue',
                         );

    $self->{custom_modes}{jolokia} = 'centreon::common::protocols::jmx::custom::jolokia';
    return $self;
}

1;

__END__

=head1 PLUGIN DESCRIPTION

Generic JMX plugin. Need Jolokia agent.

=cut
