/**
* Copyright (c) 2010-2017 by the respective copyright holders.
*
* 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
*/
package org.eclipse.smarthome.binding.astro.internal.job;
import org.eclipse.smarthome.binding.astro.handler.AstroThingHandler;
import org.eclipse.smarthome.binding.astro.internal.AstroHandlerFactory;
import org.quartz.JobDataMap;
/**
* Simple job that publishes the daily info for a planet.
*
* @author Gerhard Riegler - Initial contribution
*/
public class PublishPlanetJob extends AbstractBaseJob {
/**
* {@inheritDoc}
*/
@Override
protected void executeJob(String thingUid, JobDataMap jobDataMap) {
AstroThingHandler astroHandler = AstroHandlerFactory.getHandler(thingUid);
if (astroHandler != null) {
astroHandler.publishDailyInfo();
}
}
}