Enum RMIComponent

  • All Implemented Interfaces:
    Serializable, Comparable<RMIComponent>

    public enum RMIComponent
    extends Enum<RMIComponent>
    The RMIComponent enum represents the different RMI components that may be targeted when communicating with an RMI server. The enum contains the three well known components Registry, Activator and DGC as well as a member named CUSTOM, that is used for not well known remote objects.
    Author:
    Tobias Neitzel (@qtc_de)
    • Enum Constant Detail

      • ACTIVATOR

        public static final RMIComponent ACTIVATOR
        RMI Activation System
      • DGC

        public static final RMIComponent DGC
        Distributed Garbage Collector
      • REGISTRY

        public static final RMIComponent REGISTRY
        RMI Registry
      • CUSTOM

        public static final RMIComponent CUSTOM
        custom RMI endpoint
    • Field Detail

      • name

        public String name
        name of the RMI component
      • shortName

        public String shortName
        short name of the RMI component
    • Method Detail

      • values

        public static RMIComponent[] 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 (RMIComponent c : RMIComponent.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RMIComponent valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getByShortName

        public static RMIComponent getByShortName​(String shortName)
        Get the corresponding RMIComponent by specifying its short name.
        Parameters:
        shortName - Component shortName to look for
        Returns:
        RMIComponent matching the shortName or null