Omaha #4072: Remove uf.common.dataplugin.grib modules from pythonPackages project.
Change-Id: Ibb512ca3d8c1f1ef83e51e70a70b6fba67b90922 Former-commit-id: 89a108e98c148429f574dae2abe4f5c5beacc323
This commit is contained in:
parent
923fb69061
commit
e3430ff7d5
5 changed files with 16 additions and 98 deletions
|
@ -20,9 +20,22 @@
|
|||
# further licensing information.
|
||||
##
|
||||
|
||||
##
|
||||
# Purges all data for a specified model from EDEX.
|
||||
#
|
||||
#
|
||||
# SOFTWARE HISTORY
|
||||
#
|
||||
# Date Ticket# Engineer Description
|
||||
# ------------ ---------- ----------- --------------------------
|
||||
# ??/??/?? #???? Initial Creation.
|
||||
# 02/09/15 #4072 dgilling Remove use of
|
||||
# DeleteAllModelDataRequest.
|
||||
#
|
||||
##
|
||||
|
||||
import logging
|
||||
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.grib.request import DeleteAllModelDataRequest
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.grid.request import DeleteAllGridDataRequest
|
||||
from ufpy import ThriftClient
|
||||
from ufpy import UsageArgumentParser
|
||||
|
@ -65,19 +78,13 @@ def main():
|
|||
client = ThriftClient.ThriftClient(options.host, options.port)
|
||||
for model in options.models:
|
||||
logger.info("Deleting all data for model [" + model + "]...")
|
||||
try:
|
||||
req = DeleteAllModelDataRequest(model)
|
||||
client.sendRequest(req)
|
||||
logger.info("Grib data for model [" + model + "] successfully deleted...")
|
||||
except Exception:
|
||||
logger.exception("Could not purge grib data for model [" + model + "]:")
|
||||
|
||||
try:
|
||||
req = DeleteAllGridDataRequest(model)
|
||||
client.sendRequest(req)
|
||||
logger.info("Grid data for model [" + model + "] successfully deleted...")
|
||||
logger.info("Data for model [" + model + "] successfully deleted...")
|
||||
except Exception:
|
||||
logger.exception("Could not purge grid data for model [" + model + "]:")
|
||||
logger.exception("Could not purge data for model [" + model + "]:")
|
||||
logger.info("purgeAllModelData is complete.")
|
||||
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
__all__ = [
|
||||
'events',
|
||||
'gfe',
|
||||
'grib',
|
||||
'grid',
|
||||
'level',
|
||||
'message',
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
##
|
||||
# This software was developed and / or modified by Raytheon Company,
|
||||
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
#
|
||||
# U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
# This software product contains export-restricted data whose
|
||||
# export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
# to non-U.S. persons whether in the United States or abroad requires
|
||||
# an export license or other authorization.
|
||||
#
|
||||
# Contractor Name: Raytheon Company
|
||||
# Contractor Address: 6825 Pine Street, Suite 340
|
||||
# Mail Stop B8
|
||||
# Omaha, NE 68106
|
||||
# 402.291.0100
|
||||
#
|
||||
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
# further licensing information.
|
||||
##
|
||||
|
||||
# File auto-generated by PythonFileGenerator
|
||||
|
||||
__all__ = [
|
||||
'request'
|
||||
]
|
||||
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
##
|
||||
# This software was developed and / or modified by Raytheon Company,
|
||||
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
#
|
||||
# U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
# This software product contains export-restricted data whose
|
||||
# export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
# to non-U.S. persons whether in the United States or abroad requires
|
||||
# an export license or other authorization.
|
||||
#
|
||||
# Contractor Name: Raytheon Company
|
||||
# Contractor Address: 6825 Pine Street, Suite 340
|
||||
# Mail Stop B8
|
||||
# Omaha, NE 68106
|
||||
# 402.291.0100
|
||||
#
|
||||
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
# further licensing information.
|
||||
##
|
||||
|
||||
# File auto-generated against equivalent DynamicSerialize Java class
|
||||
|
||||
class DeleteAllModelDataRequest(object):
|
||||
|
||||
def __init__(self, modelName=None):
|
||||
self.modelName = modelName
|
||||
|
||||
def getModelName(self):
|
||||
return self.modelName
|
||||
|
||||
def setModelName(self, modelName):
|
||||
self.modelName = modelName
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
##
|
||||
# This software was developed and / or modified by Raytheon Company,
|
||||
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
#
|
||||
# U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
# This software product contains export-restricted data whose
|
||||
# export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
# to non-U.S. persons whether in the United States or abroad requires
|
||||
# an export license or other authorization.
|
||||
#
|
||||
# Contractor Name: Raytheon Company
|
||||
# Contractor Address: 6825 Pine Street, Suite 340
|
||||
# Mail Stop B8
|
||||
# Omaha, NE 68106
|
||||
# 402.291.0100
|
||||
#
|
||||
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
# further licensing information.
|
||||
##
|
||||
|
||||
# File auto-generated by PythonFileGenerator
|
||||
|
||||
__all__ = [
|
||||
'DeleteAllModelDataRequest'
|
||||
]
|
||||
|
||||
from DeleteAllModelDataRequest import DeleteAllModelDataRequest
|
||||
|
Loading…
Add table
Reference in a new issue