public class SnifferConfigInitializer extends Object
SnifferConfigInitializer initializes all configs in several way.| Constructor and Description |
|---|
SnifferConfigInitializer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initialize(String agentOptions)
If the specified agent config path is set, the agent will try to locate the specified agent config.
|
static boolean |
isInitCompleted() |
public static void initialize(String agentOptions) throws ConfigNotFoundException, AgentPackageNotFoundException
Also try to override the config by system.properties. All the keys in this place should
start with ENV_KEY_PREFIX. e.g. in env `skywalking.agent.service_name=yourAppName` to override
`agent.service_name` in config file.
At the end, `agent.service_name` and `collector.servers` must not be blank.
public static boolean isInitCompleted()
Copyright © 2019 The Apache Software Foundation. All rights reserved.