AnsweredAssumed Answered

SetAgentProperties Does Not Show All Methods in 12.0

Question asked by BenCroffut603954 on Jun 12, 2018
Latest reply on Jun 12, 2018 by BenCroffut603954

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();
while (it.hasNext()){
    AgentListItem tempAgent = (AgentListItem);
    UC4HostName hostName = tempAgent.getName();
    if (hostName.equals(host)){
        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!