| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | namespace Ice.Internal; |
| | 4 | |
|
| | 5 | | public sealed class TraceLevels |
| | 6 | | { |
| 1 | 7 | | internal TraceLevels(Ice.Properties properties) |
| | 8 | | { |
| 1 | 9 | | dispatchCat = "Dispatch"; |
| 1 | 10 | | networkCat = "Network"; |
| 1 | 11 | | protocolCat = "Protocol"; |
| 1 | 12 | | retryCat = "Retry"; |
| 1 | 13 | | locationCat = "Locator"; |
| 1 | 14 | | slicingCat = "Slicing"; |
| 1 | 15 | | threadPoolCat = "ThreadPool"; |
| | 16 | |
|
| 1 | 17 | | string keyBase = "Ice.Trace."; |
| | 18 | |
|
| 1 | 19 | | dispatch = properties.getIcePropertyAsInt(keyBase + dispatchCat); |
| 1 | 20 | | network = properties.getIcePropertyAsInt(keyBase + networkCat); |
| 1 | 21 | | protocol = properties.getIcePropertyAsInt(keyBase + protocolCat); |
| 1 | 22 | | retry = properties.getIcePropertyAsInt(keyBase + retryCat); |
| 1 | 23 | | location = properties.getIcePropertyAsInt(keyBase + locationCat); |
| 1 | 24 | | slicing = properties.getIcePropertyAsInt(keyBase + slicingCat); |
| 1 | 25 | | threadPool = properties.getIcePropertyAsInt(keyBase + threadPoolCat); |
| 1 | 26 | | } |
| | 27 | |
|
| | 28 | | public readonly int dispatch; |
| | 29 | | public readonly string dispatchCat; |
| | 30 | | public readonly int network; |
| | 31 | | public readonly string networkCat; |
| | 32 | | public readonly int protocol; |
| | 33 | | public readonly string protocolCat; |
| | 34 | | public readonly int retry; |
| | 35 | | public readonly string retryCat; |
| | 36 | | public readonly int location; |
| | 37 | | public readonly string locationCat; |
| | 38 | | public readonly int slicing; |
| | 39 | | public readonly string slicingCat; |
| | 40 | | public readonly int threadPool; |
| | 41 | | public readonly string threadPoolCat; |
| | 42 | | } |