Package org.apache.ignite.internal
Enum IgniteComponentType
- java.lang.Object
-
- java.lang.Enum<IgniteComponentType>
-
- org.apache.ignite.internal.IgniteComponentType
-
- All Implemented Interfaces:
Serializable,Comparable<IgniteComponentType>
public enum IgniteComponentType extends Enum<IgniteComponentType>
Component type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPRESSIONHADOOPDeprecated.Component was removed.HADOOP_HELPERDeprecated.Component was removed.IGFSDeprecated.Component was removed.IGFS_HELPERDeprecated.Component was removed.INDEXINGIndexing.JTAIntegration of cache transactions with JTA.QUERY_ENGINEExperimental calcite based query engine.SCHEDULECron-based scheduling, seeIgniteScheduler.SPRINGSpring XML parsing.SSHNodes starting using SSH.TRACINGOpenCensus tracing implementation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()<T> Tcreate(boolean noOp)Creates component.<T> Tcreate(GridKernalContext ctx, boolean noOp)Creates component.<T> TcreateIfInClassPath(GridKernalContext ctx, boolean mandatory)Creates component.<T> TcreateOptional()First tries to find main component class, if it is not found creates no-op implementation.<T> TcreateOptional(GridKernalContext ctx)First tries to find main component class, if it is not found creates no-op implementation.booleaninClassPath()Check whether real component class is in classpath.@Nullable MessageFactoryProvidermessageFactory()Creates message factory for the component.Stringmodule()static IgniteComponentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static IgniteComponentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGFS
@Deprecated public static final IgniteComponentType IGFS
Deprecated.Component was removed. Enum can't be removed because enum ordinal is important.
-
HADOOP
@Deprecated public static final IgniteComponentType HADOOP
Deprecated.Component was removed. Enum can't be removed because enum ordinal is important.
-
HADOOP_HELPER
@Deprecated public static final IgniteComponentType HADOOP_HELPER
Deprecated.Component was removed. Enum can't be removed because enum ordinal is important.
-
IGFS_HELPER
@Deprecated public static final IgniteComponentType IGFS_HELPER
Deprecated.Component was removed. Enum can't be removed because enum ordinal is important.
-
SPRING
public static final IgniteComponentType SPRING
Spring XML parsing.
-
INDEXING
public static final IgniteComponentType INDEXING
Indexing.
-
SSH
public static final IgniteComponentType SSH
Nodes starting using SSH.
-
JTA
public static final IgniteComponentType JTA
Integration of cache transactions with JTA.
-
SCHEDULE
public static final IgniteComponentType SCHEDULE
Cron-based scheduling, seeIgniteScheduler.
-
COMPRESSION
public static final IgniteComponentType COMPRESSION
-
TRACING
public static final IgniteComponentType TRACING
OpenCensus tracing implementation.
-
QUERY_ENGINE
public static final IgniteComponentType QUERY_ENGINE
Experimental calcite based query engine.
-
-
Method Detail
-
values
public static IgniteComponentType[] 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 (IgniteComponentType c : IgniteComponentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IgniteComponentType 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
-
className
public String className()
- Returns:
- Component class name.
-
module
public String module()
- Returns:
- Component module name.
-
inClassPath
public boolean inClassPath()
Check whether real component class is in classpath.- Returns:
Trueif in classpath.
-
create
public <T> T create(GridKernalContext ctx, boolean noOp) throws IgniteCheckedException
Creates component.- Parameters:
ctx- Kernal context.noOp- No-op flag.- Returns:
- Created component.
- Throws:
IgniteCheckedException- If failed.
-
createIfInClassPath
public <T> T createIfInClassPath(GridKernalContext ctx, boolean mandatory) throws IgniteCheckedException
Creates component.- Parameters:
ctx- Kernal context.mandatory- If the component is mandatory.- Returns:
- Created component.
- Throws:
IgniteCheckedException- If failed.
-
create
public <T> T create(boolean noOp) throws IgniteCheckedExceptionCreates component.- Parameters:
noOp- No-op flag.- Returns:
- Created component.
- Throws:
IgniteCheckedException- If failed.
-
createOptional
public <T> T createOptional(GridKernalContext ctx) throws IgniteCheckedException
First tries to find main component class, if it is not found creates no-op implementation.- Parameters:
ctx- Kernal context.- Returns:
- Created component or no-op implementation.
- Throws:
IgniteCheckedException- If failed.
-
createOptional
public <T> T createOptional() throws IgniteCheckedExceptionFirst tries to find main component class, if it is not found creates no-op implementation.- Returns:
- Created component or no-op implementation.
- Throws:
IgniteCheckedException- If failed.
-
messageFactory
@Nullable public @Nullable MessageFactoryProvider messageFactory() throws IgniteCheckedException
Creates message factory for the component.- Returns:
- Message factory or
nullif none or the component is not in classpath. - Throws:
IgniteCheckedException- If failed.
-
-