You create an ESX agency by calling the EsxAgentManager.createAgency() method. You must specify ESX agent configurations for each version of ESX Server on which you deploy ESX agents.
When you call the EsxAgentManager.createAgency() method you must pass it an AgencyConfigInfo object and a string to define the initial goal state of the ESX agents that the agency deploys. The initialGoalState property informs ESX Agent Manager of the state in which to deploy ESX agent virtual machines when the solution first runs.
The EAM Sample Solution defines a function that creates an ESX agency in the AgentHandler.java class.