}
return new SubRequestIteratorSupport(Collections.EMPTY_LIST.iterator());
}
public void updateNextRepetition() {
SubRequestIterator repetitions = repetitions();
// skip this one
repetitions.next();
if (repetitions.hasNext()) {
if ((getStatus().getErrorStatus() == PDU.noError) &&
(!this.vb.isException())) {
AgentXSubRequest nsreq =
(AgentXSubRequest) repetitions.nextSubRequest();
nsreq.query = null;
nsreq.scope =
new DefaultMOContextScope(getContext(),
this.getVariableBinding().getOid(),
false,
this.getScope().getUpperBound(),
this.getScope().isUpperIncluded());
}
else if (this.vb.isException()) {
while (repetitions.hasNext()) {
AgentXSubRequest nsreq =
(AgentXSubRequest) repetitions.nextSubRequest();
nsreq.query = null;
nsreq.getVariableBinding().setOid(this.vb.getOid());
nsreq.getVariableBinding().setVariable(this.vb.getVariable());
nsreq.getStatus().setPhaseComplete(true);
}