I've been trying to set maxResourceJobs and maxResourceFileTransfers to throttle agents down for v10 to v12 agent upgrades (automated agent upgrades not available until we are on 12). This code block is what i'm using:
UC4HostName host = new UC4HostName(uc4Server);
AgentList clientAgents = new AgentList();
Iterator it = clientAgents.iterator();
AgentListItem tempAgent = (AgentListItem) it.next();
UC4HostName hostName = tempAgent.getName();
GetAgentProperties getAgentProperties = new GetAgentProperties(host);
SetAgentProperties setAgentProperties = new SetAgentProperties(getAgentProperties);
The two methods I'm trying to call (setAgentProperties.setMaxJobs and setMaxFileTransfers are methods not found. I'm using the v12.0 jar and these were introduced in v11. Any ideas if it's a bug or perhaps I'm not getting to the methods?
The docs show there are 5 methods for SetAgentProperties and I'm only seeing isDirty() and setHostTraceOptions().
I tried this without the iterator as well to pull the agent details directly but have the same result.
Any help greatly appreciated!