提取TRA文件的TRA配置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了提取TRA文件的TRA配置相关的知识,希望对你有一定的参考价值。
Used to extract the various config parameters from the TRA file
#!/user/bin/perl -w use strict; use File::Find; my @DIRLIST = ("c:\scratch", "c:\sukanta\scratch"); # Returns the SBRRES_* tables, there can be duplicate tokens sub extract_tra_params { my %params = (); # read the input file while(<FILE>) { if (/^(java.heap.size.max)=(.*)$/) { $params{$1} = $2; } elsif (/^(java.heap.size.initial)=(.*)$/) { $params{$1} = $2; } elsif (/^(tibco.deployment)=(.*)$/) { $params{$1} = $2; } elsif (/^(FlowLimit.*)=(.*)$/) { $params{$1} = $2; } elsif (/^(MaxJobs.*)=(.*)$/) { $params{$1} = $2; } elsif (/^(Engine.ThreadCount)=(.*)$/) { $params{$1} = $2; } elsif (/^(java.thread.stack.size)=(.*)$/) { $params{$1} = $2; } elsif (/^(Hawk.Daemon)=(.*)$/) { $params{$1} = $2; } else { } } # find the unique tables } sub pretty_print { my $key; my (%params) = @_; } } # # This function will be called for each file by the find function # sub process_file { my $fname = $_; my %params = (); %params = extract_tra_params($fname); pretty_print(%params); } } find(&process_file, @DIRLIST);
以上是关于提取TRA文件的TRA配置的主要内容,如果未能解决你的问题,请参考以下文章
text Confronto报告anche tra ambienti diversi SE39
Edge-assisted Tra?ic Engineering and applications in the IoT
Android -- java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack tra