jdk/src/share/classes/com/sun/jmx/snmp/daemon/SnmpAdaptorServerMBean.java
author malenkov
Tue, 29 Oct 2013 17:01:06 +0400
changeset 21278 ef8a3a2a72f2
parent 14677 1607f4cfc506
child 23010 6dadb192ad81
permissions -rw-r--r--
8022746: List of spelling errors in API doc Reviewed-by: alexsch, smarks
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
package com.sun.jmx.snmp.daemon;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
// java import
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.Vector;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.io.IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.net.InetAddress;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
// jmx imports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
//
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import com.sun.jmx.snmp.SnmpPduFactory;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import com.sun.jmx.snmp.SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import com.sun.jmx.snmp.SnmpVarBindList;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
import com.sun.jmx.snmp.SnmpOid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
import com.sun.jmx.snmp.SnmpTimeticks;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
import com.sun.jmx.snmp.SnmpIpAddress;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
import com.sun.jmx.snmp.SnmpPduPacket;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
import com.sun.jmx.snmp.InetAddressAcl;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
import com.sun.jmx.snmp.SnmpPeer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
// SNMP Runtime imports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
//
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
import com.sun.jmx.snmp.agent.SnmpMibAgent;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
import com.sun.jmx.snmp.agent.SnmpMibHandler;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
import com.sun.jmx.snmp.agent.SnmpUserDataFactory;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * Exposes the remote management interface of the {@link SnmpAdaptorServer} MBean.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <p><b>This API is a Sun Microsystems internal API  and is subject
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * to change without notice.</b></p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
public interface SnmpAdaptorServerMBean extends CommunicatorServerMBean {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    // GETTERS AND SETTERS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    //--------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * Returns the Ip address based ACL used by this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * @return The <CODE>InetAddressAcl</CODE> implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    public InetAddressAcl getInetAddressAcl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * Returns the port used by this SNMP protocol adaptor for sending traps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * By default, port 162 is used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * @return The port number for sending SNMP traps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    public Integer getTrapPort();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * Sets the port used by this SNMP protocol adaptor for sending traps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * @param port The port number for sending SNMP traps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    public void setTrapPort(Integer port);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * Returns the port used by this SNMP protocol adaptor for sending inform requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * By default, port 162 is used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * @return The port number for sending SNMP inform requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    public int getInformPort();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * Sets the port used by this SNMP protocol adaptor for sending inform requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * @param port The port number for sending SNMP inform requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    public void setInformPort(int port);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * Gets the number of managers that have been processed by this SNMP protocol adaptor
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * since its creation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * @return The number of managers handled by this SNMP protocol adaptor
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * since its creation. This counter is not reset by the <CODE>stop</CODE> method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    public int getServedClientCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * Gets the number of managers currently being processed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * @return The number of managers currently being processed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    public int getActiveClientCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * Gets the maximum number of managers that this SNMP protocol adaptor can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * process concurrently.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * @return The maximum number of managers that this SNMP protocol adaptor can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * process concurrently.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    public int getMaxActiveClientCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * Sets the maximum number of managers this SNMP protocol adaptor can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * process concurrently.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * @param c The number of managers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * @exception java.lang.IllegalStateException This method has been invoked
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * while the communicator was <CODE>ONLINE</CODE> or <CODE>STARTING</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    public void setMaxActiveClientCount(int c) throws java.lang.IllegalStateException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * Returns the protocol of this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * @return The string "snmp".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     */
14677
1607f4cfc506 8003476: Cleanup warnings in com.sun.jmx.snmp code
dfuchs
parents: 5506
diff changeset
   143
    @Override
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    public String getProtocol();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * Returns the buffer size of this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * By default, buffer size 1024 is used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * @return The buffer size.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    public Integer getBufferSize();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * Sets the buffer size of this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * @param s The buffer size.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * @exception java.lang.IllegalStateException This method has been invoked
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * while the communicator was <CODE>ONLINE</CODE> or <CODE>STARTING</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    public void setBufferSize(Integer s) throws java.lang.IllegalStateException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * Gets the number of times to try sending an inform request before giving up.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * @return The maximun number of tries.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    public int getMaxTries();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * Changes the maximun number of times to try sending an inform request before giving up.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * @param newMaxTries The maximun number of tries.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    public void setMaxTries(int newMaxTries);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Gets the timeout to wait for an inform response from the manager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * @return The value of the timeout property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    public int getTimeout();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * Changes the timeout to wait for an inform response from the manager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * @param newTimeout The timeout (in milliseconds).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    public void setTimeout(int newTimeout);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * Returns the message factory of this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * @return The factory object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    public SnmpPduFactory getPduFactory();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * Sets the message factory of this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * @param factory The factory object (null means the default factory).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    public void setPduFactory(SnmpPduFactory factory);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * Set the user-data factory of this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * @param factory The factory object (null means no factory).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * @see com.sun.jmx.snmp.agent.SnmpUserDataFactory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    public void setUserDataFactory(SnmpUserDataFactory factory);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * Get the user-data factory associated with this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * @return The factory object (null means no factory).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * @see com.sun.jmx.snmp.agent.SnmpUserDataFactory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    public SnmpUserDataFactory getUserDataFactory();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * Returns <CODE>true</CODE> if authentication traps are enabled.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * When this feature is enabled, the SNMP protocol adaptor sends
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * an <CODE>authenticationFailure</CODE> trap each time an authentication fails.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * The default behaviour is to send authentication traps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * @return <CODE>true</CODE> if authentication traps are enabled, <CODE>false</CODE> otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    public boolean getAuthTrapEnabled();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * Sets the flag indicating if traps need to be sent in case of authentication failure.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * @param enabled Flag indicating if traps need to be sent.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    public void setAuthTrapEnabled(boolean enabled);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * Returns <code>true</code> if this SNMP protocol adaptor sends a response in case
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * of authentication failure.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * When this feature is enabled, the SNMP protocol adaptor sends a response with <CODE>noSuchName</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * or <CODE>readOnly</CODE> when the authentication failed. If the flag is disabled, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * SNMP protocol adaptor trashes the PDU silently.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * The default behavior is to send responses.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     * @return <code>true</code> if responses are sent.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    public boolean getAuthRespEnabled();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     * Sets the flag indicating if responses need to be sent in case of authentication failure.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     * @param enabled Flag indicating if responses need to be sent.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
    public void setAuthRespEnabled(boolean enabled);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     * Returns the enterprise OID. It is used by {@link #snmpV1Trap snmpV1Trap} to fill
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     * the 'enterprise' field of the trap request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     * @return The OID in string format "x.x.x.x".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    public String getEnterpriseOid();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     * Sets the enterprise OID.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * @param oid The OID in string format "x.x.x.x".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
     * @exception IllegalArgumentException The string format is incorrect
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
    public void setEnterpriseOid(String oid) throws IllegalArgumentException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * Returns the names of the MIBs available in this SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     * @return An array of MIB names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    public String[] getMibs();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    // GETTERS FOR SNMP GROUP (MIBII)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    //-------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     * Returns the <CODE>snmpOutTraps</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     * @return The <CODE>snmpOutTraps</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    public Long getSnmpOutTraps();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * Returns the <CODE>snmpOutGetResponses</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
     * @return The <CODE>snmpOutGetResponses</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    public Long getSnmpOutGetResponses();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
     * Returns the <CODE>snmpOutGenErrs</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
     * @return The <CODE>snmpOutGenErrs</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
    public Long getSnmpOutGenErrs();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * Returns the <CODE>snmpOutBadValues</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * @return The <CODE>snmpOutBadValues</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
    public Long getSnmpOutBadValues();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * Returns the <CODE>snmpOutNoSuchNames</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     * @return The <CODE>snmpOutNoSuchNames</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
    public Long getSnmpOutNoSuchNames();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     * Returns the <CODE>snmpOutTooBigs</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     * @return The <CODE>snmpOutTooBigs</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
    public Long getSnmpOutTooBigs();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
     * Returns the <CODE>snmpInASNParseErrs</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
     * @return The <CODE>snmpInASNParseErrs</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
    public Long getSnmpInASNParseErrs();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * Returns the <CODE>snmpInBadCommunityUses</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * @return The <CODE>snmpInBadCommunityUses</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
    public Long getSnmpInBadCommunityUses();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
     * Returns the <CODE>snmpInBadCommunityNames</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
     * @return The <CODE>snmpInBadCommunityNames</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
    public Long getSnmpInBadCommunityNames();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     * Returns the <CODE>snmpInBadVersions</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     * @return The <CODE>snmpInBadVersions</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
    public Long getSnmpInBadVersions();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     * Returns the <CODE>snmpOutPkts</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
     * @return The <CODE>snmpOutPkts</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    public Long getSnmpOutPkts();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     * Returns the <CODE>snmpInPkts</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     * @return The <CODE>snmpInPkts</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
    public Long getSnmpInPkts();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * Returns the <CODE>snmpInGetRequests</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * @return The <CODE>snmpInGetRequests</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
    public Long getSnmpInGetRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     * Returns the <CODE>snmpInGetNexts</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     * @return The <CODE>snmpInGetNexts</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    public Long getSnmpInGetNexts();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     * Returns the <CODE>snmpInSetRequests</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     * @return The <CODE>snmpInSetRequests</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
    public Long getSnmpInSetRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     * Returns the <CODE>snmpInTotalSetVars</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     * @return The <CODE>snmpInTotalSetVars</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
    public Long getSnmpInTotalSetVars();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * Returns the <CODE>snmpInTotalReqVars</CODE> value defined in MIB-II.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     * @return The <CODE>snmpInTotalReqVars</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
    public Long getSnmpInTotalReqVars();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
     * Returns the <CODE>snmpSilentDrops</CODE> value defined in rfc 1907 NMPv2-MIB .
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     * @return The <CODE>snmpSilentDrops</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
    public Long getSnmpSilentDrops();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * Returns the <CODE>snmpProxyDrops</CODE> value defined in rfc 1907 NMPv2-MIB .
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     * @return The <CODE>snmpProxyDrops</CODE> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
    public Long getSnmpProxyDrops();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
    // PUBLIC METHODS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
    //---------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
     * Adds a new MIB in the SNMP MIB handler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
     * This method is called automatically by {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptor(SnmpMibHandler)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     * and {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptorName(ObjectName)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
     * and should not be called directly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
     * @param mib The MIB to add.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
     * @return A reference to the SNMP MIB handler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * @exception IllegalArgumentException If the parameter is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
    public SnmpMibHandler addMib(SnmpMibAgent mib) throws IllegalArgumentException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * Adds a new MIB in the SNMP MIB handler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
     * @param mib The MIB to add.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
     * @param oids The set of OIDs this agent implements.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
     * @return A reference to the SNMP MIB handler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * @exception IllegalArgumentException If the parameter is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
    public SnmpMibHandler addMib(SnmpMibAgent mib, SnmpOid[] oids) throws IllegalArgumentException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * Removes the specified MIB from the SNMP protocol adaptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     * This method is called automatically by {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptor(SnmpMibHandler)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
     * and {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptorName(ObjectName)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
     * and should not be called directly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
     * @param mib The MIB to be removed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
     * @return <code>true</code> if the specified <CODE>mib</CODE> was a MIB included in the SNMP MIB handler,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
     * <code>false</code> otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
    public boolean removeMib(SnmpMibAgent mib);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
     * Sends a trap using SNMP V1 trap format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
     * <BR>The trap is sent to each destination defined in the ACL file (if available).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
     * If no ACL file or no destinations are available, the trap is sent to the local host.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
     * @param generic The generic number of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     * @param specific The specific number of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
     *
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 14677
diff changeset
   476
     * @exception IOException An I/O error occurred while sending the trap.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
    public void snmpV1Trap(int generic, int specific, SnmpVarBindList varBindList) throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
     * Sends a trap using SNMP V1 trap format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
     * <BR>The trap is sent to the specified <CODE>InetAddress</CODE> destination
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
     * using the specified community string (and the ACL file is not used).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
     * @param address The <CODE>InetAddress</CODE> destination of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
     * @param cs The community string to be used for the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
     * @param generic The generic number of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
     * @param specific The specific number of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
     * @exception IOException An I/O error occurred while sending the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
    public void snmpV1Trap(InetAddress address, String cs, int generic, int specific, SnmpVarBindList varBindList)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
        throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
     * Sends a trap using SNMP V1 trap format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
     * <BR>The trap is sent to the specified <CODE>SnmpPeer</CODE> destination.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
     * The community string used is the one located in the <CODE>SnmpPeer</CODE> parameters (<CODE>SnmpParameters.getRdCommunity() </CODE>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
     * @param peer The <CODE>SnmpPeer</CODE> destination of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
     * @param agentAddr The agent address to be used for the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
     * @param enterpOid The enterprise OID to be used for the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
     * @param generic The generic number of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
     * @param specific The specific number of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
     * @param time The time stamp (overwrite the current time).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
     * @exception IOException An I/O error occurred while sending the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
    public void snmpV1Trap(SnmpPeer peer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
                           SnmpIpAddress agentAddr,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
                           SnmpOid enterpOid,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
                           int generic,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
                           int specific,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
                           SnmpVarBindList varBindList,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
                           SnmpTimeticks time) throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
     * Sends a trap using SNMP V2 trap format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
     * <BR>The trap is sent to the specified <CODE>SnmpPeer</CODE> destination.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
     * <BR>The community string used is the one located in the <CODE>SnmpPeer</CODE> parameters (<CODE>SnmpParameters.getRdCommunity() </CODE>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
     * <BR>The variable list included in the outgoing trap is composed of the following items:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
     * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
     * <LI><CODE>sysUpTime.0</CODE> with the value specified by <CODE>time</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
     * @param peer The <CODE>SnmpPeer</CODE> destination of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     * @param trapOid The OID identifying the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
     * @param time The time stamp (overwrite the current time).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     * @exception IOException An I/O error occurred while sending the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
    public void snmpV2Trap(SnmpPeer peer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
                           SnmpOid trapOid,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
                           SnmpVarBindList varBindList,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
                           SnmpTimeticks time) throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
     * Sends a trap using SNMP V2 trap format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
     * <BR>The trap is sent to each destination defined in the ACL file (if available).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
     * If no ACL file or no destinations are available, the trap is sent to the local host.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
     * <BR>The variable list included in the outgoing trap is composed of the following items:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
     * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
     * <LI><CODE>sysUpTime.0</CODE> with its current value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
     * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
     * @param trapOid The OID identifying the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
     *
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 14677
diff changeset
   566
     * @exception IOException An I/O error occurred while sending the trap.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
    public void snmpV2Trap(SnmpOid trapOid, SnmpVarBindList varBindList) throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
     * Sends a trap using SNMP V2 trap format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
     * <BR>The trap is sent to the specified <CODE>InetAddress</CODE> destination
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
     * using the specified community string (and the ACL file is not used).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
     * <BR>The variable list included in the outgoing trap is composed of the following items:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
     * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
     * <LI><CODE>sysUpTime.0</CODE> with its current value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
     * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
     * @param address The <CODE>InetAddress</CODE> destination of the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
     * @param cs The community string to be used for the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
     * @param trapOid The OID identifying the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
     * @exception IOException An I/O error occurred while sending the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
    public void snmpV2Trap(InetAddress address, String cs, SnmpOid trapOid, SnmpVarBindList varBindList)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
        throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
     * Send the specified trap PDU to the passed <CODE>InetAddress</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
     * @param address The destination address.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
     * @param pdu The pdu to send.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
     * @exception IOException An I/O error occurred while sending the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
    public void snmpPduTrap(InetAddress address, SnmpPduPacket pdu)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
        throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
     * Send the specified trap PDU to the passed <CODE>SnmpPeer</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
     * @param peer The destination peer. The Read community string is used of <CODE>SnmpParameters</CODE> is used as the trap community string.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
     * @param pdu The pdu to send.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
     * @exception IOException An I/O error occurred while sending the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
    public void snmpPduTrap(SnmpPeer peer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
                            SnmpPduPacket pdu)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
        throws IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
     * Sends an inform using SNMP V2 inform request format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
     * <BR>The inform request is sent to each destination defined in the ACL file (if available).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
     * If no ACL file or no destinations are available, the inform request is sent to the local host.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
     * <BR>The variable list included in the outgoing inform request is composed of the following items:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
     * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
     * <LI><CODE>sysUpTime.0</CODE> with its current value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
     * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
     * To send an inform request, the SNMP adaptor server must be active.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
     * @param cb The callback that is invoked when a request is complete.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
     * @param trapOid The OID identifying the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
     * @return A vector of {@link com.sun.jmx.snmp.daemon.SnmpInformRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
     * <P>If there is no destination host for this inform request, the returned vector will be empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
     * @exception IllegalStateException  This method has been invoked while the SNMP adaptor server was not active.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
     * @exception IOException An I/O error occurred while sending the inform request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
     * @exception SnmpStatusException If the inform request exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
     */
14677
1607f4cfc506 8003476: Cleanup warnings in com.sun.jmx.snmp code
dfuchs
parents: 5506
diff changeset
   640
    public Vector<?> snmpInformRequest(SnmpInformHandler cb, SnmpOid trapOid,
1607f4cfc506 8003476: Cleanup warnings in com.sun.jmx.snmp code
dfuchs
parents: 5506
diff changeset
   641
            SnmpVarBindList varBindList)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
        throws IllegalStateException, IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
     * Sends an inform using SNMP V2 inform request format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
     * <BR>The inform is sent to the specified <CODE>InetAddress</CODE> destination
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
     * using the specified community string.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
     * <BR>The variable list included in the outgoing inform request is composed of the following items:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
     * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
     * <LI><CODE>sysUpTime.0</CODE> with its current value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
     * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
     * To send an inform request, the SNMP adaptor server must be active.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
     * @param address The <CODE>InetAddress</CODE> destination for this inform request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
     * @param cs The community string to be used for the inform request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
     * @param cb The callback that is invoked when a request is complete.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
     * @param trapOid The OID identifying the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
     * @return The inform request object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
     * @exception IllegalStateException  This method has been invoked while the SNMP adaptor server was not active.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
     * @exception IOException An I/O error occurred while sending the inform request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
     * @exception SnmpStatusException If the inform request exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
    public SnmpInformRequest snmpInformRequest(InetAddress address, String cs, SnmpInformHandler cb,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
                                               SnmpOid trapOid, SnmpVarBindList varBindList)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
        throws IllegalStateException, IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
     * Sends an inform using SNMP V2 inform request format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
     * <BR>The inform is sent to the specified <CODE>SnmpPeer</CODE> destination.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
     * <BR> The community string used is the one located in the <CODE>SnmpPeer</CODE> parameters (<CODE>SnmpParameters.getInformCommunity() </CODE>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
     * <BR>The variable list included in the outgoing inform is composed of the following items:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
     * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
     * <LI><CODE>sysUpTime.0</CODE> with its current value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
     * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
     * To send an inform request, the SNMP adaptor server must be active.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
     * @param peer The <CODE>SnmpPeer</CODE> destination for this inform request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
     * @param cb The callback that is invoked when a request is complete.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
     * @param trapOid The OID identifying the trap.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
     * @return The inform request object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
     * @exception IllegalStateException  This method has been invoked while the SNMP adaptor server was not active.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
     * @exception IOException An I/O error occurred while sending the inform request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
     * @exception SnmpStatusException If the inform request exceeds the limit defined by <CODE>bufferSize</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
    public SnmpInformRequest snmpInformRequest(SnmpPeer peer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
                                               SnmpInformHandler cb,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
                                               SnmpOid trapOid,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
                                               SnmpVarBindList varBindList) throws IllegalStateException, IOException, SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
}