link start!
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.tridium.snmp.mib;
|
||||
|
||||
public interface MibConst {
|
||||
public static final String MANDATORY = "mandatory";
|
||||
public static final int ROOT = 1;
|
||||
public static final int SIMPLE = 3;
|
||||
public static final int TABLE = 4;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.tridium.snmp.mib;
|
||||
|
||||
import com.tridium.snmp.snmptypes.SnmpOID;
|
||||
import com.tridium.snmp.snmptypes.SnmpPDU;
|
||||
import com.tridium.snmp.snmptypes.SnmpVar;
|
||||
import com.tridium.snmp.snmptypes.SnmpVarBind;
|
||||
|
||||
public interface MibObject {
|
||||
SnmpOID getNextOid(SnmpOID snmpOID);
|
||||
|
||||
SnmpVar getValue(SnmpOID snmpOID);
|
||||
|
||||
int setValue(SnmpVarBind snmpVarBind, SnmpPDU snmpPDU);
|
||||
|
||||
int validateForSet(SnmpVarBind snmpVarBind);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.tridium.snmp.mib.table;
|
||||
|
||||
public interface PointContainer {
|
||||
String getObjectIdentifier();
|
||||
|
||||
PointTable getTable(boolean z);
|
||||
|
||||
void registerIoObject(PointEntry pointEntry);
|
||||
|
||||
void unregisterIoObject(PointEntry pointEntry);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.tridium.snmp.mib.table;
|
||||
|
||||
import com.tridium.snmp.snmptypes.SnmpVar;
|
||||
|
||||
public interface PointEntry extends TableEntry {
|
||||
String getObjectIdentifier();
|
||||
|
||||
SnmpVar getValue();
|
||||
|
||||
boolean isSettablePoint();
|
||||
|
||||
void setObjectIdentifier(String str);
|
||||
|
||||
SnmpVar setValue(SnmpVar snmpVar);
|
||||
|
||||
void tryDecodeForSet(SnmpVar snmpVar) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.tridium.snmp.mib.table;
|
||||
|
||||
public interface TableEntry {
|
||||
int getIndex();
|
||||
|
||||
int getLastHash();
|
||||
|
||||
String getPointName();
|
||||
|
||||
void setIndex(int i);
|
||||
|
||||
void setLastHash(int i);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.tridium.snmp.snmptypes;
|
||||
|
||||
public interface SnmpConst {
|
||||
public static final int DEFAULT_SNMP_PORT = 161;
|
||||
public static final int DEFAULT_SNMP_TRAP_PORT = 162;
|
||||
public static final int SNMPV1_ERR_BAD_VALUE = 3;
|
||||
public static final int SNMPV1_ERR_GEN_ERROR = 5;
|
||||
public static final int SNMPV1_ERR_NOERROR = 0;
|
||||
public static final int SNMPV1_ERR_NO_SUCH_NAME = 2;
|
||||
public static final int SNMPV1_ERR_READ_ONLY = 4;
|
||||
public static final int SNMPV1_ERR_TOO_BIG = 1;
|
||||
public static final int SNMPV2_END_OF_MIB_VIEW = 130;
|
||||
public static final int SNMPV2_ERR_AUTHORIZATION_ERROR = 16;
|
||||
public static final int SNMPV2_ERR_COMMIT_FAILED = 14;
|
||||
public static final int SNMPV2_ERR_INCONSISTENT_NAME = 18;
|
||||
public static final int SNMPV2_ERR_INCONSISTENT_VALUE = 12;
|
||||
public static final int SNMPV2_ERR_NOT_WRITABLE = 17;
|
||||
public static final int SNMPV2_ERR_NO_ACCESS = 6;
|
||||
public static final int SNMPV2_ERR_NO_CREATION = 11;
|
||||
public static final int SNMPV2_ERR_NO_SUCH_INSTANCE = 129;
|
||||
public static final int SNMPV2_ERR_NO_SUCH_OBJECT = 128;
|
||||
public static final int SNMPV2_ERR_RESOUCE_UNAVAILABLE = 13;
|
||||
public static final int SNMPV2_ERR_UNDO_FAILED = 15;
|
||||
public static final int SNMPV2_ERR_WRONG_ENCODING = 9;
|
||||
public static final int SNMPV2_ERR_WRONG_LENGTH = 8;
|
||||
public static final int SNMPV2_ERR_WRONG_TYPE = 7;
|
||||
public static final int SNMPV2_ERR_WRONG_VALUE = 10;
|
||||
public static final int SNMP_ASN_COUNTER = 65;
|
||||
public static final int SNMP_ASN_COUNTER64 = 70;
|
||||
public static final int SNMP_ASN_GAUGE = 66;
|
||||
public static final int SNMP_ASN_GET_BULK_REQUEST = 165;
|
||||
public static final int SNMP_ASN_GET_NEXT_REQUEST = 161;
|
||||
public static final int SNMP_ASN_GET_REQUEST = 160;
|
||||
public static final int SNMP_ASN_GET_RESPONSE = 162;
|
||||
public static final int SNMP_ASN_INFORM_REQUEST = 166;
|
||||
public static final int SNMP_ASN_INTEGER = 2;
|
||||
public static final int SNMP_ASN_IP_ADDRESS = 64;
|
||||
public static final int SNMP_ASN_NULL = 5;
|
||||
public static final int SNMP_ASN_OBJECT_ID = 6;
|
||||
public static final int SNMP_ASN_OCTET_STRING = 4;
|
||||
public static final int SNMP_ASN_OPAQUE = 68;
|
||||
public static final int SNMP_ASN_REPORT = 168;
|
||||
public static final int SNMP_ASN_SEQUENCE = 48;
|
||||
public static final int SNMP_ASN_SET_REQUEST = 163;
|
||||
public static final int SNMP_ASN_TIME_TICKS = 67;
|
||||
public static final int SNMP_ASN_TRAP_V1 = 164;
|
||||
public static final int SNMP_ASN_TRAP_V2 = 167;
|
||||
}
|
||||
Reference in New Issue
Block a user