Ejemplo n.º 1
0
        public static LogAggregationContext NewInstance(string includePattern, string excludePattern
                                                        , string rolledLogsIncludePattern, string rolledLogsExcludePattern)
        {
            LogAggregationContext context = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <LogAggregationContext
                                                                                           >();

            context.SetIncludePattern(includePattern);
            context.SetExcludePattern(excludePattern);
            context.SetRolledLogsIncludePattern(rolledLogsIncludePattern);
            context.SetRolledLogsExcludePattern(rolledLogsExcludePattern);
            return(context);
        }