blob: b08310466131ad8d5326bb669276d11d53d5792d [file] [log] [blame]
/*
* Copyright (c) 2020 Kentyou.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Kentyou - initial API and implementation
*/
package org.eclipse.sensinact.gateway.sthbnd.http.test.bundle2;
import org.eclipse.sensinact.gateway.sthbnd.http.HttpPacket;
import org.eclipse.sensinact.gateway.sthbnd.http.annotation.HttpTaskConfiguration;
import org.eclipse.sensinact.gateway.sthbnd.http.annotation.HttpTasks;
import org.eclipse.sensinact.gateway.sthbnd.http.annotation.RecurrentHttpTask;
import org.eclipse.sensinact.gateway.sthbnd.http.smpl.HttpActivator;
@HttpTasks( recurrences = {
@RecurrentHttpTask(
delay = 1000,
period = 1000,
timeout = 20000,
recurrence = @HttpTaskConfiguration(
host = "127.0.0.1",
port="8899",
path = "/get")
)
})
public class Activator extends HttpActivator
{
/**
* @inheritDoc
*
* @see HttpActivator#getPacketType()
*/
@Override
protected Class<? extends HttpPacket> getPacketType(){
return HttpTestPacket.class;
}
}