Search in sources :

Example 11 with LSWorkerHeartbeat

use of org.apache.storm.generated.LSWorkerHeartbeat in project storm by apache.

the class SlotTest method mkWorkerHB.

static LSWorkerHeartbeat mkWorkerHB(String id, int port, List<ExecutorInfo> exec, Integer timeSecs) {
    LSWorkerHeartbeat ret = new LSWorkerHeartbeat();
    ret.set_topology_id(id);
    ret.set_port(port);
    ret.set_executors(exec);
    ret.set_time_secs(timeSecs);
    return ret;
}
Also used : LSWorkerHeartbeat(org.apache.storm.generated.LSWorkerHeartbeat)

Aggregations

LSWorkerHeartbeat (org.apache.storm.generated.LSWorkerHeartbeat)11 LocalState (org.apache.storm.utils.LocalState)7 ExecutorInfo (org.apache.storm.generated.ExecutorInfo)6 DynamicState (org.apache.storm.daemon.supervisor.Slot.DynamicState)5 StaticState (org.apache.storm.daemon.supervisor.Slot.StaticState)5 LocalAssignment (org.apache.storm.generated.LocalAssignment)5 ILocalizer (org.apache.storm.localizer.ILocalizer)4 ISupervisor (org.apache.storm.scheduler.ISupervisor)4 SimulatedTime (org.apache.storm.utils.Time.SimulatedTime)4 Test (org.junit.Test)4 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Preconditions (com.google.common.base.Preconditions)1 EventHandler (com.lmax.disruptor.EventHandler)1 File (java.io.File)1 IOException (java.io.IOException)1 Charset (java.nio.charset.Charset)1 PrivilegedExceptionAction (java.security.PrivilegedExceptionAction)1 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1