public class AppClientFacade extends Object
| Constructor and Description |
|---|
AppClientFacade() |
| Modifier and Type | Method and Description |
|---|---|
static AppClientContainer |
acc() |
static void |
launch(String[] args) |
static void |
main(String[] args)
Prepares the ACC (if not already done by the agent) and then transfers
control to the ACC.
|
static void |
prepareACC(String agentArgsText,
Instrumentation inst) |
public static void main(String[] args)
Eventually, the Java runtime will invoke this method as the main method of the application, whether or not the command line specified the Java agent. If the agent has already run, then it will have prepared the ACC already. If the agent has not already run, then this method prepares it.
If the user has run the generated app client JAR directly - not using the appclient script - then the Java runtime will invoke this method directly and the command-line arguments should be intended for the client only; no agent or ACC settings are possible. If the user has used the appclient script, then the script will have created a Java command which specifies the agent, constructs an agent argument string, and passes as command line arguments only those values which should be passed to the client. The net result is that, no matter how the app client was launched, the args array contains only the arguments that are for the client's consumption, without any agent or ACC arguments.
args - the command line argumentspublic static AppClientContainer acc()
public static void launch(String[] args) throws NoSuchMethodException, ClassNotFoundException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, IOException, SAXParseException, InjectionException, UserError
public static void prepareACC(String agentArgsText, Instrumentation inst) throws UserError, MalformedURLException, URISyntaxException, JAXBException, FileNotFoundException, ParserConfigurationException, SAXException, IOException, Exception
Copyright © 2019. All rights reserved.