资源简介
java编程实现SNMP管理站,完成对SNMP代理的远程访问。
代码片段和文件信息
/*
* Generated by ASN.1 Java Compiler (https://www.asnlab.org/)
* From ASN.1 module “RFC1155-SMI“
*/
package RFC1155_SMI;
import java.io.*;
import java.math.*;
import javax.validation.constraints.*;
import org.asnlab.asndt.runtime.conv.*;
import org.asnlab.asndt.runtime.conv.annotation.*;
import org.asnlab.asndt.runtime.type.AsnType;
import org.asnlab.asndt.runtime.value.*;
public class ApplicationSyntax {
public static final int addressChosen = 0;
public static final int counterChosen = 1;
public static final int gaugeChosen = 2;
public static final int ticksChosen = 3;
public static final int arbitraryChosen = 4;
public final int choiceID;
@Alternative(0)
public final NetworkAddress address;
@Alternative(1)
public final Long counter;
@Alternative(2)
public final Long gauge;
@Alternative(3)
public final Long ticks;
@Alternative(4)
public final byte[] arbitrary;
private ApplicationSyntax(int choiceID NetworkAddress address Long counter Long gauge Long ticks byte[] arbitrary) {
this.choiceID = choiceID;
this.address = address;
this.counter = counter;
this.gauge = gauge;
this.ticks = ticks;
this.arbitrary = arbitrary;
}
public static ApplicationSyntax address(NetworkAddress address) {
return new ApplicationSyntax(addressChosen address null null null null);
}
public static ApplicationSyntax counter(Long counter) {
return new ApplicationSyntax(counterChosen null counter null null null);
}
public static ApplicationSyntax gauge(Long gauge) {
return new ApplicationSyntax(gaugeChosen null null gauge null null);
}
public static ApplicationSyntax ticks(Long ticks) {
return new ApplicationSyntax(ticksChosen null null null ticks null);
}
public static ApplicationSyntax arbitrary(byte[] arbitrary) {
return new ApplicationSyntax(arbitraryChosen null null null null arbitrary);
}
public boolean equals(object obj) {
if(!(obj instanceof ApplicationSyntax)){
return false;
}
return TYPE.equals(this obj CONV);
}
public void ber_encode(OutputStream out) throws IOException {
TYPE.encode(this EncodingRules.BASIC_ENCODING_RULES CONV out);
}
public static ApplicationSyntax ber_decode(InputStream in) throws IOException {
return (ApplicationSyntax)TYPE.decode(in EncodingRules.BASIC_ENCODING_RULES CONV);
}
public final static AsnType TYPE = RFC1155_SMI.type(65545);
public final static ChoiceConverter CONV;
static {
CONV = new AnnotationChoiceConverter(ApplicationSyntax.class);
AsnConverter addressConverter = NetworkAddress.CONV;
AsnConverter counterConverter = Counter.CONV;
AsnConverter gaugeConverter = Gauge.CONV;
AsnConverter ticksConverter = TimeTicks.CONV;
AsnConverter arbitraryConverter = Opaque.CONV;
CONV.setAlternativeConverters(new AsnConverter[] { addressConverter counterConverter gaugeConverter ticksConverter arbitraryConverter });
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 450 2018-04-06 17:27 TestMySNMP2\.classpath
文件 387 2018-04-08 08:20 TestMySNMP2\.project
文件 598 2018-03-25 10:18 TestMySNMP2\.settings\org.eclipse.jdt.core.prefs
文件 3575 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\ApplicationSyntax.class
文件 1392 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\Counter.class
文件 1386 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\Gauge.class
文件 1353 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\IpAddress.class
文件 2346 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\NetworkAddress.class
文件 1531 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\ob
文件 2804 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\ob
文件 1344 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\Opaque.class
文件 1138 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\RFC1155_SMI.class
文件 528 2018-03-26 08:10 TestMySNMP2\bin\RFC1155_SMI\RFC1155_SMI.me
文件 3700 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\SimpleSyntax.class
文件 1398 2018-04-15 10:51 TestMySNMP2\bin\RFC1155_SMI\TimeTicks.class
文件 3591 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\ApplicationSyntax.class
文件 1396 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\Counter.class
文件 1734 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\Error_status.class
文件 1390 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\Gauge.class
文件 1818 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\Generic_trap.class
文件 2717 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\GetNextRequest_PDU.class
文件 2701 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\GetRequest_PDU.class
文件 2705 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\GetResponse_PDU.class
文件 1357 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\IpAddress.class
文件 2540 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\Message.class
文件 2353 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\NetworkAddress.class
文件 1535 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\ob
文件 2819 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\ob
文件 1348 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\Opaque.class
文件 2657 2018-04-15 10:51 TestMySNMP2\bin\RFC1157_SNMP\PDU.class
............此处省略77个文件信息
- 上一篇:java微信小程序支付
- 下一篇:JAVA Jfr
ame无边框可拖动Dome
评论
共有 条评论