com.cumulocity.sdk.client.devicecontrol.autopoll
Class OperationsQueueHandler

java.lang.Object
  extended by com.cumulocity.sdk.client.devicecontrol.autopoll.OperationsQueueHandler

public class OperationsQueueHandler
extends Object

This class is responsible for polling queue for operations to be performed by OperationProcessor instance. When operations is going to be performed, first status of operationRep in REST is changed to "executing", then OperationProcessor is triggered and after that status of operationRep in REST is changed accordingly to return value of OperationProcessor instance.


Field Summary
static String INTERNAL
           
 
Constructor Summary
OperationsQueueHandler(OperationProcessor operationProcessor, OperationsQueue queue, DeviceControlApi deviceControlApi)
           
 
Method Summary
 void start()
          Starts, if it's not started yet
 void stop()
          Stops after finishing operation in progress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL

public static final String INTERNAL
See Also:
Constant Field Values
Constructor Detail

OperationsQueueHandler

public OperationsQueueHandler(OperationProcessor operationProcessor,
                              OperationsQueue queue,
                              DeviceControlApi deviceControlApi)
Method Detail

stop

public void stop()
Stops after finishing operation in progress


start

public void start()
Starts, if it's not started yet



Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.