org.opensolaris.os.dtrace
Enum InterfaceAttributes.DependencyClass

java.lang.Object
  extended by java.lang.Enum<InterfaceAttributes.DependencyClass>
      extended by org.opensolaris.os.dtrace.InterfaceAttributes.DependencyClass
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<InterfaceAttributes.DependencyClass>
Enclosing class:
InterfaceAttributes

public static enum InterfaceAttributes.DependencyClass
extends java.lang.Enum<InterfaceAttributes.DependencyClass>

Architectural dependency class. Tells whether an interface is common to all Solaris platforms and processors, or whether the interface is associated with a particular architecture such as SPARC processors only.


Enum Constant Summary
COMMON
          The interface is common to all Solaris systems regardless of the underlying hardware.
CPU
          The interface is specific to the CPU model of the current system.
GROUP
          The interface is specific to the hardware platform group of the current system.
ISA
          The interface is specific to the instruction set architecture (ISA) supported by the microprocessor on this system.
PLATFORM
          The interface is specific to the hardware platform of the current system.
UNKNOWN
          The interface has an unknown set of architectural dependencies.
 
Method Summary
 java.lang.String toString()
          Overridden to get the default display value.
static InterfaceAttributes.DependencyClass valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static InterfaceAttributes.DependencyClass[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final InterfaceAttributes.DependencyClass UNKNOWN
The interface has an unknown set of architectural dependencies. DTrace does not necessarily know the architectural dependencies of all entities, such as data types defined in the operating system implementation. The Unknown label is typically applied to interfaces of very low stability for which dependencies cannot be computed. The interface might not be available when using DTrace on any architecture other than the one you are currently using.


CPU

public static final InterfaceAttributes.DependencyClass CPU
The interface is specific to the CPU model of the current system. You can use the psrinfo(1M) utility's -v option to display the current CPU model and implementation names. Interfaces with CPU model dependencies might not be available on other CPU implementations, even if those CPUs export the same instruction set architecture (ISA). For example, a CPU-dependent interface on an UltraSPARC-III+ microprocessor might not be available on an UltraSPARC-II microprocessor, even though both processors support the SPARC instruction set.


PLATFORM

public static final InterfaceAttributes.DependencyClass PLATFORM
The interface is specific to the hardware platform of the current system. A platform typically associates a set of system components and architectural characteristics such as a set of supported CPU models with a system name such as SUNW, Ultra-Enterprise-10000. You can display the current platform name using the uname(1) -i option. The interface might not be available on other hardware platforms.


GROUP

public static final InterfaceAttributes.DependencyClass GROUP
The interface is specific to the hardware platform group of the current system. A platform group typically associates a set of platforms with related characteristics together under a single name, such as sun4u. You can display the current platform group name using the uname(1) -m option. The interface is available on other platforms in the platform group, but might not be available on hardware platforms that are not members of the group.


ISA

public static final InterfaceAttributes.DependencyClass ISA
The interface is specific to the instruction set architecture (ISA) supported by the microprocessor on this system. The ISA describes a specification for software that can be executed on the microprocessor, including details such as assembly language instructions and registers. You can display the native instruction sets supported by the system using the isainfo(1) utility. The interface might not be supported on systems that do not export any of of the same instruction sets. For example, an ISA-dependent interface on a Solaris SPARC system might not be supported on a Solaris x86 system.


COMMON

public static final InterfaceAttributes.DependencyClass COMMON
The interface is common to all Solaris systems regardless of the underlying hardware. DTrace programs and layered applications that depend only on Common interfaces can be executed and deployed on other Solaris systems with the same Solaris and DTrace revisions. The majority of DTrace interfaces are Common, so you can use them wherever you use Solaris.

Method Detail

values

public static InterfaceAttributes.DependencyClass[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (InterfaceAttributes.DependencyClass c : InterfaceAttributes.DependencyClass.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static InterfaceAttributes.DependencyClass valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overridden to get the default display value. To internationalize the display value, use Enum.name() instead as a lookup key.

Overrides:
toString in class java.lang.Enum<InterfaceAttributes.DependencyClass>