Renames the supplied agent or subchannel.
public int renameAgent(String user, String agent, String subchannel, String newAgent, int agentType) throws RemoteException, SearchException
user – name of a user
agent – name of an agent to be removed
subchannel – name of a subchannel
newAgent – name of a new agent
agentType – name of an agent, in other words, agent or channel
Returns the status: 0 if failure, otherwise, successful.