Package eu.tneitzel.rmg.internal
Enum RMIComponent
- java.lang.Object
-
- java.lang.Enum<RMIComponent>
-
- eu.tneitzel.rmg.internal.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)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RMIComponentgetByShortName(String shortName)Get the corresponding RMIComponent by specifying its short name.static RMIComponentvalueOf(String name)Returns the enum constant of this type with the specified name.static RMIComponent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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
-
-
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 nameNullPointerException- 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
-
-