private LoggingRootResource() { super(SUBSYSTEM_PATH, LoggingExtension.getResourceDescriptionResolver(), LoggingSubsystemAdd.INSTANCE, ReloadRequiredRemoveStepHandler.INSTANCE); } }
public SyslogHandlerResourceDefinition() { super(SYSLOG_HANDLER_PATH, LoggingExtension.getResourceDescriptionResolver(SYSLOG_HANDLER), ADD_HANDLER, HandlerOperations.REMOVE_HANDLER); }
HandlerResourceDefinition() { super(new Parameters(PATH, LoggingExtension.getResourceDescriptionResolver("deployment", NAME)).setRuntime()); }
LogFileResourceDefinition(final PathManager pathManager) { super(new Parameters(LOG_FILE_PATH, LoggingExtension.getResourceDescriptionResolver("log-file")) .setRuntime().setAccessConstraints(VIEW_SERVER_LOGS)); assert pathManager != null : "PathManager cannot be null"; this.pathManager = pathManager; }
LogFileResourceDefinition(final PathManager pathManager) { super(new Parameters(LOG_FILE_PATH, LoggingExtension.getResourceDescriptionResolver("log-file")) .setRuntime().setAccessConstraints(VIEW_SERVER_LOGS)); assert pathManager != null : "PathManager cannot be null"; this.pathManager = pathManager; }
private CustomFormatterResourceDefinition() { super(new Parameters(PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD) .setRemoveHandler(REMOVE) .setCapabilities(Capabilities.FORMATTER_CAPABILITY)); }
public PatternFormatterResourceDefinition() { super(new Parameters(PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD) .setRemoveHandler(REMOVE) .setCapabilities(Capabilities.FORMATTER_CAPABILITY)); }
private SyslogHandlerResourceDefinition() { super(new Parameters(SYSLOG_HANDLER_PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD_HANDLER) .setRemoveHandler(HandlerOperations.REMOVE_HANDLER) .setCapabilities(Capabilities.HANDLER_CAPABILITY)); }
private CustomFormatterResourceDefinition() { super(new Parameters(PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD) .setRemoveHandler(REMOVE) .setCapabilities(Capabilities.FORMATTER_CAPABILITY)); }
private SocketHandlerResourceDefinition() { super(new Parameters(PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD_HANDLER) .setRemoveHandler(REMOVE_HANDLER) .setCapabilities(Capabilities.HANDLER_CAPABILITY) ); }
public PatternFormatterResourceDefinition() { super(new Parameters(PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD) .setRemoveHandler(REMOVE) .setCapabilities(Capabilities.FORMATTER_CAPABILITY)); }
private SyslogHandlerResourceDefinition() { super(new Parameters(SYSLOG_HANDLER_PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD_HANDLER) .setRemoveHandler(HandlerOperations.REMOVE_HANDLER) .setCapabilities(Capabilities.HANDLER_CAPABILITY)); }
private SocketHandlerResourceDefinition() { super(new Parameters(PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(ADD_HANDLER) .setRemoveHandler(REMOVE_HANDLER) .setCapabilities(Capabilities.HANDLER_CAPABILITY) ); }
protected LoggingResourceDefinition(final PathManager pathManager, final WildFlyLogContextSelector contextSelector) { super( new Parameters(SUBSYSTEM_PATH, LoggingExtension.getResourceDescriptionResolver()) .setAddHandler(new LoggingSubsystemAdd(pathManager, contextSelector)) .setRemoveHandler(ReloadRequiredRemoveStepHandler.INSTANCE) .setAddRestartLevel(OperationEntry.Flag.RESTART_ALL_SERVICES) ); this.pathManager = pathManager; }
public LoggerResourceDefinition(final boolean includeLegacy) { super(LOGGER_PATH, LoggingExtension.getResourceDescriptionResolver(LOGGER), (includeLegacy ? new LoggerOperations.LoggerAddOperationStepHandler(join(ATTRIBUTES, LEGACY_ATTRIBUTES)) : new LoggerOperations.LoggerAddOperationStepHandler(ATTRIBUTES)), LoggerOperations.REMOVE_LOGGER); writableAttributes = (includeLegacy ? join(WRITABLE_ATTRIBUTES, LEGACY_ATTRIBUTES) : WRITABLE_ATTRIBUTES); this.writeHandler = new LoggerOperations.LoggerWriteAttributeHandler(writableAttributes); }
protected LoggingResourceDefinition(final PathManager pathManager, final WildFlyLogContextSelector contextSelector) { super( new Parameters(SUBSYSTEM_PATH, LoggingExtension.getResourceDescriptionResolver()) .setAddHandler(new LoggingSubsystemAdd(pathManager, contextSelector)) .setRemoveHandler(ReloadRequiredRemoveStepHandler.INSTANCE) .setAddRestartLevel(OperationEntry.Flag.RESTART_ALL_SERVICES) ); this.pathManager = pathManager; }
StructuredFormatterResourceDefinition(final PathElement pathElement, final String descriptionPrefix, final Class<? extends StructuredFormatter> type, final AttributeDefinition... additionalAttributes) { super( new Parameters(pathElement, LoggingExtension.getResourceDescriptionResolver(descriptionPrefix)) .setAddHandler(new AddStructuredFormatterStepHandler(type, Logging.join(DEFAULT_ATTRIBUTES, additionalAttributes))) .setRemoveHandler(REMOVE) .setCapabilities(Capabilities.FORMATTER_CAPABILITY) ); attributes = Logging.join(DEFAULT_ATTRIBUTES, additionalAttributes); writeHandler = new WriteStructuredFormatterStepHandler(attributes); }
StructuredFormatterResourceDefinition(final PathElement pathElement, final String descriptionPrefix, final Class<? extends StructuredFormatter> type, final AttributeDefinition... additionalAttributes) { super( new Parameters(pathElement, LoggingExtension.getResourceDescriptionResolver(descriptionPrefix)) .setAddHandler(new AddStructuredFormatterStepHandler(type, Logging.join(DEFAULT_ATTRIBUTES, additionalAttributes))) .setRemoveHandler(REMOVE) .setCapabilities(Capabilities.FORMATTER_CAPABILITY) ); attributes = Logging.join(DEFAULT_ATTRIBUTES, additionalAttributes); writeHandler = new WriteStructuredFormatterStepHandler(attributes); }
public LoggerResourceDefinition(final boolean includeLegacy) { super(new Parameters(LOGGER_PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(includeLegacy ? new LoggerOperations.LoggerAddOperationStepHandler(join(WRITABLE_ATTRIBUTES, LEGACY_ATTRIBUTES)) : new LoggerOperations.LoggerAddOperationStepHandler(WRITABLE_ATTRIBUTES)) .setRemoveHandler(LoggerOperations.REMOVE_LOGGER) .setAccessConstraints(new ApplicationTypeAccessConstraintDefinition(new ApplicationTypeConfig(LoggingExtension.SUBSYSTEM_NAME, NAME))) .setCapabilities(Capabilities.LOGGER_CAPABILITY)); writableAttributes = (includeLegacy ? join(WRITABLE_ATTRIBUTES, LEGACY_ATTRIBUTES) : WRITABLE_ATTRIBUTES); this.writeHandler = new LoggerOperations.LoggerWriteAttributeHandler(writableAttributes); }
public LoggerResourceDefinition(final boolean includeLegacy) { super(new Parameters(LOGGER_PATH, LoggingExtension.getResourceDescriptionResolver(NAME)) .setAddHandler(includeLegacy ? new LoggerOperations.LoggerAddOperationStepHandler(join(WRITABLE_ATTRIBUTES, LEGACY_ATTRIBUTES)) : new LoggerOperations.LoggerAddOperationStepHandler(WRITABLE_ATTRIBUTES)) .setRemoveHandler(LoggerOperations.REMOVE_LOGGER) .setAccessConstraints(new ApplicationTypeAccessConstraintDefinition(new ApplicationTypeConfig(LoggingExtension.SUBSYSTEM_NAME, NAME))) .setCapabilities(Capabilities.LOGGER_CAPABILITY)); writableAttributes = (includeLegacy ? join(WRITABLE_ATTRIBUTES, LEGACY_ATTRIBUTES) : WRITABLE_ATTRIBUTES); this.writeHandler = new LoggerOperations.LoggerWriteAttributeHandler(writableAttributes); }