/** * This is a factory method for this PermGen Threshold configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the threshold value for the PermGen option * * @return the actual type safe PermGen threshold configuration. */ public static PermGenThresholdOption get( int threshold ) { return new PermGenThresholdOption( threshold ); }
/** * This is a factory method for this CompositeKeyDepth configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param depth the composite key depth value * * @return the actual type safe CompositeKeyDepth configuration. */ public static CompositeKeyDepthOption get( int depth ) { return new CompositeKeyDepthOption( depth ); }
/** * This is a factory method for this Max Threads configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param maxThreads the maximum number of threads for partition evaluation * * @return the actual type safe max threads configuration. */ public static MaxThreadsOption get( int threshold ) { return new MaxThreadsOption( threshold ); }
/** * This is a factory method for this ConsequenceExceptionHandler configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param handler the actual consequence exception handler class to be used * * @return the actual type safe consequence exception handler configuration. */ public static ConsequenceExceptionHandlerOption get( final Class<? extends ConsequenceExceptionHandler> handler ) { return new ConsequenceExceptionHandlerOption( handler ); }
/** * This is a factory method for this Alpha Threshold configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the threshold value for the alpha hashing option * * @return the actual type safe alpha threshold configuration. */ public static AlphaThresholdOption get( int threshold ) { return new AlphaThresholdOption( threshold ); }
public static EventProcessingOption determineEventProcessingMode(String mode) { if ( STREAM.getMode().equalsIgnoreCase( mode ) ) { return STREAM; } else if ( CLOUD.getMode().equalsIgnoreCase( mode ) ) { return CLOUD; } throw new IllegalArgumentException( "Illegal enum value '" + mode + "' for EventProcessingMode" ); } }
public static IndexPrecedenceOption determineIndexPrecedence(String mode) { if ( PATTERN_ORDER.getValue().equalsIgnoreCase( mode ) ) { return PATTERN_ORDER; } else if ( EQUALITY_PRIORITY.getValue().equalsIgnoreCase( mode ) ) { return EQUALITY_PRIORITY; } throw new IllegalArgumentException( "Illegal enum value '" + mode + "' for IndexPrecedence" ); }
public String getEventProcessingMode() { return conf.getEventProcessingMode().toExternalForm(); }
/** * This is a factory method for this CompositeKeyDepth configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param depth the composite key depth value * * @return the actual type safe CompositeKeyDepth configuration. */ public static CompositeKeyDepthOption get( int depth ) { return new CompositeKeyDepthOption( depth ); }
/** * This is a factory method for this Max Threads configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param maxThreads the maximum number of threads for partition evaluation * * @return the actual type safe max threads configuration. */ public static MaxThreadsOption get( int threshold ) { return new MaxThreadsOption( threshold ); }
/** * This is a factory method for this ConsequenceExceptionHandler configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param handler the actual consequence exception handler class to be used * * @return the actual type safe consequence exception handler configuration. */ public static ConsequenceExceptionHandlerOption get( final Class<? extends ConsequenceExceptionHandler> handler ) { return new ConsequenceExceptionHandlerOption( handler ); }
/** * This is a factory method for this Alpha Threshold configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the threshold value for the alpha hashing option * * @return the actual type safe alpha threshold configuration. */ public static AlphaThresholdOption get( int threshold ) { return new AlphaThresholdOption( threshold ); }
public static EventProcessingOption determineEventProcessingMode(String mode) { if ( STREAM.getMode().equalsIgnoreCase( mode ) ) { return STREAM; } else if ( CLOUD.getMode().equalsIgnoreCase( mode ) ) { return CLOUD; } throw new IllegalArgumentException( "Illegal enum value '" + mode + "' for EventProcessingMode" ); } }
/** * This is a factory method for this PermGen Threshold configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the threshold value for the PermGen option * * @return the actual type safe PermGen threshold configuration. */ public static PermGenThresholdOption get( int threshold ) { return new PermGenThresholdOption( threshold ); }
public static IndexPrecedenceOption determineIndexPrecedence(String mode) { if ( PATTERN_ORDER.getValue().equalsIgnoreCase( mode ) ) { return PATTERN_ORDER; } else if ( EQUALITY_PRIORITY.getValue().equalsIgnoreCase( mode ) ) { return EQUALITY_PRIORITY; } throw new IllegalArgumentException( "Illegal enum value '" + mode + "' for IndexPrecedence" ); }
/** * This is a factory method for this CompositeKeyDepth configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param depth the composite key depth value * * @return the actual type safe CompositeKeyDepth configuration. */ public static CompositeKeyDepthOption get( int depth ) { return new CompositeKeyDepthOption( depth ); }
/** * This is a factory method for this Max Threads configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param maxThreads the maximum number of threads for partition evaluation * * @return the actual type safe max threads configuration. */ public static MaxThreadsOption get( int threshold ) { return new MaxThreadsOption( threshold ); }
/** * This is a factory method for this ConsequenceExceptionHandler configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param handler the actual consequence exception handler class to be used * * @return the actual type safe consequence exception handler configuration. */ public static ConsequenceExceptionHandlerOption get( final Class<? extends ConsequenceExceptionHandler> handler ) { return new ConsequenceExceptionHandlerOption( handler ); }
/** * This is a factory method for this Alpha Threshold configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the threshold value for the alpha hashing option * * @return the actual type safe alpha threshold configuration. */ public static AlphaThresholdOption get( int threshold ) { return new AlphaThresholdOption( threshold ); }
public static EventProcessingOption determineEventProcessingMode(String mode) { if ( STREAM.getMode().equalsIgnoreCase( mode ) ) { return STREAM; } else if ( CLOUD.getMode().equalsIgnoreCase( mode ) ) { return CLOUD; } throw new IllegalArgumentException( "Illegal enum value '" + mode + "' for EventProcessingMode" ); } }