javax.management.snmp
Class SnmpTimeticks

java.lang.Object
  extended byjavax.management.snmp.SnmpValue
      extended byjavax.management.snmp.SnmpInt
          extended byjavax.management.snmp.SnmpUnsignedInt
              extended byjavax.management.snmp.SnmpTimeticks
All Implemented Interfaces:
Cloneable, Serializable, SnmpDataTypeEnums

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

public class SnmpTimeticks
extends SnmpUnsignedInt

Contains an SnmpTimeTick value which has units of 1/100th of a second.

Version:
4.10 04/08/04
Author:
Sun Microsystems, Inc, Cisco Systems, Inc.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.snmp.SnmpUnsignedInt
MAX_VALUE
 
Fields inherited from class javax.management.snmp.SnmpInt
value
 
Fields inherited from interface javax.management.snmp.SnmpDataTypeEnums
ApplFlag, BitStringTag, BooleanTag, Counter64Tag, CounterTag, CtxtFlag, errEndOfMibViewTag, errNoSuchInstanceTag, errNoSuchObjectTag, GaugeTag, IntegerTag, IpAddressTag, NsapTag, NullTag, ObjectIdentiferTag, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag
 
Constructor Summary
SnmpTimeticks(int v)
          Deprecated. Constructs a new SnmpTimeticks from the specified integer value.
SnmpTimeticks(Integer v)
          Deprecated. Constructs a new SnmpTimeticks from the specified Integer value.
SnmpTimeticks(long v)
          Deprecated. Constructs a new SnmpTimeticks from the specified long value.
SnmpTimeticks(Long v)
          Deprecated. Constructs a new SnmpTimeticks from the specified Long value.
 
Method Summary
 String getTypeName()
          Deprecated. Returns a textual description of the type object.
static String printTimeTicks(long timeticks)
          Deprecated. Parses the specified long value with time units and returns a String of the form d days hh:mm:ss.
 String toString()
          Deprecated. Converts the timeticks value to its String form.
 
Methods inherited from class javax.management.snmp.SnmpInt
appendToOid, clone, duplicate, intValue, longValue, nextOid, toInteger, toLong, toOid, toOid
 
Methods inherited from class javax.management.snmp.SnmpValue
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpTimeticks

public SnmpTimeticks(int v)
              throws IllegalArgumentException
Deprecated. 
Constructs a new SnmpTimeticks from the specified integer value.

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - if the specified value is negative.

SnmpTimeticks

public SnmpTimeticks(Integer v)
              throws IllegalArgumentException
Deprecated. 
Constructs a new SnmpTimeticks from the specified Integer value.

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - if the specified value is negative.

SnmpTimeticks

public SnmpTimeticks(long v)
              throws IllegalArgumentException
Deprecated. 
Constructs a new SnmpTimeticks from the specified long value.

If the specified value is greater than SnmpUnsignedInt.MAX_VALUE, the SnmpTimeTicks will be initialized with v%(SnmpUnsignedInt.MAX_VALUE+1).

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - if the specified value is negative.

SnmpTimeticks

public SnmpTimeticks(Long v)
              throws IllegalArgumentException
Deprecated. 
Constructs a new SnmpTimeticks from the specified Long value.

If the specified value is greater than SnmpUnsignedInt.MAX_VALUE, the SnmpTimeTicks will be initialized with v%(SnmpUnsignedInt.MAX_VALUE+1).

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - if the specified value is negative.
Method Detail

printTimeTicks

public static final String printTimeTicks(long timeticks)
Deprecated. 
Parses the specified long value with time units and returns a String of the form d days hh:mm:ss.

Parameters:
timeticks - The value to be parsed.
Returns:
The String representation of the value.

toString

public final String toString()
Deprecated. 
Converts the timeticks value to its String form. The format of the returned String is d days hh:mm:ss.
Note: this method simply calls the printTimeTicks method.

Overrides:
toString in class SnmpInt
Returns:
The String representation of the value.

getTypeName

public final String getTypeName()
Deprecated. 
Returns a textual description of the type object.

Overrides:
getTypeName in class SnmpUnsignedInt
Returns:
ASN.1 textual description.

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.