/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// java import
//
// jmx imports
//
// SNMP Runtime import
//
/**
* The constuctor initialize the subrequest with the whole varbind list contained
* in the original request.
*/
int nonRepeat,
int maxRepeat,
int R) {
}
/**
* The constuctor initialize the subrequest with the whole varbind list contained
* in the original request.
*/
int nonRepeat,
int maxRepeat,
int R) {
}
public void run() {
try {
// Invoke a getBulk operation
//
/* NPCTE fix for bugId 4492741, esc 0, 16-August-2001 */
final ThreadContext oldContext =
try {
}
} finally {
}
/* end of NPCTE fix for bugId 4492741 */
} catch(SnmpStatusException x) {
errorStatus = x.getStatus() ;
errorIndex= x.getErrorIndex();
"]:an Snmp error occured during the operation", x);
}
}
catch(Exception x) {
"]:a generic error occured during the operation", x);
}
}
"]:operation completed");
}
}
int nonRepeat,
int maxRepeat,
int R) {
this.globalR= R;
for(int i=0; i < max; i++) {
translation[i]= i;
// we need to allocate a new SnmpVarBind. Otherwise the first
// sub request will modify the list...
//
final SnmpVarBind newVarBind =
}
}
/**
* The method updates find out which element to use at update time. Handle oid overlapping as well
*/
return element;
}
}
if (comp < 0) {
// Take the smallest (lexicographically)
//
return element;
}
else {
if(comp == 0) {
// Must compare agent used for reply
// Take the deeper within the reply
"findVarBind"," oid overlapping. Oid : " +
"findVarBind","Already present varBind : " +
result);
}
}
if(deeperAgent == agent) {
"findVarBind","The current agent is the deeper one. Update the value with the current one");
}
return element;
} else {
"findVarBind","The current agent is not the deeper one. return the previous one.");
}
return result;
}
/*
Vector v = new Vector();
SnmpMibRequest getReq = createMibRequest(v,
version,
null);
SnmpVarBind realValue = new SnmpVarBind(oid);
getReq.addVarBind(realValue);
try {
deeperAgent.get(getReq);
} catch(SnmpStatusException e) {
e.printStackTrace();
}
if(isDebugOn())
trace("findVarBind", "Biggest priority value is : " +
realValue.value);
return realValue;
*/
}
else {
"findVarBind","The right varBind is the already present one");
}
return result;
}
}
}
/**
* The method updates a given var bind list with the result of a
* previsouly invoked operation.
* Prior to calling the method, one must make sure that the operation was
* successful. As such the method getErrorIndex or getErrorStatus should be
* called.
*/
// we can assume that the run method is over ...
//
// First go through all the values once ...
for(int i=0; i < size; i++) {
// May be we should control the position ...
//
if (e.hasMoreElements() == false)
return;
// bugId 4641694: must check position in order to avoid
// ArrayIndexOutOfBoundException
final int pos=translation[i];
}
continue;
}
"updateResult","Non repeaters Current element : " +
}
}
// Now update the values which have been repeated
// more than once.
for (int i = 2 ; i <= maxRepeat ; i++) {
for (int r = 0 ; r < localR ; r++) {
return;
if (e.hasMoreElements() ==false)
return;
"updateResult","Repeaters Current element : " +
}
}
}
}
// PROTECTED VARIABLES
//------------------
/**
* Specific to the sub request
*/
/**
* R as defined in RCF 1902 for the global request the sub-request is associated to.
*/
}