com.zeroturnaround.liverebel.api.impl
Class AgentUpdateImpl

java.lang.Object
  extended by com.zeroturnaround.liverebel.api.impl.AgentUpdateImpl
All Implemented Interfaces:
AgentUpdate

public class AgentUpdateImpl
extends Object
implements AgentUpdate


Field Summary
protected  RestConnection con
           
protected  JsonParser parser
           
 
Constructor Summary
AgentUpdateImpl(RestConnection con, JsonParser parser)
           
 
Method Summary
 void execute()
          Execute this update and wait until it's finished.
 AgentUpdate on(Collection<String> serverIds)
          Change the LiveRebel Agent version only on the given servers.
 AgentUpdate on(String serverId)
          Change the LiveRebel Agent version only on the given server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

con

protected final RestConnection con

parser

protected final JsonParser parser
Constructor Detail

AgentUpdateImpl

public AgentUpdateImpl(RestConnection con,
                       JsonParser parser)
Method Detail

on

public AgentUpdate on(String serverId)
Description copied from interface: AgentUpdate
Change the LiveRebel Agent version only on the given server.

Specified by:
on in interface AgentUpdate
Parameters:
serverId - server Id.

on

public AgentUpdate on(Collection<String> serverIds)
Description copied from interface: AgentUpdate
Change the LiveRebel Agent version only on the given servers.

Specified by:
on in interface AgentUpdate
Parameters:
serverIds - server Ids.

execute

public void execute()
Description copied from interface: AgentUpdate
Execute this update and wait until it's finished.

Specified by:
execute in interface AgentUpdate


Copyright © 2012. All Rights Reserved.