I would like to be able to specify custom command line options for a custom probe implementation.
Assuming that a probe writes data into a file, I would like to be able to specify the path for that file when I configure the agent library on command line, as follows:
-agentpath:.../libyjpagent.jnilib=probeclasspath=...,my_file=/some/random/path/here.txt
Is this possible?
If yes, what is the API to access those custom options?
Thanks
ovidiu
Command line option for custom probe
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Command line option for custom probe
Hello ovidiu
You can't extend the set of startup options. Instead, please use Java's properties (-Dmy_file=/some/random/path/here.txt) or an environment variable.
Best regards,
Anton
You can't extend the set of startup options. Instead, please use Java's properties (-Dmy_file=/some/random/path/here.txt) or an environment variable.
Best regards,
Anton