Enum Class ResourceIdentifier

java.lang.Object
java.lang.Enum<ResourceIdentifier>
org.jppf.classloader.ResourceIdentifier
All Implemented Interfaces:
Serializable, Comparable<ResourceIdentifier>, Constable

public enum ResourceIdentifier extends Enum<ResourceIdentifier>
An enumeration of the possible keys in a JPPFResourceWrapper data map.
Author:
Laurent Cohen
  • Enum Constant Details

    • DEFINITION

      public static final ResourceIdentifier DEFINITION
      A resource definition, normally file or class bytes.
    • MULTIPLE

      public static final ResourceIdentifier MULTIPLE
      Flag indicating that all definitions that can be found for a given resource should be returned.
    • MULTIPLE_NAMES

      public static final ResourceIdentifier MULTIPLE_NAMES
      The names of multiple resources for which to find the defintion.
    • NAME

      public static final ResourceIdentifier NAME
      The name of a single resource for which to lookup the defintion.
    • CALLABLE

      public static final ResourceIdentifier CALLABLE
      The definition of the result of a callable sent by a node to a client.
    • CALLABLE_ID

      public static final ResourceIdentifier CALLABLE_ID
      The identifier of a callable sent by a node to a client.
    • DRIVER_CALLABLE_ID

      public static final ResourceIdentifier DRIVER_CALLABLE_ID
      The identifier of a callable within a driver instance.
    • RESOURCES_KEY

      public static final ResourceIdentifier RESOURCES_KEY
      The resources held by a CompositeResourceWrapper.
    • RESOURCE_MAP

      public static final ResourceIdentifier RESOURCE_MAP
      Mapping of a list of available definitions for each resource name when looking up multiple resources.
    • RESOURCE_LIST

      public static final ResourceIdentifier RESOURCE_LIST
      A list of available definitions for a single resource name.
    • NODE_UUID

      public static final ResourceIdentifier NODE_UUID
      A node uuid.
    • PEER

      public static final ResourceIdentifier PEER
      Flag indicating whether the remote peer is a peer server.
    • CONNECTION_UUID

      public static final ResourceIdentifier CONNECTION_UUID
      Unique id of a client connection.
    • FILE_LOOKUP_ALLOWED

      public static final ResourceIdentifier FILE_LOOKUP_ALLOWED
      Whether lookups of resource in the file system are allowed.
  • Method Details

    • values

      public static ResourceIdentifier[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResourceIdentifier valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null