}
public synchronized void SetUTCPoint(String pointname, String value)
{
DataPoint dp = dsTable_.getDataPoint(pointname);
if (dp == null)
{
logger_.error("Can not find datapoint " + pointname + " for datastore " + datastore_.getId());
return;
}
//additional validation
if (dp.getDataPointType() != EDataPointType.TYPE_UTC)
return;
try
{
Date date = sdf_.parse(value);
int intVal = (int)(date.getTime() / 1000);
dp.setIntValue(intVal);
}
catch (ParseException pe)
{
logger_.error("Invalid date string format: " + value +
". Must be in '" + sdf_.toString() + "' format.");