Topic: 这样的XML怎么读啊?

  Print this page

1.这样的XML怎么读啊? Copy to clipboard
Posted by: kingtomxy
Posted on: 2007-07-23 23:16

<sandstorm>

# Global options used by Sandstorm
<global>

<threadPool>
initialThreads 1    # Initial number of threads per stage
minThreads 1    # Min number of threads per stage
maxThreads 20    # Max number of threads per stage
blockTime 1000    # Time to block waiting for events (ms)

<sizeController>
autoMaxDetect false
enable true    # Enable thread pool sizing controller
  delay 2000    # Delay between measurements (ms)
  threshold 10    # Queue threshold above which to add thread
  idleTimeThreshold 1000  # Idle time (ms) after which thread dies
</sizeController>
</threadPool>

<batchController>
enable false    # Enable batching controller
minBatch 1    # Minimum batching factor
maxBatch 1024    # Maximum batching factor
# maxBatch 4    # Maximum batching factor
recalcWindow 100    # Averaging window
smoothConst 0.5    # Smoothing constant
</batchController>

<profile>
enable false  # Enable profiler (sandstorm-profile.txt)
delay 100      # Delay between measurements (ms)
sockets false    # Whether to include socket queues
graph false    # Whether to generate stage graph
</profile>
</sandstorm>

其中#号后面的是注释不需要读,enable false 和delay 100中前面的文字是“变量”后面的是它的值?
那位大侠能帮帮忙啊,求助啊!谢谢!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923