1 20 21 22 package org.snmp4j.agent.request; 23 24 import org.snmp4j.smi.OID; 25 import java.util.Iterator ; 26 import java.util.NoSuchElementException ; 27 import org.snmp4j.smi.OctetString; 28 29 36 public interface Request { 37 38 int PHASE_INIT = -1; 39 int PHASE_1PC = 0; 40 int PHASE_2PC_PREPARE = 1; 41 int PHASE_2PC_COMMIT = 2; 42 int PHASE_2PC_UNDO = 3; 43 int PHASE_2PC_CLEANUP = 4; 44 45 53 55 56 67 69 78 SubRequest find(OID prefix); 79 80 85 Object getResponse(); 86 87 93 boolean isComplete(); 94 95 102 boolean isPhaseComplete(); 103 104 110 Object getSource(); 111 112 117 OctetString getContext(); 118 119 126 SubRequest get(int index); 127 128 134 int size(); 135 136 142 int getPhase(); 143 144 151 int nextPhase() throws NoSuchElementException ; 152 153 160 void setPhase(int phase) throws NoSuchElementException ; 161 162 167 Iterator iterator(); 168 169 void setViewName(OctetString viewName); 170 171 OctetString getViewName(); 172 173 OctetString getSecurityName(); 174 175 int getMessageProcessingModel(); 176 177 int getSecurityModel(); 178 179 int getSecurityLevel(); 180 181 int getViewType(); 182 183 void setErrorStatus(int errorStatus); 184 185 int getErrorStatus(); 186 187 int getErrorIndex(); 188 189 int getTransactionID(); 190 191 195 void resetProcessedStatus(); 196 197 207 int getReprocessCounter(); 208 209 213 void incReprocessCounter(); 214 } 215 | Popular Tags |