builder.setApplicationType(ApplicationType.app); builder.setApplicationType(ApplicationType.source); builder.setApplicationType(ApplicationType.sink); builder.setApplicationType(ApplicationType.processor); builder.setApplicationType(ApplicationType.processor); builder.setApplicationType(ApplicationType.sink);
/** * Create a new builder that is initialized with properties of the given * definition. Useful for "mutating" a definition by building a slightly different * copy. * * @param definition the StreamAppDefinition to create a new Builder instance with * stream name, registeredAppName, label, and properties populated * @return a StreamAppDefinition builder */ public static Builder from(StreamAppDefinition definition) { Builder builder = new Builder(); builder.setStreamName(definition.getStreamName()).setRegisteredAppName(definition.getRegisteredAppName()) .setApplicationType(definition.getApplicationType()) .setLabel(definition.getName()).addProperties(definition.getProperties()); return builder; }