@PrivateApi public enum ResourceType extends Enum<ResourceType>
Enum Constant and Description |
---|
CLASS
Represents a class that will be on the classpath of the Jet job.
|
CLASSPATH_RESOURCE
Represents a classpath resource that will be on the classpath of the Jet
job.
|
DIRECTORY
Represents a directory of plain files.
|
FILE
Represents a plain file.
|
JAR
Represents a JAR file whose classes will be on the classpath of the Jet
job.
|
JARS_IN_ZIP
Represents a ZIP file that contains JAR files, all of whose classes will
be on the classpath of the Jet job.
|
Modifier and Type | Method and Description |
---|---|
static ResourceType |
getById(int id)
Returns the ResourceType for the given ID.
|
int |
getId() |
boolean |
isClassArchive()
Returns whether this resource type represents an archive containing
classes.
|
static ResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType CLASSPATH_RESOURCE
public static final ResourceType FILE
ProcessorSupplier.Context#attachedFile
.public static final ResourceType DIRECTORY
ProcessorSupplier.Context#attachedDirectory
.public static final ResourceType CLASS
public static final ResourceType JAR
public static final ResourceType JARS_IN_ZIP
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getId()
public boolean isClassArchive()
public static ResourceType getById(int id)
Copyright © 2023 Hazelcast, Inc.. All rights reserved.