Issue #1989 remove dead files
Change-Id: I21e955cc4ebf98f75d26d46f95c2e889c64d1266 Former-commit-id:b01f942e66
[formerly9f8654e4ff
] [formerly1ecdd989df
] [formerlyb01f942e66
[formerly9f8654e4ff
] [formerly1ecdd989df
] [formerlyce2579a289
[formerly1ecdd989df
[formerly 354c2f6a304bb48d82243daf2e80236f7fe05a54]]]] Former-commit-id:ce2579a289
Former-commit-id:d71f246645
[formerly53f994c0a8
] [formerly 2076bee14faf74bd27ac75d44642ca376db29ce9 [formerly04c7c4a4da
]] Former-commit-id: 3719af426331d3f6e0af07178ef4589133d1d3c9 [formerlyb9bfcead05
] Former-commit-id:6a1c713e6f
This commit is contained in:
parent
d88235afb8
commit
298b3ed015
68 changed files with 0 additions and 7617 deletions
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<classpath>
|
|
||||||
<classpathentry exported="true" kind="lib" path="nis.jar"/>
|
|
||||||
<classpathentry exported="true" kind="lib" path="providerutil.jar"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
|
||||||
<classpathentry kind="output" path="bin"/>
|
|
||||||
</classpath>
|
|
|
@ -1,28 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>com.sun.jndi.nis</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.pde.PluginNature</nature>
|
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
|
@ -1,8 +0,0 @@
|
||||||
#Thu Jul 14 11:28:20 CDT 2011
|
|
||||||
eclipse.preferences.version=1
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
|
||||||
org.eclipse.jdt.core.compiler.source=1.6
|
|
|
@ -1,19 +0,0 @@
|
||||||
Manifest-Version: 1.0
|
|
||||||
Bundle-ManifestVersion: 2
|
|
||||||
Bundle-Name: Nis Plugin-in
|
|
||||||
Bundle-SymbolicName: com.sun.jndi.nis
|
|
||||||
Bundle-Version: 1.0.0.qualifier
|
|
||||||
Bundle-Vendor: SUN
|
|
||||||
Bundle-ClassPath: nis.jar,
|
|
||||||
providerutil.jar
|
|
||||||
Export-Package: com.sun.jndi.internal.net.DNS,
|
|
||||||
com.sun.jndi.internal.onc.rpc,
|
|
||||||
com.sun.jndi.internal.onc.yp,
|
|
||||||
com.sun.jndi.nis,
|
|
||||||
com.sun.jndi.toolkit.chars,
|
|
||||||
com.sun.jndi.toolkit.corba,
|
|
||||||
com.sun.jndi.toolkit.ctx,
|
|
||||||
com.sun.jndi.toolkit.dir,
|
|
||||||
com.sun.jndi.toolkit.url,
|
|
||||||
com.sun.jndi.url.jndi,
|
|
||||||
com.sun.jndi.url.nis
|
|
|
@ -1,4 +0,0 @@
|
||||||
bin.includes = META-INF/,\
|
|
||||||
nis.jar,\
|
|
||||||
providerutil.jar
|
|
||||||
jars.compile.order =
|
|
Binary file not shown.
Binary file not shown.
100
edexOsgi/build.edex/esb/conf/cache/jta.properties
vendored
100
edexOsgi/build.edex/esb/conf/cache/jta.properties
vendored
|
@ -1,100 +0,0 @@
|
||||||
# SAMPLE PROPERTIES FILE FOR THE TRANSACTION SERVICE
|
|
||||||
# THIS FILE ILLUSTRATES THE DIFFERENT SETTINGS FOR THE TRANSACTION MANAGER
|
|
||||||
# UNCOMMENT THE ASSIGNMENTS TO OVERRIDE DEFAULT VALUES;
|
|
||||||
|
|
||||||
# Required: factory implementation class of the transaction core.
|
|
||||||
# NOTE: there is no default for this, so it MUST be specified!
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.service=com.atomikos.icatch.standalone.UserTransactionServiceFactory
|
|
||||||
|
|
||||||
|
|
||||||
# Set base name of file where messages are output
|
|
||||||
# (also known as the 'console file').
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.console_file_name = tm.log
|
|
||||||
|
|
||||||
# Size limit (in bytes) for the console file;
|
|
||||||
# negative means unlimited.
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.console_file_limit=314572800
|
|
||||||
|
|
||||||
# For size-limited console files, this option
|
|
||||||
# specifies a number of rotating files to
|
|
||||||
# maintain.
|
|
||||||
#
|
|
||||||
# com.atomikos.icatch.console_file_count=1
|
|
||||||
|
|
||||||
# Set the number of log writes between checkpoints
|
|
||||||
#
|
|
||||||
# com.atomikos.icatch.checkpoint_interval=500
|
|
||||||
|
|
||||||
# Set output directory where console file and other files are to be put
|
|
||||||
# make sure this directory exists!
|
|
||||||
# njensen: this lies, it's actually the below comment
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.output_dir = ../logs/
|
|
||||||
|
|
||||||
# Set directory of log files; make sure this directory exists!
|
|
||||||
# njensen: this lies, it's actually the above comment
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.log_base_dir = ./
|
|
||||||
|
|
||||||
# Set base name of log file
|
|
||||||
# this name will be used as the first part of
|
|
||||||
# the system-generated log file name
|
|
||||||
#
|
|
||||||
# com.atomikos.icatch.log_base_name = tmlog
|
|
||||||
|
|
||||||
# Set the max number of active local transactions
|
|
||||||
# or -1 for unlimited.
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.max_actives = 50
|
|
||||||
|
|
||||||
# Set the default timeout (in milliseconds) for local transactions
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.default_jta_timeout = 300000
|
|
||||||
|
|
||||||
# Set the max timeout (in milliseconds) for local transactions
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.max_timeout = 300000
|
|
||||||
|
|
||||||
# The globally unique name of this transaction manager process
|
|
||||||
# override this value with a globally unique name
|
|
||||||
#
|
|
||||||
# com.atomikos.icatch.tm_unique_name = tm
|
|
||||||
|
|
||||||
# Do we want to use parallel subtransactions? JTA's default
|
|
||||||
# is NO for J2EE compatibility
|
|
||||||
#
|
|
||||||
# com.atomikos.icatch.serial_jta_transactions=true
|
|
||||||
|
|
||||||
# If you want to do explicit resource registration then
|
|
||||||
# you need to set this value to false.
|
|
||||||
#
|
|
||||||
# com.atomikos.icatch.automatic_resource_registration=true
|
|
||||||
|
|
||||||
# Set this to WARN, INFO or DEBUG to control the granularity
|
|
||||||
# of output to the console file.
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.console_log_level=WARN
|
|
||||||
|
|
||||||
# Do you want transaction logging to be enabled or not?
|
|
||||||
# If set to false, then no logging overhead will be done
|
|
||||||
# at the risk of losing data after restart or crash.
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.enable_logging=false
|
|
||||||
|
|
||||||
# Should two-phase commit be done in (multi-)threaded mode or not?
|
|
||||||
# Set this to false if you want commits to be ordered according
|
|
||||||
# to the order in which resources are added to the transaction.
|
|
||||||
#
|
|
||||||
# NOTE: threads are reused on JDK 1.5 or higher.
|
|
||||||
# For JDK 1.4, thread reuse is enabled as soon as the
|
|
||||||
# concurrent backport is in the classpath - see
|
|
||||||
# http://mirrors.ibiblio.org/pub/mirrors/maven2/backport-util-concurrent/backport-util-concurrent/
|
|
||||||
#
|
|
||||||
# com.atomikos.icatch.threaded_2pc=true
|
|
||||||
|
|
||||||
# Should shutdown of the VM trigger shutdown of the transaction core too?
|
|
||||||
#
|
|
||||||
com.atomikos.icatch.force_shutdown_on_vm_exit=true
|
|
158
edexOsgi/build.edex/esb/conf/cache/treecache.xml
vendored
158
edexOsgi/build.edex/esb/conf/cache/treecache.xml
vendored
|
@ -1,158 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
isolation levels supported: READ_COMMITTED and REPEATABLE_READ
|
|
||||||
nodeLockingSchemes: mvcc, pessimistic (deprecated), optimistic (deprecated)
|
|
||||||
-->
|
|
||||||
<locking
|
|
||||||
isolationLevel="READ_COMMITTED"
|
|
||||||
lockParentForChildInsertRemove="false"
|
|
||||||
lockAcquisitionTimeout="20000"
|
|
||||||
nodeLockingScheme="mvcc"
|
|
||||||
writeSkewCheck="false"
|
|
||||||
concurrencyLevel="500"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used to register a transaction manager and participate in ongoing transactions.
|
|
||||||
-->
|
|
||||||
<transaction
|
|
||||||
transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"
|
|
||||||
syncRollbackPhase="false"
|
|
||||||
syncCommitPhase="false"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used to register JMX statistics in any available MBean server
|
|
||||||
-->
|
|
||||||
<jmxStatistics
|
|
||||||
enabled="false"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
If region based marshalling is used, defines whether new regions are inactive on startup.
|
|
||||||
-->
|
|
||||||
<startup
|
|
||||||
regionsInactiveOnStartup="true"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used to register JVM shutdown hooks.
|
|
||||||
hookBehavior: DEFAULT, REGISTER, DONT_REGISTER
|
|
||||||
-->
|
|
||||||
<shutdown
|
|
||||||
hookBehavior="DEFAULT"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used to define async listener notification thread pool size
|
|
||||||
-->
|
|
||||||
<listeners
|
|
||||||
asyncPoolSize="1"
|
|
||||||
asyncQueueSize="1000000"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used to enable invocation batching and allow the use of Cache.startBatch()/endBatch() methods.
|
|
||||||
-->
|
|
||||||
<invocationBatching
|
|
||||||
enabled="false"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
This element specifies that the cache is clustered.
|
|
||||||
modes supported: replication (r) or invalidation (i).
|
|
||||||
-->
|
|
||||||
<clustering mode="invalidation" clusterName="EdexCache-cluster">
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Defines whether to retrieve state on startup
|
|
||||||
-->
|
|
||||||
<stateRetrieval timeout="20000" fetchInMemoryState="false" nonBlocking="false"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Network calls are synchronous.
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
<sync replTimeout="20000"/>
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
Uncomment this for async replication.
|
|
||||||
-->
|
|
||||||
<async useReplQueue="false" serializationExecutorPoolSize="20" serializationExecutorQueueSize="5000000"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Configures the JGroups channel. Looks up a JGroups config file on the classpath or filesystem. udp.xml
|
|
||||||
ships with jgroups.jar and will be picked up by the class loader.
|
|
||||||
-->
|
|
||||||
<jgroupsConfig>
|
|
||||||
<UDP
|
|
||||||
mcast_addr="224.10.10.10"
|
|
||||||
mcast_port="${cache.mcast.port}"
|
|
||||||
tos="8"
|
|
||||||
ucast_recv_buf_size="20M"
|
|
||||||
ucast_send_buf_size="640K"
|
|
||||||
mcast_recv_buf_size="25M"
|
|
||||||
mcast_send_buf_size="640K"
|
|
||||||
loopback="true"
|
|
||||||
discard_incompatible_packets="true"
|
|
||||||
max_bundle_size="64K"
|
|
||||||
max_bundle_timeout="30"
|
|
||||||
ip_ttl="2"
|
|
||||||
enable_bundling="true"
|
|
||||||
enable_diagnostics="true"
|
|
||||||
timer.num_threads="4"
|
|
||||||
|
|
||||||
thread_pool.enabled="true"
|
|
||||||
thread_pool.min_threads="2"
|
|
||||||
thread_pool.max_threads="8"
|
|
||||||
thread_pool.keep_alive_time="10000"
|
|
||||||
thread_pool.queue_enabled="true"
|
|
||||||
thread_pool.queue_max_size="100"
|
|
||||||
thread_naming_pattern="pl"
|
|
||||||
thread_pool.rejection_policy="Run"
|
|
||||||
|
|
||||||
oob_thread_pool.enabled="true"
|
|
||||||
oob_thread_pool.min_threads="1"
|
|
||||||
oob_thread_pool.max_threads="8"
|
|
||||||
oob_thread_pool.keep_alive_time="10000"
|
|
||||||
oob_thread_pool.queue_enabled="true"
|
|
||||||
oob_thread_pool.queue_max_size="100"
|
|
||||||
oob_thread_pool.rejection_policy="Run"
|
|
||||||
/>
|
|
||||||
<PING timeout="2000"/>
|
|
||||||
<MERGE2 max_interval="30000" min_interval="10000"/>
|
|
||||||
<FD_SOCK stats="false"/>
|
|
||||||
<VERIFY_SUSPECT timeout="5000"/>
|
|
||||||
<pbcast.NAKACK use_stats_for_retransmission="false"
|
|
||||||
exponential_backoff="150"
|
|
||||||
use_mcast_xmit="true" gc_lag="25"
|
|
||||||
retransmit_timeout="300,600,1200,2400,3600"
|
|
||||||
discard_delivered_msgs="true"/>
|
|
||||||
<UNICAST timeout="300,600,1200,2400,3600"/>
|
|
||||||
<pbcast.STABLE desired_avg_gossip="50000" max_bytes="1M" stability_delay="1000"/>
|
|
||||||
<pbcast.GMS join_timeout="10000" print_local_addr="true"
|
|
||||||
view_bundling="true"/>
|
|
||||||
<FC max_credits="500K"
|
|
||||||
min_threshold="0.20"/>
|
|
||||||
<FRAG2 frag_size="60K"/>
|
|
||||||
<pbcast.STREAMING_STATE_TRANSFER/>
|
|
||||||
<pbcast.FLUSH timeout="0"/>
|
|
||||||
|
|
||||||
</jgroupsConfig>
|
|
||||||
</clustering>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Eviction configuration. WakeupInterval defines how often the eviction thread runs, in milliseconds. 0 means
|
|
||||||
the eviction thread will never run.
|
|
||||||
-->
|
|
||||||
<!-- >eviction wakeUpInterval="500"-->
|
|
||||||
<eviction wakeUpInterval="500">
|
|
||||||
<default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" eventQueueSize="200000">
|
|
||||||
<property name="maxNodes" value="1000"/>
|
|
||||||
<property name="timeToLive" value="300000"/>
|
|
||||||
<property name="minTimeToLive" value="0"/>
|
|
||||||
<property name="maxAge" value="-1"/>
|
|
||||||
</default>
|
|
||||||
|
|
||||||
</eviction>
|
|
||||||
|
|
||||||
</jbosscache>
|
|
|
@ -1,155 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# ------------------------------------------------------------------------
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
# ------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# load system-wide activemq configuration
|
|
||||||
if [ -f "/etc/activemq.conf" ] ; then
|
|
||||||
. /etc/activemq.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
# provide default values for people who don't use RPMs
|
|
||||||
if [ -z "$usejikes" ] ; then
|
|
||||||
usejikes=false;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# load user activemq configuration
|
|
||||||
if [ -f "$HOME/.activemqrc" ] ; then
|
|
||||||
. "$HOME/.activemqrc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# OS specific support. $var _must_ be set to either true or false.
|
|
||||||
cygwin=false;
|
|
||||||
darwin=false;
|
|
||||||
case "`uname`" in
|
|
||||||
CYGWIN*) cygwin=true ;;
|
|
||||||
Darwin*) darwin=true
|
|
||||||
if [ -z "$JAVA_HOME" ] ; then
|
|
||||||
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -z "$ACTIVEMQ_HOME" ] ; then
|
|
||||||
# try to find ACTIVEMQ
|
|
||||||
if [ -d /opt/activemq ] ; then
|
|
||||||
ACTIVEMQ_HOME=/opt/activemq
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "${HOME}/opt/activemq" ] ; then
|
|
||||||
ACTIVEMQ_HOME="${HOME}/opt/activemq"
|
|
||||||
fi
|
|
||||||
|
|
||||||
## resolve links - $0 may be a link to activemq's home
|
|
||||||
PRG="$0"
|
|
||||||
progname=`basename "$0"`
|
|
||||||
saveddir=`pwd`
|
|
||||||
|
|
||||||
# need this for relative symlinks
|
|
||||||
dirname_prg=`dirname "$PRG"`
|
|
||||||
cd "$dirname_prg"
|
|
||||||
|
|
||||||
while [ -h "$PRG" ] ; do
|
|
||||||
ls=`ls -ld "$PRG"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '.*/.*' > /dev/null; then
|
|
||||||
PRG="$link"
|
|
||||||
else
|
|
||||||
PRG=`dirname "$PRG"`"/$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
ACTIVEMQ_HOME=`dirname "$PRG"`/..
|
|
||||||
|
|
||||||
cd "$saveddir"
|
|
||||||
|
|
||||||
# make it fully qualified
|
|
||||||
ACTIVEMQ_HOME=`cd "$ACTIVEMQ_HOME" && pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
|
||||||
if $cygwin ; then
|
|
||||||
[ -n "$ACTIVEMQ_HOME" ] &&
|
|
||||||
ACTIVEMQ_HOME=`cygpath --unix "$ACTIVEMQ_HOME"`
|
|
||||||
[ -n "$JAVA_HOME" ] &&
|
|
||||||
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
|
||||||
[ -n "$CLASSPATH" ] &&
|
|
||||||
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$JAVACMD" ] ; then
|
|
||||||
if [ -n "$JAVA_HOME" ] ; then
|
|
||||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
||||||
# IBM's JDK on AIX uses strange locations for the executables
|
|
||||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
|
||||||
else
|
|
||||||
JAVACMD="$JAVA_HOME/bin/java"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
JAVACMD=`which java 2> /dev/null `
|
|
||||||
if [ -z "$JAVACMD" ] ; then
|
|
||||||
JAVACMD=java
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -x "$JAVACMD" ] ; then
|
|
||||||
echo "Error: JAVA_HOME is not defined correctly."
|
|
||||||
echo " We cannot execute $JAVACMD"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$ACTIVEMQ_BASE" ] ; then
|
|
||||||
ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For Cygwin, switch paths to Windows format before running java
|
|
||||||
if $cygwin; then
|
|
||||||
ACTIVEMQ_HOME=`cygpath --windows "$ACTIVEMQ_HOME"`
|
|
||||||
ACTIVEMQ_BASE=`cygpath --windows "$ACTIVEMQ_BASE"`
|
|
||||||
JAVA_HOME=`cygpath --windows "$JAVA_HOME"`
|
|
||||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
|
||||||
CYGHOME=`cygpath --windows "$HOME"`
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$ACTIVEMQ_OPTS" ] ; then
|
|
||||||
ACTIVEMQ_OPTS="-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dderby.system.home=${ACTIVEMQ_BASE}/data -Dderby.storage.fileSyncTransactionLog=true"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$SUNJMX" ] ; then
|
|
||||||
#SUNJMX="-Dcom.sun.management.jmxremote.port=1616 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
|
|
||||||
SUNJMX="-Dcom.sun.management.jmxremote"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$SSL_OPTS" ] ; then
|
|
||||||
SSL_OPTS="-Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=${ACTIVEMQ_BASE}/conf/broker.ks -Djavax.net.ssl.trustStore=${ACTIVEMQ_BASE}/conf/broker.ts"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $SUNJMX $SSL_OPTS"
|
|
||||||
# Uncomment to enable YourKit profiling
|
|
||||||
#ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
|
||||||
|
|
||||||
# Uncomment to enable remote debugging
|
|
||||||
#ACTIVEMQ_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
|
|
||||||
|
|
||||||
#ACTIVEMQ_TASK="start"
|
|
||||||
if [ -n "$CYGHOME" ]; then
|
|
||||||
exec "$JAVACMD" $ACTIVEMQ_DEBUG_OPTS $ACTIVEMQ_OPTS -classpath "${ACTIVEMQ_CLASSPATH}" -Dactivemq.home="${ACTIVEMQ_HOME}" -Dactivemq.base="${ACTIVEMQ_BASE}" -Dcygwin.user.home="$CYGHOME" -jar "${ACTIVEMQ_HOME}/bin/run.jar" $ACTIVEMQ_TASK $@
|
|
||||||
else
|
|
||||||
exec "$JAVACMD" $ACTIVEMQ_DEBUG_OPTS $ACTIVEMQ_OPTS -classpath "${ACTIVEMQ_CLASSPATH}" -Dactivemq.home="${ACTIVEMQ_HOME}" -Dactivemq.base="${ACTIVEMQ_BASE}" -jar "${ACTIVEMQ_HOME}/bin/run.jar" $ACTIVEMQ_TASK $@
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#change to the program directory
|
|
||||||
dir=${0%/*}
|
|
||||||
if [ "$dir" = "$0" ]; then
|
|
||||||
dir="."
|
|
||||||
fi
|
|
||||||
cd "$dir"
|
|
||||||
|
|
||||||
#get the network name
|
|
||||||
name=`uname -n`
|
|
||||||
|
|
||||||
#replace @brokername@ in template with this name
|
|
||||||
sed s/@brokername@/$name/g ../conf/clustered-template.xml > ../conf/clustered.xml
|
|
||||||
|
|
||||||
#start activemq with updated file
|
|
||||||
./activemq xbean:file:../conf/clustered.xml
|
|
|
@ -1,8 +0,0 @@
|
||||||
#change to the program directory
|
|
||||||
dir=${0%/*}
|
|
||||||
if [ "$dir" = "$0" ]; then
|
|
||||||
dir="."
|
|
||||||
fi
|
|
||||||
cd "$dir"
|
|
||||||
|
|
||||||
./activemq xbean:file:../conf/activemq.xml
|
|
|
@ -1,117 +0,0 @@
|
||||||
@echo off
|
|
||||||
|
|
||||||
REM ------------------------------------------------------------------------
|
|
||||||
REM Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
REM contributor license agreements. See the NOTICE file distributed with
|
|
||||||
REM this work for additional information regarding copyright ownership.
|
|
||||||
REM The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
REM (the "License"); you may not use this file except in compliance with
|
|
||||||
REM the License. You may obtain a copy of the License at
|
|
||||||
REM
|
|
||||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
REM
|
|
||||||
REM Unless required by applicable law or agreed to in writing, software
|
|
||||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
REM See the License for the specific language governing permissions and
|
|
||||||
REM limitations under the License.
|
|
||||||
REM ------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
|
|
||||||
|
|
||||||
if "%OS%"=="Windows_NT" @setlocal
|
|
||||||
|
|
||||||
rem %~dp0 is expanded pathname of the current script under NT
|
|
||||||
set DEFAULT_ACTIVEMQ_HOME=%~dp0..
|
|
||||||
|
|
||||||
if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
|
|
||||||
set DEFAULT_ACTIVEMQ_HOME=
|
|
||||||
|
|
||||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
|
||||||
rem of arguments (up to the command line limit, anyway).
|
|
||||||
set ACTIVEMQ_CMD_LINE_ARGS=%1
|
|
||||||
if ""%1""=="""" goto doneStart
|
|
||||||
shift
|
|
||||||
:setupArgs
|
|
||||||
if ""%1""=="""" goto doneStart
|
|
||||||
set ACTIVEMQ_CMD_LINE_ARGS=%ACTIVEMQ_CMD_LINE_ARGS% %1
|
|
||||||
shift
|
|
||||||
goto setupArgs
|
|
||||||
rem This label provides a place for the argument list loop to break out
|
|
||||||
rem and for NT handling to skip to.
|
|
||||||
|
|
||||||
:doneStart
|
|
||||||
rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
|
|
||||||
rem by the user or the %0 problem on Windows 9x
|
|
||||||
if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
|
|
||||||
|
|
||||||
rem check for activemq in Program Files on system drive
|
|
||||||
if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
|
|
||||||
set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
|
|
||||||
goto checkJava
|
|
||||||
|
|
||||||
:checkSystemDrive
|
|
||||||
rem check for activemq in root directory of system drive
|
|
||||||
if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
|
|
||||||
set ACTIVEMQ_HOME=%SystemDrive%\activemq
|
|
||||||
goto checkJava
|
|
||||||
|
|
||||||
:checkCDrive
|
|
||||||
rem check for activemq in C:\activemq for Win9X users
|
|
||||||
if not exist C:\activemq\README.txt goto noAntHome
|
|
||||||
set ACTIVEMQ_HOME=C:\activemq
|
|
||||||
goto checkJava
|
|
||||||
|
|
||||||
:noAntHome
|
|
||||||
echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
|
|
||||||
goto end
|
|
||||||
|
|
||||||
:checkJava
|
|
||||||
set _JAVACMD=%JAVACMD%
|
|
||||||
|
|
||||||
set JAVA_EXT_DIRS=%JAVA_HOME%\lib\ext;%ACTIVEMQ_HOME%;%ACTIVEMQ_HOME%\lib;%ACTIVEMQ_HOME%\lib\optional
|
|
||||||
|
|
||||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
|
||||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
|
||||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
|
||||||
goto runAnt
|
|
||||||
|
|
||||||
:noJavaHome
|
|
||||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
|
||||||
echo.
|
|
||||||
echo Warning: JAVA_HOME environment variable is not set.
|
|
||||||
echo.
|
|
||||||
|
|
||||||
:runAnt
|
|
||||||
|
|
||||||
if "%ACTIVEMQ_BASE%" == "" set ACTIVEMQ_BASE=%ACTIVEMQ_HOME%
|
|
||||||
|
|
||||||
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dderby.system.home="%ACTIVEMQ_BASE%\data" -Dderby.storage.fileSyncTransactionLog=true
|
|
||||||
|
|
||||||
if "%SUNJMX%" == "" set SUNJMX=-Dcom.sun.management.jmxremote
|
|
||||||
REM set SUNJMX=-Dcom.sun.management.jmxremote.port=1616 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
|
|
||||||
|
|
||||||
if "%SSL_OPTS%" == "" set SSL_OPTS=-Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore="%ACTIVEMQ_BASE%/conf/broker.ks" -Djavax.net.ssl.trustStore="%ACTIVEMQ_BASE%/conf/broker.ts"
|
|
||||||
|
|
||||||
REM Uncomment to enable YourKit profiling
|
|
||||||
REM SET ACTIVEMQ_DEBUG_OPTS="-Xrunyjpagent"
|
|
||||||
|
|
||||||
REM Uncomment to enable remote debugging
|
|
||||||
REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
|
||||||
|
|
||||||
set ACTIVEMQ_TASK="start"
|
|
||||||
"%_JAVACMD%" %SUNJMX% %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% %SSL_OPTS% -classpath "%ACTIVEMQ_CLASSPATH%" -Dactivemq.home="%ACTIVEMQ_HOME%" -Dactivemq.base="%ACTIVEMQ_BASE%" -jar "%ACTIVEMQ_HOME%/bin/run.jar" %ACTIVEMQ_TASK% %ACTIVEMQ_CMD_LINE_ARGS%
|
|
||||||
|
|
||||||
goto end
|
|
||||||
|
|
||||||
|
|
||||||
:end
|
|
||||||
set _JAVACMD=
|
|
||||||
set ACTIVEMQ_CMD_LINE_ARGS=
|
|
||||||
|
|
||||||
if "%OS%"=="Windows_NT" @endlocal
|
|
||||||
|
|
||||||
:mainEnd
|
|
||||||
if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
|
|
||||||
|
|
||||||
|
|
|
@ -1,114 +0,0 @@
|
||||||
<!--
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<beans>
|
|
||||||
|
|
||||||
<!-- Allows us to use system properties as variables in this configuration file -->
|
|
||||||
<bean
|
|
||||||
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
|
|
||||||
|
|
||||||
<broker useVirtualTopics="false" brokerName="localhost"
|
|
||||||
advisorySupport="false" useJmx="true"
|
|
||||||
xmlns="http://activemq.org/config/1.0" persistent="false"
|
|
||||||
deleteAllMessagesOnStartup="true">
|
|
||||||
|
|
||||||
<destinations>
|
|
||||||
<queue physicalName="cp/grib" />
|
|
||||||
<queue physicalName="cp/obs" />
|
|
||||||
<queue physicalName="cp/radar" />
|
|
||||||
<queue physicalName="cp/sat" />
|
|
||||||
<queue physicalName="cp/taf" />
|
|
||||||
<queue physicalName="cp/tstormwarning" />
|
|
||||||
<queue physicalName="edex.AdapterSrv" />
|
|
||||||
<queue physicalName="edex.ProductSrvRsp" />
|
|
||||||
<queue physicalName="edex.ProductSrv" />
|
|
||||||
<queue physicalName="purge" />
|
|
||||||
<topic physicalName="edex.alerts" />
|
|
||||||
<topic physicalName="edex.alerts.practicewarning" />
|
|
||||||
<topic physicalName="edex.subscription" />
|
|
||||||
<topic physicalName="edex.subscriptions" />
|
|
||||||
</destinations>
|
|
||||||
|
|
||||||
<!-- Use the following to configure how ActiveMQ is exposed in JMX -->
|
|
||||||
<managementContext>
|
|
||||||
<managementContext connectorPort="1099" connectorPath="/ActiveMQ"
|
|
||||||
jmxDomainName="org.apache.activemq" />
|
|
||||||
</managementContext>
|
|
||||||
|
|
||||||
<!-- In ActiveMQ 4, you can setup destination policies -->
|
|
||||||
<destinationPolicy>
|
|
||||||
<policyMap>
|
|
||||||
<policyEntries>
|
|
||||||
<!-- Wildcard topic -->
|
|
||||||
<policyEntry topic=">" memoryLimit="10000000">
|
|
||||||
|
|
||||||
<pendingMessageLimitStrategy>
|
|
||||||
<constantPendingMessageLimitStrategy
|
|
||||||
limit="5" />
|
|
||||||
</pendingMessageLimitStrategy>
|
|
||||||
|
|
||||||
<messageEvictionStrategy>
|
|
||||||
<oldestMessageEvictionStrategy />
|
|
||||||
</messageEvictionStrategy>
|
|
||||||
|
|
||||||
<subscriptionRecoveryPolicy>
|
|
||||||
<timedSubscriptionRecoveryPolicy
|
|
||||||
recoverDuration="60000" />
|
|
||||||
<!--<noSubscriptionRecoveryPolicy/>-->
|
|
||||||
</subscriptionRecoveryPolicy>
|
|
||||||
</policyEntry>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Wildcard topic -->
|
|
||||||
<policyEntry queue=">" memoryLimit="10000000">
|
|
||||||
|
|
||||||
<pendingMessageLimitStrategy>
|
|
||||||
<constantPendingMessageLimitStrategy
|
|
||||||
limit="5" />
|
|
||||||
</pendingMessageLimitStrategy>
|
|
||||||
|
|
||||||
<messageEvictionStrategy>
|
|
||||||
<oldestMessageEvictionStrategy />
|
|
||||||
</messageEvictionStrategy>
|
|
||||||
|
|
||||||
<subscriptionRecoveryPolicy>
|
|
||||||
<noSubscriptionRecoveryPolicy />
|
|
||||||
</subscriptionRecoveryPolicy>
|
|
||||||
</policyEntry>
|
|
||||||
</policyEntries>
|
|
||||||
</policyMap>
|
|
||||||
</destinationPolicy>
|
|
||||||
|
|
||||||
<memoryManager>
|
|
||||||
<usageManager id="memory-manager" limit="100 MB" />
|
|
||||||
</memoryManager>
|
|
||||||
<persistenceAdapter>
|
|
||||||
<journaledJDBC journalLogFiles="5"
|
|
||||||
dataDirectory="${activemq.base}/activemq-data" />
|
|
||||||
</persistenceAdapter>
|
|
||||||
<transportConnectors>
|
|
||||||
<transportConnector name="discovery"
|
|
||||||
uri="tcp://localhost:0?wireFormat.maxInactivityDuration=0"
|
|
||||||
discoveryUri="multicast://default" />
|
|
||||||
|
|
||||||
|
|
||||||
<transportConnector name="static"
|
|
||||||
uri="tcp://localhost:5672?wireFormat.maxInactivityDuration=0" />
|
|
||||||
</transportConnectors>
|
|
||||||
|
|
||||||
</broker>
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,102 +0,0 @@
|
||||||
<!--
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<beans>
|
|
||||||
|
|
||||||
<!-- Allows us to use system properties as variables in this configuration file -->
|
|
||||||
<bean
|
|
||||||
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
|
|
||||||
|
|
||||||
<broker useVirtualTopics="false" brokerName="@brokername@"
|
|
||||||
useJmx="true"
|
|
||||||
xmlns="http://activemq.org/config/1.0" persistent="false"
|
|
||||||
deleteAllMessagesOnStartup="true">
|
|
||||||
|
|
||||||
<!-- Use the following to configure how ActiveMQ is exposed in JMX -->
|
|
||||||
<managementContext>
|
|
||||||
<managementContext connectorPort="1099" connectorPath="/ActiveMQ"
|
|
||||||
jmxDomainName="org.apache.activemq" />
|
|
||||||
</managementContext>
|
|
||||||
|
|
||||||
<!-- In ActiveMQ 4, you can setup destination policies -->
|
|
||||||
<destinationPolicy>
|
|
||||||
<policyMap>
|
|
||||||
<policyEntries>
|
|
||||||
<!-- Wildcard topic -->
|
|
||||||
<policyEntry topic=">" memoryLimit="10000000">
|
|
||||||
|
|
||||||
<pendingMessageLimitStrategy>
|
|
||||||
<constantPendingMessageLimitStrategy
|
|
||||||
limit="5" />
|
|
||||||
</pendingMessageLimitStrategy>
|
|
||||||
|
|
||||||
<messageEvictionStrategy>
|
|
||||||
<oldestMessageEvictionStrategy />
|
|
||||||
</messageEvictionStrategy>
|
|
||||||
|
|
||||||
<subscriptionRecoveryPolicy>
|
|
||||||
<timedSubscriptionRecoveryPolicy
|
|
||||||
recoverDuration="60000" />
|
|
||||||
<!--<noSubscriptionRecoveryPolicy/>-->
|
|
||||||
</subscriptionRecoveryPolicy>
|
|
||||||
</policyEntry>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Wildcard topic -->
|
|
||||||
<policyEntry queue=">" memoryLimit="10000000">
|
|
||||||
|
|
||||||
<pendingMessageLimitStrategy>
|
|
||||||
<constantPendingMessageLimitStrategy
|
|
||||||
limit="5" />
|
|
||||||
</pendingMessageLimitStrategy>
|
|
||||||
|
|
||||||
<messageEvictionStrategy>
|
|
||||||
<oldestMessageEvictionStrategy />
|
|
||||||
</messageEvictionStrategy>
|
|
||||||
|
|
||||||
<subscriptionRecoveryPolicy>
|
|
||||||
<noSubscriptionRecoveryPolicy />
|
|
||||||
</subscriptionRecoveryPolicy>
|
|
||||||
</policyEntry>
|
|
||||||
</policyEntries>
|
|
||||||
</policyMap>
|
|
||||||
</destinationPolicy>
|
|
||||||
|
|
||||||
<memoryManager>
|
|
||||||
<usageManager id="memory-manager" limit="100 MB" />
|
|
||||||
</memoryManager>
|
|
||||||
<persistenceAdapter>
|
|
||||||
<journaledJDBC journalLogFiles="5"
|
|
||||||
dataDirectory="${activemq.base}/activemq-data" />
|
|
||||||
</persistenceAdapter>
|
|
||||||
|
|
||||||
|
|
||||||
<transportConnectors>
|
|
||||||
<transportConnector name="discovery"
|
|
||||||
uri="tcp://localhost:0?wireFormat.maxInactivityDuration=0"
|
|
||||||
discoveryUri="multicast://default" />
|
|
||||||
<transportConnector name="static"
|
|
||||||
uri="tcp://localhost:5672?wireFormat.maxInactivityDuration=0" />
|
|
||||||
<transportConnector name="stomp"
|
|
||||||
uri="stomp://localhost:61613" />
|
|
||||||
</transportConnectors>
|
|
||||||
|
|
||||||
<networkConnectors>
|
|
||||||
<networkConnector name="clustered-nc" uri="multicast://default"/>
|
|
||||||
</networkConnectors>
|
|
||||||
</broker>
|
|
||||||
|
|
||||||
</beans>
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,174 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
##
|
|
||||||
# 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.
|
|
||||||
##
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
# This script will start mule in the mode specified on the command line
|
|
||||||
# Usage:
|
|
||||||
# start.sh [options] mode
|
|
||||||
#
|
|
||||||
# mode is one of client, distribute, server, standalone
|
|
||||||
# options:
|
|
||||||
# -d, --dev sets DEV_MODE to on (in environment)
|
|
||||||
# -b, --debug starts Mule using debug config file.
|
|
||||||
#
|
|
||||||
# file history
|
|
||||||
# Date PTR Engineer Comment
|
|
||||||
# ------- --- -------- -----------------
|
|
||||||
# 09May07 TO6 MW Fegan Initial creation.
|
|
||||||
# 06Jun07 279 MW Fegan Added optional devmode flag.
|
|
||||||
# 10Apr08 1040 MW Fegan Added debug command line flag. (removes
|
|
||||||
# the devmode flag.)
|
|
||||||
# 01Aug08 1363 MW Fegan Turn off GfePurgeSrv on cluster clients.
|
|
||||||
# 28Oct2008 1524 MW Fegan Added export of MULE_HOME
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#change to the directory this file runs in
|
|
||||||
dir=${0%/*}
|
|
||||||
if [ "$dir" = "$0" ]; then
|
|
||||||
dir="."
|
|
||||||
fi
|
|
||||||
cd "$dir"
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#read and interpret the command line arguments
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
DEV_FLAG=off
|
|
||||||
DEBUG_FLAG=off
|
|
||||||
RUN_MODE=
|
|
||||||
for arg in $@
|
|
||||||
do
|
|
||||||
case $arg in
|
|
||||||
-d|--dev) DEV_FLAG=on;;
|
|
||||||
-b|--debug) DEBUG_FLAG=on;;
|
|
||||||
-db|-bd) DEV_FLAG=on; DEBUG_FLAG=on;;
|
|
||||||
*) RUN_MODE=$arg;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#get computer name
|
|
||||||
#export the name of the mule application (defines name of mule log file)
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
export NODE_ID=`uname -n`
|
|
||||||
export MULE_APP=$NODE_ID-${RUN_MODE}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
# setup basic internal variables for the script
|
|
||||||
# r -- points to the esb conf directory
|
|
||||||
# p -- points to install directory of EDEX data decoder plugins
|
|
||||||
# g -- contains the relative path to the global xml file
|
|
||||||
# s -- contains comma separated list of files to skip when
|
|
||||||
# building Mule startup configuration string
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
r=../conf
|
|
||||||
p=../../../mule/lib/user/plugins
|
|
||||||
g=$r/global.xml
|
|
||||||
s=global.xml
|
|
||||||
files="file:$g"
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
# set clustered flag and skip files based on the execution type
|
|
||||||
# note: modify s as needed to exclude end points from running
|
|
||||||
# on specific installations
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
case ${RUN_MODE} in
|
|
||||||
client) clustered=true;s=$s,fileToJMS.xml,purge.xml,smartInit.xml,gfePurge.xml;;
|
|
||||||
distribute) clustered=true;s=$s,ingest.xml;;
|
|
||||||
server) clustered=true;;
|
|
||||||
standalone) clustered=false;;
|
|
||||||
*) echo "unknown mode ${RUN_MODE}, exiting...";exit 1;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo "starting Mule in ${RUN_MODE} mode..."
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
# set up the runtime environment
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
export MULE_HOME=$PWD/../../../mule
|
|
||||||
MULE_CONF=$MULE_HOME/conf
|
|
||||||
export MULE_LIB=$MULE_HOME/lib
|
|
||||||
|
|
||||||
export HIBERNATE_CONF=$PWD/../conf/db
|
|
||||||
echo "HIBERNATE_CONF set to ${HIBERNATE_CONF}"
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#set and export DEV_MODE to the environment
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
if [ $DEV_FLAG = 'off' ]
|
|
||||||
then
|
|
||||||
export DEV_MODE=off
|
|
||||||
else
|
|
||||||
export DEV_MODE=on
|
|
||||||
fi
|
|
||||||
echo "DEV_MODE = ${DEV_MODE}"
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#set the wrapper startup config file based on the DEBUG_FLAG
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
if [ -e $MULE_CONF/wrapper.conf ]
|
|
||||||
then
|
|
||||||
rm $MULE_CONF/wrapper.conf
|
|
||||||
fi
|
|
||||||
if [ $DEBUG_FLAG = 'off' ]
|
|
||||||
then
|
|
||||||
cp $MULE_CONF/wrapper.conf.normal $MULE_CONF/wrapper.conf
|
|
||||||
else
|
|
||||||
cp $MULE_CONF/wrapper.conf.debug $MULE_CONF/wrapper.conf
|
|
||||||
fi
|
|
||||||
echo Remote Debugging $DEBUG_FLAG
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#replace clustered tag
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
sed 's/<clustered>[a-z][a-z]*<\/clustered>/<clustered>'$clustered'<\/clustered>/g' ../conf/res/site/environment.xml > ../conf/res/site/environment.xml.tmp
|
|
||||||
mv ../conf/res/site/environment.xml.tmp ../conf/res/site/environment.xml
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#run rea to extract end-point descriptors from jars
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
java -jar rea.jar $MULE_HOME/lib/user/plugins ../conf
|
|
||||||
java -jar rea.jar $MULE_HOME/lib/user/services ../conf
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
# identify the "core" config files to include
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
for x in `ls $r/*.xml`
|
|
||||||
do
|
|
||||||
if [ -f $x ]
|
|
||||||
then
|
|
||||||
f=`basename $x`
|
|
||||||
if [ 0 -eq `expr $s : .*$f` ]
|
|
||||||
then
|
|
||||||
files=$files,file:$x
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
# start Mule
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
${MULE_HOME}/bin/mule console \
|
|
||||||
-config ${files} \
|
|
||||||
-builder org.mule.extras.spring.config.SpringConfigurationBuilder
|
|
||||||
|
|
||||||
|
|
|
@ -1,137 +0,0 @@
|
||||||
@echo off
|
|
||||||
rem **************************************************************************
|
|
||||||
rem Uses discovery to identify the available config files and build the
|
|
||||||
rem start-up string for Mule. Depends on Win2K command extnesions.
|
|
||||||
rem
|
|
||||||
rem Usage:
|
|
||||||
rem winstart mode [devmode]
|
|
||||||
rem where mode is one of client, distribute, and standalone
|
|
||||||
rem devmode, when present, starts mule in EDEX dev mode.
|
|
||||||
rem
|
|
||||||
rem from start-client.bat:
|
|
||||||
rem Using relative paths to ease moving installation around.
|
|
||||||
rem Uses the MULE ESB launcher to build the classpath. Any
|
|
||||||
rem application jar in ..\lib directory gets added to the
|
|
||||||
rem run time classpath within MULE.
|
|
||||||
rem
|
|
||||||
rem Uses the Spring configuration builder which means that the MULE
|
|
||||||
rem configuration is defined in Spring Beans. This allows one configuration
|
|
||||||
rem file to be used to configure both Spring and Mule.
|
|
||||||
rem
|
|
||||||
rem History:
|
|
||||||
rem --------------------------------------------------------------------------
|
|
||||||
rem Apr 2007 MW Fegan Created. Partially based on start-XXX.bat
|
|
||||||
rem 06Jun2007 MW Fegan DR279 Added optional devmode flag.
|
|
||||||
rem 28Oct2008 MW Fegan DR1524 Added export of MULE_HOME
|
|
||||||
rem **************************************************************************
|
|
||||||
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem localize the env.
|
|
||||||
rem ---------------------
|
|
||||||
setlocal
|
|
||||||
setlocal ENABLEDELAYEDEXPANSION
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem set basic env.
|
|
||||||
rem ---------------------
|
|
||||||
SET MULE_HOME=..\..\..\mule
|
|
||||||
SET MULE_LIB=%MULE_HOME%\lib
|
|
||||||
SET JYTHON_HOME=..\..\..\jython
|
|
||||||
SET CUSTOM_LIB=..\lib
|
|
||||||
SET CONF_DIR=..\conf
|
|
||||||
SET PLUGIN_DIR=%MULE_HOME%\lib\user\plugins
|
|
||||||
SET CLASSPATH=%CONF_DIR%;%JYTHON_HOME%
|
|
||||||
SET HIBERNATE_CONF=../conf/db
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem set the config files
|
|
||||||
rem to be ignored
|
|
||||||
rem ---------------------
|
|
||||||
SET GLOBAL_XML=global.xml
|
|
||||||
SET IGNORE_SET=%GLOBAL_XML%,vtec.xml
|
|
||||||
SET EDEX_MODE=%1
|
|
||||||
SHIFT
|
|
||||||
IF /I %EDEX_MODE%. == client. (
|
|
||||||
SET IGNORE_SET=%IGNORE_SET%,fileToJMS.xml,purge.xml
|
|
||||||
) ELSE (
|
|
||||||
IF /I %EDEX_MODE%. == distribute. (
|
|
||||||
SET IGNORE_SET=%IGNORE_SET%,ingest.xml
|
|
||||||
) ELSE (
|
|
||||||
IF /I NOT %EDEX_MODE%. == standalone. (
|
|
||||||
ECHO startup mode not specified, defaulting to standalone
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem check for dev mode
|
|
||||||
rem ---------------------
|
|
||||||
SET DEV_MODE=
|
|
||||||
IF "%1" == "" (
|
|
||||||
SET DEV_MODE=off
|
|
||||||
) ELSE (
|
|
||||||
SET DEV_MODE=on
|
|
||||||
)
|
|
||||||
SHIFT
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem hides the files that
|
|
||||||
rem are to be ignored
|
|
||||||
rem ---------------------
|
|
||||||
FOR %%d IN (%CONF_DIR% %PLUGIN_DIR%) DO (
|
|
||||||
IF EXIST %%d\NUL (
|
|
||||||
FOR %%s IN (%IGNORE_SET%) DO (
|
|
||||||
IF EXIST %%d\%%s (
|
|
||||||
ATTRIB +h %%d\%%s
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem start with the global
|
|
||||||
rem config file
|
|
||||||
rem ---------------------
|
|
||||||
SET FILE_LIST=file:%CONF_DIR%\%GLOBAL_XML%
|
|
||||||
|
|
||||||
java -jar rea.jar %MULE_HOME%/lib/user/plugins ../conf
|
|
||||||
java -jar rea.jar %MULE_HOME%/lib/user/services ../conf
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem find the config files
|
|
||||||
rem to load
|
|
||||||
rem ---------------------
|
|
||||||
FOR %%d IN (%CONF_DIR% %PLUGIN_DIR%) DO (
|
|
||||||
IF EXIST %%d\NUL (
|
|
||||||
FOR %%a IN (%%d\*.xml) DO (
|
|
||||||
SET FILE_LIST=!FILE_LIST!, file:%%a
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
echo about to call %MULE_HOME%\bin\mule.bat
|
|
||||||
|
|
||||||
rem ---------------------
|
|
||||||
rem start the application
|
|
||||||
rem ---------------------
|
|
||||||
CALL %MULE_HOME%\bin\mule.bat console ^
|
|
||||||
-config "%FILE_LIST%" ^
|
|
||||||
-builder org.mule.extras.spring.config.SpringConfigurationBuilder
|
|
||||||
|
|
||||||
:END_OF_SCRIPT
|
|
||||||
rem ---------------------
|
|
||||||
rem un hide files that
|
|
||||||
rem were ignored
|
|
||||||
rem ---------------------
|
|
||||||
FOR %%d IN (%CONF_DIR% %PLUGIN_DIR%) DO (
|
|
||||||
IF EXIST %%d\NUL (
|
|
||||||
FOR %%s IN (%IGNORE_SET%) DO (
|
|
||||||
IF EXIST %%d\%%s (
|
|
||||||
ATTRIB -h %%d\%%s
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
endlocal
|
|
|
@ -1,43 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<beans>
|
|
||||||
<bean id="fxaSessionFactory"
|
|
||||||
class="com.raytheon.edex.common.db.DatabaseSessionFactoryBean"
|
|
||||||
singleton="true">
|
|
||||||
|
|
||||||
<property name="configLocation">
|
|
||||||
<value>hibernateConfig/fxa/hibernate.cfg.xml</value>
|
|
||||||
</property>
|
|
||||||
|
|
||||||
<property name="mappingJarLocations">
|
|
||||||
<list>
|
|
||||||
<value>plugins/plugin-text.jar</value>
|
|
||||||
<value>services/textdb.jar</value>
|
|
||||||
</list>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="fxaTxManager"
|
|
||||||
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
||||||
<property name="sessionFactory" ref="fxaSessionFactory" />
|
|
||||||
</bean>
|
|
||||||
</beans>
|
|
|
@ -1,37 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<beans>
|
|
||||||
<!-- IHFS Database Configuration-->
|
|
||||||
<bean id="ihfsSessionFactory"
|
|
||||||
class="com.raytheon.edex.common.db.DatabaseSessionFactoryBean"
|
|
||||||
singleton="true">
|
|
||||||
|
|
||||||
<property name="configLocation">
|
|
||||||
<value>hibernateConfig/ihfs/hibernate.cfg.xml</value>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="ihfsTxManager"
|
|
||||||
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
||||||
<property name="sessionFactory" ref="ihfsSessionFactory" />
|
|
||||||
</bean>
|
|
||||||
</beans>
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<beans>
|
|
||||||
<bean id="metadataSessionFactory"
|
|
||||||
class="com.raytheon.edex.common.db.DatabaseSessionFactoryBean"
|
|
||||||
singleton="true">
|
|
||||||
<property name="configLocation">
|
|
||||||
<value>hibernateConfig/metadata/hibernate.cfg.xml</value>
|
|
||||||
</property>
|
|
||||||
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<bean id="metadataTxManager"
|
|
||||||
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
||||||
<property name="sessionFactory" ref="metadataSessionFactory" />
|
|
||||||
</bean>
|
|
||||||
</beans>
|
|
|
@ -1,37 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
|
||||||
|
|
||||||
<beans>
|
|
||||||
|
|
||||||
<bean id="jmxExporter"
|
|
||||||
class="org.springframework.jmx.export.MBeanExporter">
|
|
||||||
<property name="beans">
|
|
||||||
<map>
|
|
||||||
<entry key="log4j:name=settings" value-ref="log4jBean" />
|
|
||||||
</map>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="log4jBean"
|
|
||||||
class="com.raytheon.edex.util.Log4jLevels" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,110 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for AIREP data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080105 713 jkorman Initial Coding.
|
|
||||||
*/
|
|
||||||
function AIREPRequest(){
|
|
||||||
this.plugin = "airep";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
AIREPRequest.prototype.execute = _execute;
|
|
||||||
AIREPRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
AIREPRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
AIREPRequest.prototype.addParameter = _addParameter;
|
|
||||||
AIREPRequest.prototype.addList = _addList;
|
|
||||||
AIREPRequest.prototype.setCount = _setCount;
|
|
||||||
AIREPRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
AIREPRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
AIREPRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for BUFRMOS data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080303 862 jkorman Initial Coding.
|
|
||||||
*/
|
|
||||||
function BUFRMOSRequest(){
|
|
||||||
this.plugin = "bufrmos";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
BUFRMOSRequest.prototype.execute = _execute;
|
|
||||||
BUFRMOSRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
BUFRMOSRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
BUFRMOSRequest.prototype.addParameter = _addParameter;
|
|
||||||
BUFRMOSRequest.prototype.addList = _addList;
|
|
||||||
BUFRMOSRequest.prototype.setCount = _setCount;
|
|
||||||
BUFRMOSRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
BUFRMOSRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
BUFRMOSRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for BUFRUA data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080105 713 jkorman Initial Coding.
|
|
||||||
*/
|
|
||||||
function BUFRUARequest(){
|
|
||||||
this.plugin = "bufrua";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
BUFRUARequest.prototype.execute = _execute;
|
|
||||||
BUFRUARequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
BUFRUARequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
BUFRUARequest.prototype.addParameter = _addParameter;
|
|
||||||
BUFRUARequest.prototype.addList = _addList;
|
|
||||||
BUFRUARequest.prototype.setCount = _setCount;
|
|
||||||
BUFRUARequest.prototype.setSortValue = _setSortValue;
|
|
||||||
BUFRUARequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
BUFRUARequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,212 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs Barnes Scheme Analysis on a single grid. Both the grid parameter
|
|
||||||
* to retrieve and the observation parameter used to modify it are set using
|
|
||||||
* property setters. Following the analysis, the result is returned as a
|
|
||||||
* displayable image.
|
|
||||||
*
|
|
||||||
* This script represents a complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Implementation note:
|
|
||||||
* Barnes Analysis requires two queries, one for the grid and one for the
|
|
||||||
* observations used to modify the grid. For this reason, the query property
|
|
||||||
* setters, addParameter, addList, setCount and setSortValue, have a an
|
|
||||||
* initial, boolean parameter. Setting this parameter 'true' performs the
|
|
||||||
* action on the grid query; setting it 'false' performs the query on the
|
|
||||||
* observation query.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This is an example of a script that retrieves and corrects a temperature
|
|
||||||
* grid:
|
|
||||||
* include("BarnesAnalysis.js");
|
|
||||||
* var barnes = new BarnesAnalysis();
|
|
||||||
* barnes.addParameter(true,"paramid","Temperature");
|
|
||||||
* barnes.addParameter(true,"levelinfo","2.0_m");
|
|
||||||
* barnes.addParameter(true,"forecasttime","0");
|
|
||||||
* barnes.addParameter(true,"gridid",212);
|
|
||||||
* barnes.setCount(true,1);
|
|
||||||
* barnes.setSortValue(true,"basetime");
|
|
||||||
* barnes.setSpatialBounds(43.00, -98.00, 37.00, -92.00);
|
|
||||||
* barnes.addParameter(false,"refhour","20070601190000");
|
|
||||||
* barnes.setCount(false,0);
|
|
||||||
* barnes.setSortValue(false,"timeobs");
|
|
||||||
* barnes.setObParameter("temperature");
|
|
||||||
* barnes.setBarnesParameters("50000.0","0.50","1","1");
|
|
||||||
* barnes.setColorMap("GribTempRGB");
|
|
||||||
* barnes.setFormat("png");
|
|
||||||
* barnes.setScaleFactor(3.0);
|
|
||||||
* barnes.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*/
|
|
||||||
function BarnesAnalysis() {
|
|
||||||
/* names of constants */
|
|
||||||
this.grib = "grib";
|
|
||||||
this.obs = "obs";
|
|
||||||
this.icao = "icao";
|
|
||||||
this.geometry = "geometry";
|
|
||||||
/* settings for Barnes Analysis */
|
|
||||||
this.obField = "temperature";
|
|
||||||
this.radius = "50000.0";
|
|
||||||
this.weight = "0.50";
|
|
||||||
this.stations = "1";
|
|
||||||
this.passes = "1";
|
|
||||||
/* settings for image creation */
|
|
||||||
this.reproject = false;
|
|
||||||
this.colormap = "StopLight";
|
|
||||||
this.format = "png";
|
|
||||||
this.scaleFactor = 3.0;
|
|
||||||
/* the queries */
|
|
||||||
this.gridquery = new TermQuery(this.grib);
|
|
||||||
this.obsquery = new TermQuery(this.obs);
|
|
||||||
this.spatial = new SpatialQuery();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main action method. Performs the the Barnes Analysis and creates the image.
|
|
||||||
*
|
|
||||||
* @return (String) XML string containing the results.
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
var response;
|
|
||||||
/* get the grib record */
|
|
||||||
var gridResults = this.gridquery.execute();
|
|
||||||
if(gridResults == null || gridResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query for GRIB returned no results.",this.gridquery);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
var grid = gridResults.get(0);
|
|
||||||
/* get the spatial information */
|
|
||||||
this.spatial.addField(this.icao);
|
|
||||||
this.spatial.addField(this.geometry);
|
|
||||||
var spatialResults = this.spatial.execute();
|
|
||||||
if (spatialResults == null || spatialResults.size() == 0) {
|
|
||||||
response = new MakeResponseNull("Spatial query returned no results.",this.spatial);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
/* get the and geolocate the temperature observations */
|
|
||||||
this.addList(false,"stationid",MEUtils.changeArrayListToString(spatialResults.get(this.icao)));
|
|
||||||
var obsResults = this.obsquery.execute();
|
|
||||||
if (obsResults == null || obsResults.size() == 0) {
|
|
||||||
response = new MakeResponseNull("Ob query returned no results.",this.obsquery);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
var mapObs = new MapAsciiData(this.obField,
|
|
||||||
obsResults,
|
|
||||||
spatialResults.get(this.icao),
|
|
||||||
spatialResults.get(this.geometry));
|
|
||||||
/* get the GRIB record and perform the analysis */
|
|
||||||
var fileIn = new FileIn(this.grib, grid);
|
|
||||||
var geom = grid.getGrid().getGridGeom();
|
|
||||||
var crs = grid.getGrid().getCrs();
|
|
||||||
var gribRecord = fileIn.execute();
|
|
||||||
var analyzer = new ObjectiveAnalysis(gribRecord,
|
|
||||||
geom,
|
|
||||||
crs,
|
|
||||||
mapObs.execute());
|
|
||||||
analyzer.addParameter("searchRadius",this.radius);
|
|
||||||
analyzer.addParameter("weight",this.weight);
|
|
||||||
analyzer.addParameter("minNoStns",this.stations);
|
|
||||||
analyzer.addParameter("numPasses",this.passes);
|
|
||||||
analyzer.addParameter("extrapolate","true");
|
|
||||||
var analyzed = analyzer.execute();
|
|
||||||
|
|
||||||
/* create the derived image */
|
|
||||||
var gribMap = new GribMap(this.grib, this.colormap, analyzed, geom);
|
|
||||||
gribMap.setScaleFactor(this.scaleFactor);
|
|
||||||
var imageData = gribMap.execute();
|
|
||||||
geom = gribMap.getGridGeometry();
|
|
||||||
var colorMap = new ColorMapImage(this.colormap, imageData, geom);
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), geom, crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format,geom);
|
|
||||||
}
|
|
||||||
var fileOut = new FileOut(imageOut.execute(), this.format);
|
|
||||||
var writeFile = fileOut.execute();
|
|
||||||
var makeResponse = new MakeResponseUri(writeFile,
|
|
||||||
null,
|
|
||||||
grid.getDataURI(),
|
|
||||||
this.format);
|
|
||||||
return makeResponse.execute();
|
|
||||||
|
|
||||||
}
|
|
||||||
/* query related setter functions */
|
|
||||||
function _addParameter(grib, name, value) {
|
|
||||||
var query = (grib)?this.gridquery:this.obsquery;
|
|
||||||
query.addParameter(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(grib, name, value) {
|
|
||||||
var query = (grib)?this.gridquery:this.obsquery;
|
|
||||||
query.addParameter(name, value, "in");
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(grib, count){
|
|
||||||
var query = (grib)?this.gridquery:this.obsquery;
|
|
||||||
query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(grib, sortValue){
|
|
||||||
var query = (grib)?this.gridquery:this.obsquery;
|
|
||||||
query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* image related setter functions */
|
|
||||||
function _setScaleFactor(scale){
|
|
||||||
this.scaleFactor = scale;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColormap(colormap){
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFormat(format){
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* setters for the spatial query */
|
|
||||||
function _setSpatialBounds(ulLat, ulLon, lrLat, lrLon) {
|
|
||||||
this.spatial.setUpperLeftLat(ulLat);
|
|
||||||
this.spatial.setUpperLeftLon(ulLon);
|
|
||||||
this.spatial.setLowerRightLat(lrLat);
|
|
||||||
this.spatial.setLowerRightLon(lrLon);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* setters for Barnes Analysis */
|
|
||||||
function _setObParameter(param) {
|
|
||||||
this.obField = param;
|
|
||||||
}
|
|
||||||
function _setBarnesParameters(radius,weight,stations,passes) {
|
|
||||||
this.radius = radius;
|
|
||||||
this.weight = weight;
|
|
||||||
this.stations = stations;
|
|
||||||
this.passes = passes;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map the functions to the class prototype */
|
|
||||||
BarnesAnalysis.prototype.execute = _execute;
|
|
||||||
BarnesAnalysis.prototype.addParameter = _addParameter;
|
|
||||||
BarnesAnalysis.prototype.addList = _addList;
|
|
||||||
BarnesAnalysis.prototype.setSpatialBounds = _setSpatialBounds;
|
|
||||||
BarnesAnalysis.prototype.setScaleFactor = _setScaleFactor;
|
|
||||||
BarnesAnalysis.prototype.setCount = _setCount;
|
|
||||||
BarnesAnalysis.prototype.reprojectImage = _reprojectImage;
|
|
||||||
BarnesAnalysis.prototype.setColorMap = _setColormap;
|
|
||||||
BarnesAnalysis.prototype.setFormat = _setFormat;
|
|
||||||
BarnesAnalysis.prototype.setSortValue = _setSortValue;
|
|
||||||
BarnesAnalysis.prototype.setBarnesParameters = _setBarnesParameters;
|
|
||||||
BarnesAnalysis.prototype.setObParameter = _setObParameter;
|
|
||||||
|
|
|
@ -1,82 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for plugin data.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080516 njensen Initial Creation
|
|
||||||
*/
|
|
||||||
function BaseRequest(aPlugin){
|
|
||||||
this.plugin = aPlugin;
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
BaseRequest.prototype.execute = _execute;
|
|
||||||
BaseRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
BaseRequest.prototype.addParameter = _addParameter;
|
|
||||||
BaseRequest.prototype.addList = _addList;
|
|
||||||
BaseRequest.prototype.setCount = _setCount;
|
|
||||||
BaseRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
BaseRequest.prototype.enableSubscription = _enableSubscription;
|
|
|
@ -1,28 +0,0 @@
|
||||||
function CatalogQuery(plugin){
|
|
||||||
this.cat = new MetadataCatalogQuery(plugin);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setDistinctField(name){
|
|
||||||
this.cat.setDistinctField(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addReturnedField(name){
|
|
||||||
this.cat.addReturnedField(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addConstraint(name, value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.cat.addParameter(name, value);
|
|
||||||
}else{
|
|
||||||
this.cat.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute(){
|
|
||||||
return this.cat.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
CatalogQuery.prototype.addReturnedField = _addReturnedField;
|
|
||||||
CatalogQuery.prototype.addConstraint = _addConstraint;
|
|
||||||
CatalogQuery.prototype.execute = _execute;
|
|
||||||
CatalogQuery.prototype.setDistinctField = _setDistinctField;
|
|
|
@ -1,155 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs an enhancement of a satellite image. The image is enhanced in two
|
|
||||||
* ways.
|
|
||||||
* 1) the high and low pixel values are set to the background value, and
|
|
||||||
* 2) a custom color table is applied to the image.
|
|
||||||
*
|
|
||||||
* This script may be subscribed using the EDEX subscription service.
|
|
||||||
*
|
|
||||||
* This script is designed to create a visualization product. It is not intended
|
|
||||||
* to be embedded within another uEngine script.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This script creates a filtered image product from an IR image over East CONUS.
|
|
||||||
* include("FilteredImage.js");
|
|
||||||
* var dataRequest = new FilteredImage();
|
|
||||||
* dataRequest.addParameter("satellite","GOES");
|
|
||||||
* dataRequest.addParameter("area_subtype","East CONUS");
|
|
||||||
* dataRequest.addParameter("parameter","Imager 11 micron IR");
|
|
||||||
* dataRequest.setCount(1);
|
|
||||||
* dataRequest.setColormap("IREnhanced");
|
|
||||||
* dataRequest.remapImage(64,192);
|
|
||||||
* dataRequest.setSortValue("valid_time");
|
|
||||||
* dataRequest.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class Constructor.
|
|
||||||
*/
|
|
||||||
function FilteredImage() {
|
|
||||||
this.format = "png";
|
|
||||||
this.colormap = "BW";
|
|
||||||
this.reproject = false;
|
|
||||||
this.plugin = "satellite";
|
|
||||||
this.low = 0;
|
|
||||||
this.high = 255;
|
|
||||||
this.remap = false;
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.createImage = false;
|
|
||||||
this.sortValue = "";
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Main action method. Performs the image creation.
|
|
||||||
*
|
|
||||||
* @return (String) XML string containing the result of the execution.
|
|
||||||
*/
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
var queryResults = this.query.execute();
|
|
||||||
if(queryResults == null || queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query returned 0 results.",this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeImageResponse(queryResults);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name, value){
|
|
||||||
this.query.addParameter(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addParameter(name, value, "in");
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColormap(colormap){
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFormat(format){
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _requestImage(image){
|
|
||||||
this.createImage = image;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* helper methods */
|
|
||||||
function _makeImageResponse(queryResults){
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var currentQuery = queryResults.get(i);
|
|
||||||
var geom = currentQuery.getCoverage().getMapGeom();
|
|
||||||
var crs = currentQuery.getCoverage().getCrs();
|
|
||||||
var fileIn = new FileIn(this.plugin, currentQuery);
|
|
||||||
var record = fileIn.execute();
|
|
||||||
var colorMap = null;
|
|
||||||
if (this.remap) {
|
|
||||||
colorMap = new ColorMapImage(this.colormap, MEUtils.byteHighLowFilterImage(record.getDataObject(),this.low,this.high), geom);
|
|
||||||
} else {
|
|
||||||
colorMap = new ColorMapImage(this.colormap, record.getDataObject(), geom);
|
|
||||||
}
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), geom, crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format);
|
|
||||||
}
|
|
||||||
var fileOut = new FileOut(imageOut.execute(), this.format);
|
|
||||||
var writeFile = fileOut.execute();
|
|
||||||
var makeResponse = new MakeResponseUri(writeFile, null, currentQuery.getDataURI(), this.format);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
function _remapImage(low,high) {
|
|
||||||
this.low = low;
|
|
||||||
this.high = high;
|
|
||||||
this.remap = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map the functions to the class prototype */
|
|
||||||
FilteredImage.prototype.remapImage = _remapImage;
|
|
||||||
FilteredImage.prototype.execute = _execute;
|
|
||||||
FilteredImage.prototype.makeImageResponse = _makeImageResponse;
|
|
||||||
FilteredImage.prototype.addParameter = _addParameter;
|
|
||||||
FilteredImage.prototype.addList = _addList;
|
|
||||||
FilteredImage.prototype.setCount = _setCount;
|
|
||||||
FilteredImage.prototype.enableSubscription = _enableSubscription;
|
|
||||||
FilteredImage.prototype.reprojectImage = _reprojectImage;
|
|
||||||
FilteredImage.prototype.setColormap = _setColormap;
|
|
||||||
FilteredImage.prototype.setFormat = _setFormat;
|
|
||||||
FilteredImage.prototype.setSortValue = _setSortValue;
|
|
||||||
FilteredImage.prototype.requestImage = _requestImage;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for GOESSoundingRequest data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080310 969 jkorman Initial implementation.
|
|
||||||
*/
|
|
||||||
function GOESSoundingRequest(){
|
|
||||||
this.plugin = "goessounding";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
GOESSoundingRequest.prototype.execute = _execute;
|
|
||||||
GOESSoundingRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
GOESSoundingRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
GOESSoundingRequest.prototype.addParameter = _addParameter;
|
|
||||||
GOESSoundingRequest.prototype.addList = _addList;
|
|
||||||
GOESSoundingRequest.prototype.setCount = _setCount;
|
|
||||||
GOESSoundingRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
GOESSoundingRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
GOESSoundingRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,29 +0,0 @@
|
||||||
function GfeTask(wsId,task){
|
|
||||||
this.task = task;
|
|
||||||
this.wsId = wsId;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addArgument(xml){
|
|
||||||
this.task.addXml(xml);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute(){
|
|
||||||
this.task.setWorkstationID(this.wsId);
|
|
||||||
var result = this.task.execute();
|
|
||||||
|
|
||||||
if(result==null){
|
|
||||||
return new MakeResponseNull("GFE task generated NULL response",null).execute();
|
|
||||||
}else{
|
|
||||||
var count = result.size();
|
|
||||||
var response = new Array(count);
|
|
||||||
for(i = 0; i < count; i++){
|
|
||||||
var makeResponse = new MakeResponseXml(result.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
GfeTask.prototype.addArgument = _addArgument;
|
|
||||||
GfeTask.prototype.execute = _execute;
|
|
|
@ -1,101 +0,0 @@
|
||||||
/**
|
|
||||||
* Creates an image from a GRIB record. Maps a selected color map to the
|
|
||||||
* image, rescales the image and converts it to a specified output format.
|
|
||||||
*
|
|
||||||
* This file may be imported into a JS uEngine script needing to create
|
|
||||||
* an image from a GRIB record.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* include("GribImage.js");
|
|
||||||
* var iMaker = new GribImage("grib");
|
|
||||||
* iMaker.setColormap("GribRGB");
|
|
||||||
* iMaker.setFormat("png");
|
|
||||||
* iMaker.setGrid(grid); // 'grid' is set to a previously ingested grib data
|
|
||||||
* iMaker.setGeom(geom); // 'geom' is set to the geometry from the grib
|
|
||||||
* iMaker.setCrs(crs); // 'crs' is set to the CRS from the grib
|
|
||||||
* var image = iMaker.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*
|
|
||||||
* @param plugin (String) identifies the data-type plugin - normally "grib"
|
|
||||||
*/
|
|
||||||
function GribImage(plugin) {
|
|
||||||
/* names of things */
|
|
||||||
this.plugin = plugin;
|
|
||||||
/* grid attributes */
|
|
||||||
this.grid = null;
|
|
||||||
this.geom = null;
|
|
||||||
this.crs = null;
|
|
||||||
/* image attributes */
|
|
||||||
this.colormap = "GribRGB";
|
|
||||||
this.format = "png";
|
|
||||||
this.scaleFactor = 1;
|
|
||||||
this.reproject = false;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Main action method. Performs the the GRIB to an image object.
|
|
||||||
*
|
|
||||||
* @return (byte[]) raster containing the image
|
|
||||||
* (String) XML null response string on failure
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
var gribMap = new GribMap(this.grib, this.colormap, this.grid, this.geom);
|
|
||||||
gribMap.setScaleFactor(this.scaleFactor);
|
|
||||||
var imageData = gribMap.execute();
|
|
||||||
this.geom = gribMap.getGridGeometry();
|
|
||||||
var colorMap = new ColorMapImage(this.colormap, imageData, this.geom);
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), this.geom, this.crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format,this.geom);
|
|
||||||
}
|
|
||||||
return imageOut.execute();
|
|
||||||
}
|
|
||||||
/* setters */
|
|
||||||
function _setGrid(grid) {
|
|
||||||
this.grid = grid;
|
|
||||||
}
|
|
||||||
function _setGeom(geom) {
|
|
||||||
this.geom = geom;
|
|
||||||
}
|
|
||||||
function _setCrs(crs) {
|
|
||||||
this.crs = crs;
|
|
||||||
}
|
|
||||||
function _setColormap(colormap) {
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
function _setFormat(format) {
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
function _setScaleFactor(scale) {
|
|
||||||
this.scaleFactor = scale;
|
|
||||||
}
|
|
||||||
function _setReproject(reproject) {
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
/* getters */
|
|
||||||
function _getGeom() {
|
|
||||||
return this.geom;
|
|
||||||
}
|
|
||||||
function _getFormat() {
|
|
||||||
return this.format;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map the functions to the class prototype */
|
|
||||||
GribImage.prototype.execute = _execute;
|
|
||||||
GribImage.prototype.setGrid = _setGrid;
|
|
||||||
GribImage.prototype.setGeom = _setGeom;
|
|
||||||
GribImage.prototype.getGeom = _getGeom;
|
|
||||||
GribImage.prototype.setCrs = _setCrs;
|
|
||||||
GribImage.prototype.setColormap = _setColormap;
|
|
||||||
GribImage.prototype.setFormat = _setFormat;
|
|
||||||
GribImage.prototype.getFormat = _getFormat;
|
|
||||||
GribImage.prototype.setScaleFactor = _setScaleFactor;
|
|
||||||
GribImage.prototype.setReproject = _setReproject;
|
|
|
@ -1,119 +0,0 @@
|
||||||
/**
|
|
||||||
* Computes a derived winds grid based on combining the wind-U
|
|
||||||
* and wind-V parameters for a specific GRIB parameter.
|
|
||||||
*
|
|
||||||
* Performs a pair of queries, one for wind-U and one for wind-V,
|
|
||||||
* based on a single set of criteria. A single instance will create
|
|
||||||
* either a wind speed or wind direction derived grid product.
|
|
||||||
*
|
|
||||||
* This class may be imported into a JS uEngine script needing to
|
|
||||||
* compute a derived winds grid.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* include("GribWinds.js");
|
|
||||||
* var gQuery = new GribWinds("grib",true);
|
|
||||||
* gQuery.addParameter("levelinfo","10.0_m");
|
|
||||||
* gQuery.addParameter("forecasttime","0");
|
|
||||||
* gQuery.addParameter("gridid",212);
|
|
||||||
* gQuery.setSortby("basetime");
|
|
||||||
* gQuery.setCount(1);
|
|
||||||
* var gResult = gQuery.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*
|
|
||||||
* @param plugin (String) identifies the data-type plugin - normally "grib"
|
|
||||||
* @param speed (boolean) true to compute wind speed, false to compute wind direction
|
|
||||||
*/
|
|
||||||
function GribWinds(plugin,speed) {
|
|
||||||
this.plugin = plugin;
|
|
||||||
this.speed = speed;
|
|
||||||
this.params = new Object();
|
|
||||||
this.count = 1;
|
|
||||||
this.sortby = "basetime";
|
|
||||||
this.query = new TermQuery(this.plugin);
|
|
||||||
this.geom = null;
|
|
||||||
this.crs = null;
|
|
||||||
this.dataURI = null;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Main action method. Performs the the queries and creates the derived grid.
|
|
||||||
*
|
|
||||||
* @return (FloatDataRecord) the derived grid on success, or
|
|
||||||
* (String) XML null response string on failure
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
var response;
|
|
||||||
/* get the U wind grib */
|
|
||||||
var query = new TermQuery(this.plugin);
|
|
||||||
for (name in this.params) {
|
|
||||||
query.addParameter(name,this.params[name]);
|
|
||||||
}
|
|
||||||
query.addParameter("paramid","U%wind","like");
|
|
||||||
query.setCount(this.count);
|
|
||||||
query.setSortBy(this.sortby);
|
|
||||||
var uResult = query.execute();
|
|
||||||
if (uResult.size() == 0) {
|
|
||||||
return this.makeError("Query for Wind-U returned 0 results.",this.query);
|
|
||||||
}
|
|
||||||
/* get the V wind grib */
|
|
||||||
var query = new TermQuery(this.plugin);
|
|
||||||
for (name in this.params) {
|
|
||||||
query.addParameter(name,this.params[name]);
|
|
||||||
}
|
|
||||||
query.addParameter("paramid","V%wind","like");
|
|
||||||
query.setCount(this.count);
|
|
||||||
query.setSortBy(this.sortby);
|
|
||||||
var vResult = query.execute();
|
|
||||||
if (vResult.size() == 0) {
|
|
||||||
return this.makeError("Query for Wind-V returned 0 results.",this.query);
|
|
||||||
}
|
|
||||||
/* read the data from the data store */
|
|
||||||
this.geom = uResult.get(0).getGrid().getGridGeom();
|
|
||||||
this.crs = uResult.get(0).getGrid().getCrs();
|
|
||||||
this.dataURI = uResult.get(0).getDataURI();
|
|
||||||
var uFile = new FileIn(this.plugin,uResult.get(0));
|
|
||||||
var vFile = new FileIn(this.plugin,vResult.get(0));
|
|
||||||
var uData = uFile.execute();
|
|
||||||
var vData = vFile.execute();
|
|
||||||
/* combine the data into wind speed data */
|
|
||||||
var windSpeed = new ConvertWindsData(uData,vData,this.speed);
|
|
||||||
return windSpeed.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* GWS accessors */
|
|
||||||
function _setSortby(sortValue) {
|
|
||||||
this.sortby = sortValue;
|
|
||||||
}
|
|
||||||
function _setCount(count) {
|
|
||||||
this.count = count;
|
|
||||||
}
|
|
||||||
function _addParameter(name,value) {
|
|
||||||
this.params[name] = value;
|
|
||||||
}
|
|
||||||
function _getGeom() {
|
|
||||||
return this.geom;
|
|
||||||
}
|
|
||||||
function _getCRS () {
|
|
||||||
return this.crs;
|
|
||||||
}
|
|
||||||
function _getDataURI() {
|
|
||||||
return this.dataURI;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* helper methods */
|
|
||||||
function _makeError(message,query) {
|
|
||||||
var response = new MakeResponseNull(message,query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map the functions to the class prototype */
|
|
||||||
GribWinds.prototype.execute = _execute;
|
|
||||||
GribWinds.prototype.addParameter = _addParameter;
|
|
||||||
GribWinds.prototype.getGeom = _getGeom;
|
|
||||||
GribWinds.prototype.getCRS = _getCRS;
|
|
||||||
GribWinds.prototype.getDataURI = _getDataURI;
|
|
||||||
GribWinds.prototype.setCount = _setCount;
|
|
||||||
GribWinds.prototype.setSortby = _setSortby;
|
|
||||||
GribWinds.prototype.makeError = _makeError;
|
|
|
@ -1,160 +0,0 @@
|
||||||
function GridRequest(){
|
|
||||||
this.plugin = "grib";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.createImage = false;
|
|
||||||
this.reproject = false;
|
|
||||||
this.colormap = "BW";
|
|
||||||
this.format = "png";
|
|
||||||
this.scaleFactor = 1.0;
|
|
||||||
this.longitude = -91.0;
|
|
||||||
this.latitude = 42.0;
|
|
||||||
this.slice = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name, value, operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setScaleFactor(scale){
|
|
||||||
this.scaleFactor = scale;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColormap(colormap){
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFormat(format){
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _requestImage(image){
|
|
||||||
this.createImage = image;
|
|
||||||
}
|
|
||||||
function _requestSlice(slice){
|
|
||||||
this.createSlice = slice;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setLatitude(latitude){
|
|
||||||
this.latitude = latitude;
|
|
||||||
}
|
|
||||||
function _setLongitude(longitude){
|
|
||||||
this.longitude = longitude;
|
|
||||||
}
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
if(this.createSlice) {
|
|
||||||
return this.makegridslicerResponse();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(this.createImage){
|
|
||||||
return this.makeImageResponse();
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var count = this.queryResults.size();
|
|
||||||
var response = new Array(count);
|
|
||||||
for(i=0; i < count; i++)
|
|
||||||
{
|
|
||||||
var currentQuery = this.queryResults.get(i);
|
|
||||||
var fileIn = new FileIn(this.plugin, currentQuery);
|
|
||||||
var extractor = new GribExtractData(fileIn.execute(),currentQuery);
|
|
||||||
extractor.execute();
|
|
||||||
|
|
||||||
var makeResponse = new MakeResponseXml(currentQuery);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeImageResponse(){
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var currentQuery = this.queryResults.get(i);
|
|
||||||
var geom = currentQuery.getSpatialInfo().getMapGeom();
|
|
||||||
var crs = currentQuery.getSpatialInfo().getCrsObject();
|
|
||||||
var fileIn = new FileIn(this.plugin, currentQuery);
|
|
||||||
var extractor = new GribExtractData(fileIn.execute(),currentQuery);
|
|
||||||
var gribMap = new GribMap(this.plugin, this.colormap, extractor.execute(), geom);
|
|
||||||
gribMap.setScaleFactor(this.scaleFactor);
|
|
||||||
var imageData = gribMap.execute();
|
|
||||||
geom = gribMap.getGridGeometry();
|
|
||||||
var colorMap = new ColorMapImage(this.colormap, imageData, geom);
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), geom, crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format,geom);
|
|
||||||
}
|
|
||||||
var fileOut = new FileOut(imageOut.execute(), this.format);
|
|
||||||
var writeFile = fileOut.execute();
|
|
||||||
var makeResponse = new MakeResponseUri(writeFile, null, currentQuery.getIdentifier(), this.format);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
GridRequest.prototype.execute = _execute;
|
|
||||||
GridRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
GridRequest.prototype.makeImageResponse = _makeImageResponse;
|
|
||||||
GridRequest.prototype.addParameter = _addParameter;
|
|
||||||
GridRequest.prototype.addList = _addList;
|
|
||||||
GridRequest.prototype.setCount = _setCount;
|
|
||||||
GridRequest.prototype.setScaleFactor = _setScaleFactor;
|
|
||||||
GridRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
GridRequest.prototype.reprojectImage = _reprojectImage;
|
|
||||||
GridRequest.prototype.setColormap = _setColormap;
|
|
||||||
GridRequest.prototype.setFormat = _setFormat;
|
|
||||||
GridRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
GridRequest.prototype.requestImage = _requestImage;
|
|
||||||
GridRequest.prototype.setLatitude = _setLatitude;
|
|
||||||
GridRequest.prototype.setLongitude = _setLongitude;
|
|
|
@ -1,38 +0,0 @@
|
||||||
/**
|
|
||||||
* uEngine implementation of the clasic "Hello World" program.
|
|
||||||
* When executed by the uEngine, the message set but the client
|
|
||||||
* is logged to the Mule system log as an "info" level log entry.
|
|
||||||
* The message is also eche'd back to the client as part of the
|
|
||||||
* response message.
|
|
||||||
*
|
|
||||||
* This class represents the mid tier of the 3-tier scripting
|
|
||||||
* model used by uEngine.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* include("HelloWorld.js");
|
|
||||||
* var runner = new HelloWorld();
|
|
||||||
* runner.setMessage("Hello World from Omaha.");
|
|
||||||
* runner.execute();
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
/* the class constructor */
|
|
||||||
function HelloWorld() {
|
|
||||||
this.message = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* class methods */
|
|
||||||
function _execute() {
|
|
||||||
var logger = new SystemLog();
|
|
||||||
logger.log("info",this.message);
|
|
||||||
/* empty response */
|
|
||||||
var response = new MakeResponseGeneric(this.message);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setMessage(text) {
|
|
||||||
this.message = text;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* attach methods to class - w/aliases */
|
|
||||||
HelloWorld.prototype.execute = _execute;
|
|
||||||
HelloWorld.prototype.setMessage = _setMessage;
|
|
|
@ -1,9 +0,0 @@
|
||||||
function LatestTime(uriList){
|
|
||||||
this.ltq = new LatestTimeQuery(uriList);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute(){
|
|
||||||
return this.ltq.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
LatestTime.prototype.execute = _execute;
|
|
|
@ -1,70 +0,0 @@
|
||||||
function LightningRequest(){
|
|
||||||
this.plugin = "binlightning";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.sortValue = "";
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query returned 0 results.",this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var count = this.queryResults.size();
|
|
||||||
var response = new Array(count);
|
|
||||||
for(i=0; i < count; i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
LightningRequest.prototype.execute = _execute;
|
|
||||||
LightningRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
LightningRequest.prototype.addParameter = _addParameter;
|
|
||||||
LightningRequest.prototype.addList = _addList;
|
|
||||||
LightningRequest.prototype.setCount = _setCount;
|
|
||||||
LightningRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
LightningRequest.prototype.setSortValue = _setSortValue;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for ModelSoundingRequest data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080310 969 jkorman Initial implementation.
|
|
||||||
*/
|
|
||||||
function ModelSoundingRequest(){
|
|
||||||
this.plugin = "modelsounding";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
ModelSoundingRequest.prototype.execute = _execute;
|
|
||||||
ModelSoundingRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
ModelSoundingRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
ModelSoundingRequest.prototype.addParameter = _addParameter;
|
|
||||||
ModelSoundingRequest.prototype.addList = _addList;
|
|
||||||
ModelSoundingRequest.prototype.setCount = _setCount;
|
|
||||||
ModelSoundingRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
ModelSoundingRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
ModelSoundingRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,46 +0,0 @@
|
||||||
function ObsIcaoRequest(){
|
|
||||||
this.plugin = "obsIcao";
|
|
||||||
|
|
||||||
this.obsicao = new ObsIcaoQuery();
|
|
||||||
this.icao = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
this.icao = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
|
|
||||||
var station = null;
|
|
||||||
var icaos = new Array();
|
|
||||||
|
|
||||||
this.obsicao.setIcao(this.icao);
|
|
||||||
station = this.obsicao.execute();
|
|
||||||
|
|
||||||
if(station!=null){
|
|
||||||
var response = new Array();
|
|
||||||
response[0] = station;
|
|
||||||
var makeResponse = new MakeResponseXml(station);
|
|
||||||
response[0] = makeResponse.execute();
|
|
||||||
return response;
|
|
||||||
} else {
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.obsicao);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
ObsIcaoRequest.prototype.execute = _execute;
|
|
||||||
ObsIcaoRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
ObsIcaoRequest.prototype.addParameter = _addParameter;
|
|
|
@ -1,132 +0,0 @@
|
||||||
function ObsRequest(){
|
|
||||||
this.plugin = "obs";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.spatial = new SpatialQuery;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
|
|
||||||
this.upperLeftLat = null;
|
|
||||||
this.upperLeftLon = null;
|
|
||||||
this.lowerRightLat = null;
|
|
||||||
this.lowerRightLon = null;
|
|
||||||
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
var stations = null;
|
|
||||||
var icaos = new Array();
|
|
||||||
if(this.spatial!=null){
|
|
||||||
stations=this.spatial.execute();
|
|
||||||
|
|
||||||
if(stations!=null){
|
|
||||||
|
|
||||||
for(i=0;i<stations.size();i++){
|
|
||||||
|
|
||||||
icaos[i]=stations.get(i).getIcao();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(icaos.length>0){
|
|
||||||
this.addParameter("stationID",icaos,"in");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSpatialBox(ulLat,ulLon,lrLat,lrLon){
|
|
||||||
this.spatial.setUpperLeftLat(ulLat);
|
|
||||||
this.spatial.setUpperLeftLon(ulLon);
|
|
||||||
this.spatial.setLowerRightLat(lrLat);
|
|
||||||
this.spatial.setLowerRightLon(lrLon);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
ObsRequest.prototype.execute = _execute;
|
|
||||||
ObsRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
ObsRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
ObsRequest.prototype.addParameter = _addParameter;
|
|
||||||
ObsRequest.prototype.addList = _addList;
|
|
||||||
ObsRequest.prototype.setCount = _setCount;
|
|
||||||
ObsRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
ObsRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
ObsRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
||||||
ObsRequest.prototype.setSpatialBox = _setSpatialBox;
|
|
|
@ -1,101 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a spatial query and creates a list of Observation objects for the
|
|
||||||
* specified observation parameter for stations in the specified spatial region.
|
|
||||||
*
|
|
||||||
* First performs the spatial query for the region to create a list of stations,
|
|
||||||
* then queries for observations for the stations. Finally it creates a list of
|
|
||||||
* Observation objects for the specified parameter.
|
|
||||||
*
|
|
||||||
* This class may be imported into a JS uEngine script needing to perform a
|
|
||||||
* spatial query for a specific observation parameter.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* include("ObsSpatial.js");
|
|
||||||
* var oQuery = new ObsSpatialQuery("obs","temperature");
|
|
||||||
* oQuery.addParameter("refhour","20070601190000");
|
|
||||||
* oQuery.setSortby("timeobs");
|
|
||||||
* oQuery.setCount(0);
|
|
||||||
* oQuery.setSpatialBounds(43.00, -98.00, 37.00, -92.00,"icao","geometry");
|
|
||||||
* var oResult = oQuery.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*
|
|
||||||
* @param plugin (String) identifies the data-type plugin - normally "obs"
|
|
||||||
* @param obParam (String) the observation parameter to query.
|
|
||||||
*/
|
|
||||||
function ObsSpatialQuery(plugin,obParam) {
|
|
||||||
this.icao = "icao";
|
|
||||||
this.geometry = "geometry";
|
|
||||||
this.plugin = plugin;
|
|
||||||
this.obParam = obParam;
|
|
||||||
this.oQuery = new TermQuery(this.plugin);
|
|
||||||
this.sQuery = new SpatialQuery();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Main action method. Performs the the queries and creates the Observation list.
|
|
||||||
*
|
|
||||||
* @return (ArrayList) the Observation list on success, or
|
|
||||||
* (String) XML null response string on failure
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
/* get the spatial results */
|
|
||||||
var sResult = this.sQuery.execute();
|
|
||||||
if(sResult == null || sResult.size() == 0) {
|
|
||||||
return this.makeError("Spatial query returned no results.",this.spatial);
|
|
||||||
}
|
|
||||||
/* get and geolocate the wind speed observations */
|
|
||||||
this.addList("stationid",MEUtils.changeArrayListToString(sResult.get(this.icao)));
|
|
||||||
var oResult = this.oQuery.execute();
|
|
||||||
if(oResult == null || oResult.size() == 0) {
|
|
||||||
return this.makeError("Ob query returned no results.",oQuery);
|
|
||||||
}
|
|
||||||
var oMap = new MapAsciiData(this.obParam,
|
|
||||||
oResult,
|
|
||||||
sResult.get(this.icao),
|
|
||||||
sResult.get(this.geometry));
|
|
||||||
|
|
||||||
return oMap.execute();
|
|
||||||
}
|
|
||||||
/* OSQ accessors */
|
|
||||||
function _setSortby(sortValue) {
|
|
||||||
this.oQuery.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
function _setCount(count) {
|
|
||||||
this.oQuery.setCount(count);
|
|
||||||
}
|
|
||||||
function _addParameter(name,value) {
|
|
||||||
this.oQuery.addParameter(name,value);
|
|
||||||
}
|
|
||||||
function _addList(name,value) {
|
|
||||||
this.oQuery.addParameter(name,value,"in");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* setter for the spatial bounds */
|
|
||||||
function _setSpatialBounds(ulLat, ulLon, lrLat, lrLon, icao, geom) {
|
|
||||||
this.icao = icao;
|
|
||||||
this.geometry = geom;
|
|
||||||
this.sQuery.setUpperLeftLat(ulLat);
|
|
||||||
this.sQuery.setUpperLeftLon(ulLon);
|
|
||||||
this.sQuery.setLowerRightLat(lrLat);
|
|
||||||
this.sQuery.setLowerRightLon(lrLon);
|
|
||||||
/* preload fields of the query */
|
|
||||||
this.sQuery.addField(this.icao);
|
|
||||||
this.sQuery.addField(this.geometry);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* helper methods */
|
|
||||||
function _makeError(message,query) {
|
|
||||||
var response = new MakeResponseNull(message,query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map the functions to the class prototype */
|
|
||||||
ObsSpatialQuery.prototype.execute = _execute;
|
|
||||||
ObsSpatialQuery.prototype.addParameter = _addParameter;
|
|
||||||
ObsSpatialQuery.prototype.setCount = _setCount;
|
|
||||||
ObsSpatialQuery.prototype.setSortby = _setSortby;
|
|
||||||
ObsSpatialQuery.prototype.makeError = _makeError;
|
|
||||||
ObsSpatialQuery.prototype.setSpatialBounds = _setSpatialBounds;
|
|
||||||
ObsSpatialQuery.prototype.addList = _addList;
|
|
|
@ -1,104 +0,0 @@
|
||||||
function ObsRequest(){
|
|
||||||
this.plugin = "obs";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.spatial = new SpatialQuery;
|
|
||||||
|
|
||||||
this.upperLeftLat = null;
|
|
||||||
this.upperLeftLon = null;
|
|
||||||
this.lowerRightLat = null;
|
|
||||||
this.lowerRightLon = null;
|
|
||||||
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
var stations = null;
|
|
||||||
var icaos = new Array();
|
|
||||||
if(this.spatial!=null){
|
|
||||||
stations=this.spatial.execute();
|
|
||||||
|
|
||||||
if(stations!=null){
|
|
||||||
|
|
||||||
for(i=0;i<stations.size();i++){
|
|
||||||
|
|
||||||
icaos[i]=stations.get(i).getIcao();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(icaos.length>0){
|
|
||||||
this.addParameter("stationID",icaos,"in");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSpatialBox(ulLat,ulLon,lrLat,lrLon){
|
|
||||||
this.spatial.setUpperLeftLat(ulLat);
|
|
||||||
this.spatial.setUpperLeftLon(ulLon);
|
|
||||||
this.spatial.setLowerRightLat(lrLat);
|
|
||||||
this.spatial.setLowerRightLon(lrLon);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
ObsRequest.prototype.execute = _execute;
|
|
||||||
ObsRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
ObsRequest.prototype.addParameter = _addParameter;
|
|
||||||
ObsRequest.prototype.addList = _addList;
|
|
||||||
ObsRequest.prototype.setCount = _setCount;
|
|
||||||
ObsRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
ObsRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
ObsRequest.prototype.setSpatialBox = _setSpatialBox;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for PIREP data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080105 713 jkorman Initial Coding.
|
|
||||||
*/
|
|
||||||
function PIREPRequest(){
|
|
||||||
this.plugin = "pirep";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
PIREPRequest.prototype.execute = _execute;
|
|
||||||
PIREPRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
PIREPRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
PIREPRequest.prototype.addParameter = _addParameter;
|
|
||||||
PIREPRequest.prototype.addList = _addList;
|
|
||||||
PIREPRequest.prototype.setCount = _setCount;
|
|
||||||
PIREPRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
PIREPRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
PIREPRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for POESSoundingRequest data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080423 1078 jkorman Initial implementation.
|
|
||||||
*/
|
|
||||||
function POESSoundingRequest(){
|
|
||||||
this.plugin = "poessounding";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
POESSoundingRequest.prototype.execute = _execute;
|
|
||||||
POESSoundingRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
POESSoundingRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
POESSoundingRequest.prototype.addParameter = _addParameter;
|
|
||||||
POESSoundingRequest.prototype.addList = _addList;
|
|
||||||
POESSoundingRequest.prototype.setCount = _setCount;
|
|
||||||
POESSoundingRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
POESSoundingRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
POESSoundingRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for Profiler data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080310 969 jkorman Initial implementation.
|
|
||||||
*/
|
|
||||||
function ProfilerRequest(){
|
|
||||||
this.plugin = "profiler";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
ProfilerRequest.prototype.execute = _execute;
|
|
||||||
ProfilerRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
ProfilerRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
ProfilerRequest.prototype.addParameter = _addParameter;
|
|
||||||
ProfilerRequest.prototype.addList = _addList;
|
|
||||||
ProfilerRequest.prototype.setCount = _setCount;
|
|
||||||
ProfilerRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
ProfilerRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
ProfilerRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for RECCO data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080105 713 jkorman Initial Coding.
|
|
||||||
*/
|
|
||||||
function RECCORequest(){
|
|
||||||
this.plugin = "recco";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
RECCORequest.prototype.execute = _execute;
|
|
||||||
RECCORequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
RECCORequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
RECCORequest.prototype.addParameter = _addParameter;
|
|
||||||
RECCORequest.prototype.addList = _addList;
|
|
||||||
RECCORequest.prototype.setCount = _setCount;
|
|
||||||
RECCORequest.prototype.setSortValue = _setSortValue;
|
|
||||||
RECCORequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
RECCORequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,130 +0,0 @@
|
||||||
function RadarRequest(){
|
|
||||||
this.plugin = "radar";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.createImage = false;
|
|
||||||
this.reproject = false;
|
|
||||||
this.colormap = "BW";
|
|
||||||
this.format = "png";
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name, value, operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColormap(colormap){
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFormat(format){
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _requestImage(image){
|
|
||||||
this.createImage = image;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query returned 0 results.",this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.createImage){
|
|
||||||
return this.makeImageResponse();
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var count = this.queryResults.size();
|
|
||||||
var response = new Array(count);
|
|
||||||
for(i=0; i < count; i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeImageResponse(){
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var currentQuery = this.queryResults.get(i);
|
|
||||||
var fileIn = new FileIn(this.plugin, currentQuery);
|
|
||||||
var records = fileIn.retrieveGroup();
|
|
||||||
var radarImage = new DecodeRadarImage(currentQuery, records);
|
|
||||||
|
|
||||||
var geom = radarImage.getGridGeometry();
|
|
||||||
var colorMap = new ColorMapImage(this.colormap, radarImage.execute(), geom);
|
|
||||||
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var crs = radarImage.getCrs();
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), geom, crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format, geom);
|
|
||||||
}
|
|
||||||
|
|
||||||
var fileOut = new FileOut(imageOut.execute(), this.format);
|
|
||||||
var writeFile = fileOut.execute();
|
|
||||||
var makeResponse = new MakeResponseUri(writeFile, null, currentQuery.getDataURI(), this.format);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
RadarRequest.prototype.execute = _execute;
|
|
||||||
RadarRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
RadarRequest.prototype.makeImageResponse = _makeImageResponse;
|
|
||||||
RadarRequest.prototype.addParameter = _addParameter;
|
|
||||||
RadarRequest.prototype.addList = _addList;
|
|
||||||
RadarRequest.prototype.setCount = _setCount;
|
|
||||||
RadarRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
RadarRequest.prototype.reprojectImage = _reprojectImage;
|
|
||||||
RadarRequest.prototype.setColormap = _setColormap;
|
|
||||||
RadarRequest.prototype.setFormat = _setFormat;
|
|
||||||
RadarRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
RadarRequest.prototype.requestImage = _requestImage;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for Redbook graphics data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080521 1131 jkorman Initial implementation.
|
|
||||||
*/
|
|
||||||
function RedbookRequest(){
|
|
||||||
this.plugin = "redbook";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
RedbookRequest.prototype.execute = _execute;
|
|
||||||
RedbookRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
RedbookRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
RedbookRequest.prototype.addParameter = _addParameter;
|
|
||||||
RedbookRequest.prototype.addList = _addList;
|
|
||||||
RedbookRequest.prototype.setCount = _setCount;
|
|
||||||
RedbookRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
RedbookRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
RedbookRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,8 +0,0 @@
|
||||||
function RetrieveHibStats(){
|
|
||||||
this.cat = new HibernateStats();
|
|
||||||
}
|
|
||||||
function _execute(){
|
|
||||||
return this.cat.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
RetrieveHibStats.prototype.execute = _execute;
|
|
|
@ -1,127 +0,0 @@
|
||||||
function SatelliteRequest(){
|
|
||||||
this.plugin = "satellite";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.createImage = false;
|
|
||||||
this.reproject = false;
|
|
||||||
this.colormap = "BW";
|
|
||||||
this.format = "png";
|
|
||||||
this.sortValue = "";
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColormap(colormap){
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFormat(format){
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _requestImage(image){
|
|
||||||
this.createImage = image;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query returned 0 results.",this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.createImage){
|
|
||||||
return this.makeImageResponse();
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var count = this.queryResults.size();
|
|
||||||
var response = new Array(count);
|
|
||||||
for(i=0; i < count; i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeImageResponse(){
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var currentQuery = this.queryResults.get(i);
|
|
||||||
var geom = currentQuery.getSpatialInfo().getMapGeom();
|
|
||||||
var crs = currentQuery.getSpatialInfo().getCrsObject();
|
|
||||||
var fileIn = new FileIn(this.plugin, currentQuery);
|
|
||||||
var record = fileIn.execute();
|
|
||||||
var colorMap = new ColorMapImage(this.colormap, record.getDataObject(), geom);
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), geom, crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format,geom);
|
|
||||||
}
|
|
||||||
var fileOut = new FileOut(imageOut.execute(), this.format);
|
|
||||||
var writeFile = fileOut.execute();
|
|
||||||
var makeResponse = new MakeResponseUri(writeFile, null, currentQuery.getIdentifier(), this.format);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
SatelliteRequest.prototype.execute = _execute;
|
|
||||||
SatelliteRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
SatelliteRequest.prototype.makeImageResponse = _makeImageResponse;
|
|
||||||
SatelliteRequest.prototype.addParameter = _addParameter;
|
|
||||||
SatelliteRequest.prototype.addList = _addList;
|
|
||||||
SatelliteRequest.prototype.setCount = _setCount;
|
|
||||||
SatelliteRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
SatelliteRequest.prototype.reprojectImage = _reprojectImage;
|
|
||||||
SatelliteRequest.prototype.setColormap = _setColormap;
|
|
||||||
SatelliteRequest.prototype.setFormat = _setFormat;
|
|
||||||
SatelliteRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
SatelliteRequest.prototype.requestImage = _requestImage;
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a TermQuery for SfcObs (Surface Synoptic) data.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* TBD
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* 20080105 713 jkorman Initial Coding.
|
|
||||||
*/
|
|
||||||
function SfcObsRequest(){
|
|
||||||
this.plugin = "sfcobs";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(this.asciiResponse)
|
|
||||||
{
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse()
|
|
||||||
{
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(this.queryResults.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(this.queryResults.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
SfcObsRequest.prototype.execute = _execute;
|
|
||||||
SfcObsRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
SfcObsRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
SfcObsRequest.prototype.addParameter = _addParameter;
|
|
||||||
SfcObsRequest.prototype.addList = _addList;
|
|
||||||
SfcObsRequest.prototype.setCount = _setCount;
|
|
||||||
SfcObsRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
SfcObsRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
SfcObsRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,129 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a query for all station data of a specific type over a specified
|
|
||||||
* region.
|
|
||||||
*
|
|
||||||
* This script represents a complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This sample script retrieves all TAF's on the selected region.
|
|
||||||
* include("SpatialDataQuery.js");
|
|
||||||
* var demo = new SpatialObQuery('taf');
|
|
||||||
* demo.setSpatialBounds(45.00,-100.00,35.00,-90.00);
|
|
||||||
* demo.addSpatialField("icao");
|
|
||||||
* demo.enableAsciiResponse();
|
|
||||||
* demo.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*
|
|
||||||
* @param plugin the name of the data-type plug-in for the query
|
|
||||||
*/
|
|
||||||
function SpatialDataQuery(plugin) {
|
|
||||||
/* named constants */
|
|
||||||
this.icao = "icao";
|
|
||||||
this.stationid = "stationid";
|
|
||||||
/* the query objects */
|
|
||||||
this.asciiResopnse = false;
|
|
||||||
this.plugin = (plugin!=null)?plugin:"obs";
|
|
||||||
this.spatial = new SpatialQuery();
|
|
||||||
this.query = new TermQuery(this.plugin);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main action method. Performs the the Barnes Analysis and creates the image.
|
|
||||||
*
|
|
||||||
* @return (String) XML string containing the results.
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
var response = this.spatial.execute();
|
|
||||||
if (response.size() == 0 || response.get(this.icao).size() == 0) {
|
|
||||||
return this.makeNullResponse(null);
|
|
||||||
}
|
|
||||||
var icaos = this.listToString(response.get(this.icao),",");
|
|
||||||
this.query.addParameter(this.stationid,icaos,"in");
|
|
||||||
this.query.setCount(0);
|
|
||||||
var result = this.query.execute();
|
|
||||||
if (result.size() == 0) {
|
|
||||||
return this.makeNullResponse(this.query);
|
|
||||||
} else if (this.asciiResponse) {
|
|
||||||
return this.makeAsciiResponse(result);
|
|
||||||
} else {
|
|
||||||
return this.makeXmlResponse(result);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* converts a List to a string */
|
|
||||||
function _listToString(list,sep){
|
|
||||||
var string = new Array();
|
|
||||||
for (i=0;i<list.size();i++) {
|
|
||||||
string[i] = list.get(i);
|
|
||||||
}
|
|
||||||
return string.join(sep);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* switches to ascii response type */
|
|
||||||
function _enableAsciiResponse(){
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* creates the null response when a query returns no results */
|
|
||||||
function _makeNullResponse(query) {
|
|
||||||
var plugin;
|
|
||||||
if (query == null) {
|
|
||||||
query = new TermQuery(this.plugin);
|
|
||||||
query.addParameter(this.stationid,".+?");
|
|
||||||
plugin = "spatial";
|
|
||||||
} else {
|
|
||||||
plugin = query.getPlugin();
|
|
||||||
}
|
|
||||||
var msg = plugin + " query returned no results.";
|
|
||||||
var response = new MakeResponseNull(msg,query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* generates the ascii response */
|
|
||||||
function _makeAsciiResponse(result) {
|
|
||||||
var xmlResults = new Array();
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < result.size(); i++)
|
|
||||||
{
|
|
||||||
var toXml = new DataToXml(result.get(i));
|
|
||||||
xmlResults[i] = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(result.get(i), xmlResults[i]);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* generates XML response */
|
|
||||||
function _makeXmlResponse(result) {
|
|
||||||
var response = new Array();
|
|
||||||
for (i=0; i < result.size(); i++) {
|
|
||||||
var makeResponse = new MakeResponseXML(result.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
/* setters for the spatial query */
|
|
||||||
function _setSpatialBounds(ulLat, ulLon, lrLat, lrLon) {
|
|
||||||
this.spatial.setUpperLeftLat(ulLat);
|
|
||||||
this.spatial.setUpperLeftLon(ulLon);
|
|
||||||
this.spatial.setLowerRightLat(lrLat);
|
|
||||||
this.spatial.setLowerRightLon(lrLon);
|
|
||||||
}
|
|
||||||
function _addSpatialField(name) {
|
|
||||||
this.spatial.addField(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map the functions to the class prototype */
|
|
||||||
SpatialDataQuery.prototype.execute = _execute;
|
|
||||||
SpatialDataQuery.prototype.setSpatialBounds = _setSpatialBounds;
|
|
||||||
SpatialDataQuery.prototype.addSpatialField = _addSpatialField;
|
|
||||||
SpatialDataQuery.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
SpatialDataQuery.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
SpatialDataQuery.prototype.makeNullResponse = _makeNullResponse;
|
|
||||||
SpatialDataQuery.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
||||||
SpatialDataQuery.prototype.listToString = _listToString;
|
|
||||||
|
|
|
@ -1,148 +0,0 @@
|
||||||
/**
|
|
||||||
* This script creates a stop light (green/yellow/red) decision chart from a
|
|
||||||
* grid product. The parameter for the grid retrieval are set via the property
|
|
||||||
* setter. The color map is user selectable, but should be set to "StopLight".
|
|
||||||
*
|
|
||||||
* This script may be subscribed using the EDEX subscription service.
|
|
||||||
*
|
|
||||||
* This script represents a complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This script creates a temperature based stop light chart.
|
|
||||||
* include("StopLightMaker.js");
|
|
||||||
* var dataRequest = new StopLightMaker();
|
|
||||||
* dataRequest.addParameter("paramid","Temperature");
|
|
||||||
* dataRequest.addParameter("levelinfo","2.0_m");
|
|
||||||
* dataRequest.addParameter("forecasttime","0");
|
|
||||||
* dataRequest.addParameter("gridid",212);
|
|
||||||
* dataRequest.setCount(1);
|
|
||||||
* dataRequest.setColormap("StopLight");
|
|
||||||
* dataRequest.setSortValue("basetime");
|
|
||||||
* dataRequest.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*/
|
|
||||||
function StopLightMaker(){
|
|
||||||
this.plugin = "grib";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.reproject = false;
|
|
||||||
this.colormap = "StopLight";
|
|
||||||
this.format = "png";
|
|
||||||
this.scaleFactor = 3.0;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Main action method. Creates the stop light chart.
|
|
||||||
*
|
|
||||||
* @return (String) XML representing the final product
|
|
||||||
*/
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeImageResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* setters */
|
|
||||||
function _addParameter(name, value){
|
|
||||||
this.query.addParameter(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addParameter(name, value, "in");
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setScaleFactor(scale){
|
|
||||||
this.scaleFactor = scale;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColormap(colormap){
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFormat(format){
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _requestImage(image){
|
|
||||||
this.createImage = image;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* helper methods */
|
|
||||||
function _makeImageResponse(){
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var currentQuery = this.queryResults.get(i);
|
|
||||||
var geom = currentQuery.getGrid().getGridGeom();
|
|
||||||
var crs = currentQuery.getGrid().getCrs();
|
|
||||||
var fileIn = new FileIn(this.plugin, currentQuery);
|
|
||||||
var stopLight = new StopLightImage(fileIn.execute());
|
|
||||||
var gribMap = new GribMap(this.plugin, this.colormap, stopLight.execute(), geom);
|
|
||||||
gribMap.setScaleFactor(this.scaleFactor);
|
|
||||||
var imageData = gribMap.execute();
|
|
||||||
geom = gribMap.getGridGeometry();
|
|
||||||
var colorMap = new ColorMapImage(this.colormap, imageData, geom);
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), geom, crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format);
|
|
||||||
}
|
|
||||||
var fileOut = new FileOut(imageOut.execute(), this.format);
|
|
||||||
var writeFile = fileOut.execute();
|
|
||||||
var makeResponse = new MakeResponseUri(writeFile, null, currentQuery.getDataURI(), this.format);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map the functions to the class prototype */
|
|
||||||
StopLightMaker.prototype.execute = _execute;
|
|
||||||
StopLightMaker.prototype.makeImageResponse = _makeImageResponse;
|
|
||||||
StopLightMaker.prototype.addParameter = _addParameter;
|
|
||||||
StopLightMaker.prototype.addList = _addList;
|
|
||||||
StopLightMaker.prototype.setCount = _setCount;
|
|
||||||
StopLightMaker.prototype.setScaleFactor = _setScaleFactor;
|
|
||||||
StopLightMaker.prototype.enableSubscription = _enableSubscription;
|
|
||||||
StopLightMaker.prototype.reprojectImage = _reprojectImage;
|
|
||||||
StopLightMaker.prototype.setColormap = _setColormap;
|
|
||||||
StopLightMaker.prototype.setFormat = _setFormat;
|
|
||||||
StopLightMaker.prototype.setSortValue = _setSortValue;
|
|
||||||
StopLightMaker.prototype.requestImage = _requestImage;
|
|
|
@ -1,96 +0,0 @@
|
||||||
/**
|
|
||||||
* Obtains an entry from a table.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* include("TableRequest.js");
|
|
||||||
* var query = new TableQuery("tableName");
|
|
||||||
* query.addParameter ("site", "Valley");
|
|
||||||
* query.addParameter ("type", "flood");
|
|
||||||
* var results = query.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*
|
|
||||||
* @param tableName (String) identifies the table
|
|
||||||
*/
|
|
||||||
function TableRequest(database, table){
|
|
||||||
this.database = database;
|
|
||||||
this.tableName = table;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.query = new TableQuery(this.database,this.tableName);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand)
|
|
||||||
{
|
|
||||||
if(arguments.length==2)
|
|
||||||
{
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setTableName(name){
|
|
||||||
this.tableName = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setDatabase(name){
|
|
||||||
this.database = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main action method. Queries the database and returns the XML
|
|
||||||
* representation of a persistable data object.
|
|
||||||
*
|
|
||||||
* @return (String) XML representation of a table on success
|
|
||||||
* (String) XML null response string on failure
|
|
||||||
*/
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
TableRequest.prototype.execute = _execute;
|
|
||||||
TableRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
TableRequest.prototype.addParameter = _addParameter;
|
|
||||||
TableRequest.prototype.addList = _addList;
|
|
||||||
TableRequest.prototype.setCount = _setCount;
|
|
||||||
TableRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
TableRequest.prototype.setTableName = _setTableName;
|
|
||||||
TableRequest.prototype.setDatabase = _setDatabase;
|
|
|
@ -1,49 +0,0 @@
|
||||||
/**
|
|
||||||
* Updates an entry in a table.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* include("TableResponse.js");
|
|
||||||
* var query = new TableUpdate("tableName", "rowName");
|
|
||||||
* var results = query.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*
|
|
||||||
* @param tableName (String) identifies the table
|
|
||||||
* @param rowName (String) identifies the row
|
|
||||||
*/
|
|
||||||
function TableResponse(database, table, row){
|
|
||||||
this.database = database;
|
|
||||||
this.tableName = table;
|
|
||||||
this.rowName = row
|
|
||||||
this.updateResults = null;
|
|
||||||
this.update = new TableUpdate(this.database, this.tableName, this.rowName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main action method. Updates the database and returns the XML
|
|
||||||
* representation of an acknowledgement.
|
|
||||||
*
|
|
||||||
* @return (String) XML acknowledgement on success
|
|
||||||
* (String) XML null response string on failure
|
|
||||||
*/
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
this.updateResults = this.update.execute();
|
|
||||||
return this.updateResults;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.updateResults.size(); i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.updateResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
TableResponse.prototype.execute = _execute;
|
|
||||||
TableResponse.prototype.makeXmlResponse = _makeXmlResponse;
|
|
|
@ -1,83 +0,0 @@
|
||||||
function TafRequest() {
|
|
||||||
this.plugin = "taf";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.asciiResponse = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name,value,operand) {
|
|
||||||
if(arguments.length==2) {
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else {
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value) {
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count) {
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue) {
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription() {
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableAsciiResponse() {
|
|
||||||
this.asciiResponse = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute() {
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0) {
|
|
||||||
var response = new MakeResponseNull("Query returned 0 results.",
|
|
||||||
this.query);
|
|
||||||
return response.execute();
|
|
||||||
} else if (this.asciiResponse) {
|
|
||||||
return this.makeAsciiResponse();
|
|
||||||
} else {
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeAsciiResponse() {
|
|
||||||
var response = new Array();
|
|
||||||
for (i = 0; i < this.queryResults.size(); i++) {
|
|
||||||
var result = this.queryResults.get(i);
|
|
||||||
var toXml = new DataToXml(result);
|
|
||||||
var xmlString = toXml.execute();
|
|
||||||
var makeResponse = new MakeResponseAscii(result,xmlString);
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
function _makeXmlResponse() {
|
|
||||||
var response = new Array();
|
|
||||||
for(i=0; i < this.queryResults.size(); i++) {
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
TafRequest.prototype.execute = _execute;
|
|
||||||
TafRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
TafRequest.prototype.makeAsciiResponse = _makeAsciiResponse;
|
|
||||||
TafRequest.prototype.addParameter = _addParameter;
|
|
||||||
TafRequest.prototype.addList = _addList;
|
|
||||||
TafRequest.prototype.setCount = _setCount;
|
|
||||||
TafRequest.prototype.setSortValue = _setSortValue;
|
|
||||||
TafRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
TafRequest.prototype.enableAsciiResponse = _enableAsciiResponse;
|
|
|
@ -1,91 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a VTEC query to request an Event Tracking object for a specific VTEC
|
|
||||||
* event at a specified office.
|
|
||||||
*
|
|
||||||
* This script performs complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Implementation Note:
|
|
||||||
* This script uses a single uEngine task to perform its work.
|
|
||||||
* 1) VtecUpdateEvent: used to send the VTEC request to the VTEC server
|
|
||||||
* and receive the results. The results are returned as a single
|
|
||||||
* Response message. As such, no additional processing is required.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This is a sample script that retrieves the VTN for a Blizard ("BZ")
|
|
||||||
* warning ("W") at "KOAX".
|
|
||||||
* include("VtecEventRetrieval.js");
|
|
||||||
* var runner = new VtecGetEvent();
|
|
||||||
* runner.setTimeOut(10);
|
|
||||||
* runner.setClientID("VTEC Update");
|
|
||||||
* runner.setFields("KOAX","BZ","W");
|
|
||||||
* runner.execute();
|
|
||||||
*/
|
|
||||||
/* constructor */
|
|
||||||
function VtecGetEvent() {
|
|
||||||
this.query = new VtecEventQuery();
|
|
||||||
this.setTimeOut(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* main action function */
|
|
||||||
function _execute() {
|
|
||||||
return this.query.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* main setter - handles required fields
|
|
||||||
*
|
|
||||||
* @param site the ICAO of the WFO
|
|
||||||
* @param phenom the VTEC phenomenon
|
|
||||||
* @param level the VTEC significance
|
|
||||||
*/
|
|
||||||
function _setFields(site,phenom,level) {
|
|
||||||
this.addField(this.query.SITE,site);
|
|
||||||
this.addField(this.query.PHENOM,phenom);
|
|
||||||
this.addField(this.query.LEVEL,level);
|
|
||||||
}
|
|
||||||
|
|
||||||
// initializers
|
|
||||||
/*
|
|
||||||
* Adds property to query object.
|
|
||||||
*
|
|
||||||
* @param key property name.
|
|
||||||
* @param value property value.
|
|
||||||
*/
|
|
||||||
function _addProperty(key,value) {
|
|
||||||
this.query.addProperty(key,value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Adds a field key/value pair to the example object.
|
|
||||||
*/
|
|
||||||
function _addField(name,value) {
|
|
||||||
this.query.addField(name,value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// setters
|
|
||||||
/*
|
|
||||||
* Sets the time-out interval for the request.
|
|
||||||
*
|
|
||||||
* @param time timeout period in seconds.
|
|
||||||
*/
|
|
||||||
function _setTimeOut(time) {
|
|
||||||
this.query.setTimeOut(time * 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Sets the Client ID for the request.
|
|
||||||
*
|
|
||||||
* @param clientID the Client ID
|
|
||||||
*/
|
|
||||||
function _setClientID(clientID) {
|
|
||||||
this.query.setClientID(clientID);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map objects to object prototype */
|
|
||||||
VtecGetEvent.prototype.setTimeOut = _setTimeOut;
|
|
||||||
VtecGetEvent.prototype.setClientID = _setClientID;
|
|
||||||
VtecGetEvent.prototype.setFields = _setFields;
|
|
||||||
VtecGetEvent.prototype.addField = _addField;
|
|
||||||
VtecGetEvent.prototype.addProperty = _addProperty;
|
|
||||||
VtecGetEvent.prototype.execute = _execute;
|
|
|
@ -1,84 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a VTEC request to update the VTN for a specific VTEC Event
|
|
||||||
* at an office.
|
|
||||||
*
|
|
||||||
* This script performs a complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Implementation Note:
|
|
||||||
* This script uses a single uEngine task to perform its work.
|
|
||||||
* 1) VtecUpdateEvent: used to send the VTEC request to the VTEC server
|
|
||||||
* and receive the results. The results are returned as a single
|
|
||||||
* Response message. As such, no additional processing is required.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This is a sample script that updates the VTN for a Blizard ("BZ")
|
|
||||||
* warning ("W") at "KOAX". The new VTN will be 1.
|
|
||||||
* include("VtecEventUpdate.js");
|
|
||||||
* var runner = new VtecUpdater();
|
|
||||||
* runner.setTimeOut(10);
|
|
||||||
* runner.setClientID("VTEC Update");
|
|
||||||
* runner.setFields("KOAX","BZ","W",1);
|
|
||||||
* runner.execute();
|
|
||||||
*/
|
|
||||||
/* constructor */
|
|
||||||
function VtecUpdater() {
|
|
||||||
this.query = new VtecUpdateEvent();
|
|
||||||
this.setTimeOut(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* main action method */
|
|
||||||
function _execute() {
|
|
||||||
return this.query.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFields(site,phenom,level,vtn) {
|
|
||||||
this.addField(this.query.SITE,site);
|
|
||||||
this.addField(this.query.PHENOM,phenom);
|
|
||||||
this.addField(this.query.LEVEL,level);
|
|
||||||
this.addField(this.query.VTN,vtn);
|
|
||||||
}
|
|
||||||
// initializers
|
|
||||||
/*
|
|
||||||
* Adds property to query object.
|
|
||||||
*
|
|
||||||
* @param key property name.
|
|
||||||
* @param value property value.
|
|
||||||
*/
|
|
||||||
function _addProperty(key,value) {
|
|
||||||
this.query.addProperty(key,value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Adds a field key/value pair to the example object.
|
|
||||||
*/
|
|
||||||
function _addField(name,value) {
|
|
||||||
this.query.addField(name,value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// setters
|
|
||||||
/*
|
|
||||||
* Sets the time-out interval for the request.
|
|
||||||
*
|
|
||||||
* @param time timeout period in seconds.
|
|
||||||
*/
|
|
||||||
function _setTimeOut(time) {
|
|
||||||
this.query.setTimeOut(time * 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Sets the Client ID for the request.
|
|
||||||
*
|
|
||||||
* @param clientID the Client ID
|
|
||||||
*/
|
|
||||||
function _setClientID(clientID) {
|
|
||||||
this.query.setClientID(clientID);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* map objects to object prototype */
|
|
||||||
VtecUpdater.prototype.setTimeOut = _setTimeOut;
|
|
||||||
VtecUpdater.prototype.setClientID = _setClientID;
|
|
||||||
VtecUpdater.prototype.setFields = _setFields;
|
|
||||||
VtecUpdater.prototype.addField = _addField;
|
|
||||||
VtecUpdater.prototype.addProperty = _addProperty;
|
|
||||||
VtecUpdater.prototype.execute = _execute;
|
|
|
@ -1,112 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a simple VTEC Request and returns the result to the requestor.
|
|
||||||
*
|
|
||||||
* This script performs a complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Implementation Note:
|
|
||||||
* This script uses two uEngine tasks to perform its work:
|
|
||||||
* 1) VtecObjectQuery: used to send the VTEC Request to the VTEC Server
|
|
||||||
* and receive the results. The results are returned
|
|
||||||
* to the script as an ArrayList, which is accessible
|
|
||||||
* JavaScript.
|
|
||||||
* 2) MakeResponseXml: used to convert each of the VTEC Request results
|
|
||||||
* into a ResponseMessageXML object for return to the
|
|
||||||
* script runner.
|
|
||||||
* Note the loop used to prepare the VTEC Request results into an array for
|
|
||||||
* return to the script runner. The ArrayList (from Java) is accessed using
|
|
||||||
* the get() method. The JavaScript Array object is handled as a normal
|
|
||||||
array.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This is a sample script that requests P-VTEC Event Group "Action" tokens
|
|
||||||
* from the VTEC Server and returns the list of available tokens to the client.
|
|
||||||
* include("VtecObjectRetrieval.js");
|
|
||||||
* var runner = new VtecQuery();
|
|
||||||
* runner.setTimeOut(10);
|
|
||||||
* runner.initialize("named","action");
|
|
||||||
* runner.setClientID("VTEC REQUEST");
|
|
||||||
* runner.addField("name",NEW");
|
|
||||||
* runner.setClientID("VTEC Action");
|
|
||||||
* runner.addProperty("count","10");
|
|
||||||
* runner.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Class constructor.
|
|
||||||
*/
|
|
||||||
function VtecRetrieval(aClass) {
|
|
||||||
this.query = new VtecObjectQuery(aClass);
|
|
||||||
this.setTimeOut(10);
|
|
||||||
this.addProperty("count","0");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Main action method. Performs the VTEC request and
|
|
||||||
* packages the results.
|
|
||||||
*
|
|
||||||
*@return (Object[]) Contains the results of the VTEC request.
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
var results = this.query.execute();
|
|
||||||
var response = new Array();
|
|
||||||
for (i=0; i<results.size(); i++) {
|
|
||||||
var makeResponse = new MakeResponseXml(results.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Adds property to query object.
|
|
||||||
*
|
|
||||||
* @param key property name.
|
|
||||||
* @param value property value.
|
|
||||||
*/
|
|
||||||
function _addProperty(key,value) {
|
|
||||||
this.query.addProperty(key,value);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Adds a field key/value pair to the example object.
|
|
||||||
*/
|
|
||||||
function _addField(name,value) {
|
|
||||||
this.query.addExampleField(name,value);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Allows setting of several properties. The properties set
|
|
||||||
* are the "request token", "class token", and "type token"
|
|
||||||
* properties.
|
|
||||||
*
|
|
||||||
* @param aRequest value for the request token
|
|
||||||
* @param aClass value for the class token
|
|
||||||
*/
|
|
||||||
function _initialize(request,client) {
|
|
||||||
this.addProperty("request",request);
|
|
||||||
this.setClientID(client);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* class setters */
|
|
||||||
/*
|
|
||||||
* Sets the time-out interval for the request.
|
|
||||||
*
|
|
||||||
* @param time timeout period in seconds.
|
|
||||||
*/
|
|
||||||
function _setTimeOut(time) {
|
|
||||||
this.query.setTimeOut(time * 1000);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Sets the Client ID for the request.
|
|
||||||
*
|
|
||||||
* @param clientID the Client ID
|
|
||||||
*/
|
|
||||||
function _setClientID(clientID) {
|
|
||||||
this.query.setClientID(clientID);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* add methods to class prototype */
|
|
||||||
VtecRetrieval.prototype.execute = _execute;
|
|
||||||
VtecRetrieval.prototype.setTimeOut = _setTimeOut;
|
|
||||||
VtecRetrieval.prototype.addProperty = _addProperty;
|
|
||||||
VtecRetrieval.prototype.initialize = _initialize;
|
|
||||||
VtecRetrieval.prototype.setClientID = _setClientID;
|
|
||||||
VtecRetrieval.prototype.addField = _addField;
|
|
|
@ -1,102 +0,0 @@
|
||||||
/**
|
|
||||||
* Performs a simple VTEC Request and returns the result to the requestor.
|
|
||||||
*
|
|
||||||
* This script performs a complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Implementation Note:
|
|
||||||
* This script uses two uEngine tasks to perform its work:
|
|
||||||
* 1) VtecQuery: used to send the VTEC Request to the VTEC Server
|
|
||||||
* and receive the results. The results are returned
|
|
||||||
* to the script as an ArrayList, which is accessible
|
|
||||||
* JavaScript.
|
|
||||||
* 2) MakeResponseXml: used to convert each of the VTEC Request results
|
|
||||||
* into a ResponseMessageXML object for return to the
|
|
||||||
* script runner.
|
|
||||||
* Note the loop used to prepare the VTEC Request results into an array for
|
|
||||||
* return to the script runner. The ArrayList (from Java) is accessed using
|
|
||||||
* the get() method. The JavaScript Array object is handled as a normal
|
|
||||||
array.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This is a sample script that requests P-VTEC Event Group "Action" tokens
|
|
||||||
* from the VTEC Server and returns the list of available tokens to the client.
|
|
||||||
* include("VtecRetrieval.js");
|
|
||||||
* var runner = new VtecQuery();
|
|
||||||
* runner.setTimeOut(10);
|
|
||||||
* runner.initialize("named","action");
|
|
||||||
* runner.setClientID("VTEC Action");
|
|
||||||
* runner.addProperty("count","10");
|
|
||||||
* runner.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Class constructor.
|
|
||||||
*/
|
|
||||||
function VtecRetrieval() {
|
|
||||||
this.query = new VtecQuery();
|
|
||||||
this.setTimeOut(10);
|
|
||||||
this.addProperty("count","0");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Main action method. Performs the VTEC request and
|
|
||||||
* packages the results.
|
|
||||||
*
|
|
||||||
*@return (Object[]) Contains the results of the VTEC request.
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
var results = this.query.execute();
|
|
||||||
var response = new Array();
|
|
||||||
for (i=0; i<results.size(); i++) {
|
|
||||||
var makeResponse = new MakeResponseXml(results.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Adds property to query object.
|
|
||||||
*
|
|
||||||
* @param key property name.
|
|
||||||
* @param value property value.
|
|
||||||
*/
|
|
||||||
function _addProperty(key,value) {
|
|
||||||
this.query.addProperty(key,value);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Allows setting of several properties. The properties set
|
|
||||||
* are the "request token", "class token", and "type token"
|
|
||||||
* properties.
|
|
||||||
*
|
|
||||||
* @param aRequest value for the request token
|
|
||||||
* @param aClass value for the class token
|
|
||||||
*/
|
|
||||||
function _initialize(aRequest,aClass) {
|
|
||||||
this.addProperty("request",aRequest);
|
|
||||||
this.addProperty("class",aClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* class setters */
|
|
||||||
/*
|
|
||||||
* Sets the time-out interval for the request.
|
|
||||||
*
|
|
||||||
* @param time timeout period in seconds.
|
|
||||||
*/
|
|
||||||
function _setTimeOut(time) {
|
|
||||||
this.query.setTimeOut(time * 1000);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* Sets the Client ID for the request.
|
|
||||||
*
|
|
||||||
* @param clientID the Client ID
|
|
||||||
*/
|
|
||||||
function _setClientID(clientID) {
|
|
||||||
this.query.setClientID(clientID);
|
|
||||||
}
|
|
||||||
/* add methods to class prototype */
|
|
||||||
VtecRetrieval.prototype.execute = _execute;
|
|
||||||
VtecRetrieval.prototype.setTimeOut = _setTimeOut;
|
|
||||||
VtecRetrieval.prototype.addProperty = _addProperty;
|
|
||||||
VtecRetrieval.prototype.initialize = _initialize;
|
|
||||||
VtecRetrieval.prototype.setClientID = _setClientID;
|
|
|
@ -1,76 +0,0 @@
|
||||||
function WarningRequest(){
|
|
||||||
this.plugin = "warning";
|
|
||||||
this.subscribe = false;
|
|
||||||
this.subscription = null;
|
|
||||||
this.queryResults = null;
|
|
||||||
this.createImage = false;
|
|
||||||
this.reproject = false;
|
|
||||||
this.query = new TermQuery(this.plugin, subscriptionDataFieldId, subscriptionDataQueryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addParameter(name, value, operand){
|
|
||||||
if(arguments.length==2){
|
|
||||||
this.query.addParameter(name,value);
|
|
||||||
} else{
|
|
||||||
this.query.addParameter(name,value,operand);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _addList(name, value){
|
|
||||||
this.query.addList(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setCount(count){
|
|
||||||
this.query.setCount(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _enableSubscription(){
|
|
||||||
this.subscribe = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue){
|
|
||||||
this.query.setSortBy(sortValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _execute()
|
|
||||||
{
|
|
||||||
if(this.subscribe){
|
|
||||||
this.subscription = new Subscription();
|
|
||||||
this.subscription.setup(this.query);
|
|
||||||
}
|
|
||||||
this.queryResults = this.query.execute();
|
|
||||||
if(this.queryResults == null || this.queryResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query returned 0 results.",this.query);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.makeXmlResponse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _makeXmlResponse()
|
|
||||||
{
|
|
||||||
var count = this.queryResults.size();
|
|
||||||
var response = new Array(count);
|
|
||||||
for(i=0; i < count; i++)
|
|
||||||
{
|
|
||||||
var makeResponse = new MakeResponseXml(this.queryResults.get(i));
|
|
||||||
response[i] = makeResponse.execute();
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
WarningRequest.prototype.execute = _execute;
|
|
||||||
WarningRequest.prototype.makeXmlResponse = _makeXmlResponse;
|
|
||||||
WarningRequest.prototype.addParameter = _addParameter;
|
|
||||||
WarningRequest.prototype.addList = _addList;
|
|
||||||
WarningRequest.prototype.setCount = _setCount;
|
|
||||||
WarningRequest.prototype.enableSubscription = _enableSubscription;
|
|
||||||
WarningRequest.prototype.reprojectImage = _reprojectImage;
|
|
||||||
WarningRequest.prototype.setSortValue = _setSortValue;
|
|
|
@ -1,180 +0,0 @@
|
||||||
/**
|
|
||||||
* This script creates a stop light (green/yellow/red) decision chart from a
|
|
||||||
* grid product. The chart created is derived from the Wind-U and Wind-V grib
|
|
||||||
* parameters and represent either wind speed or direction. The othe parameters
|
|
||||||
* for the grid retrieval are set via the property setter. The color map is user
|
|
||||||
* selectable, but should be set to "StopLight".
|
|
||||||
*
|
|
||||||
* This script represents a complete product generation. As such, it is not
|
|
||||||
* intended to be called from other scripts.
|
|
||||||
*
|
|
||||||
* Implementation Note:
|
|
||||||
* The wind mode property (this.windSpeed), which is set using the setWindMode()
|
|
||||||
* method, determines is wind speed or wind direction is computer. It is boolean;
|
|
||||||
* 'true' indicates wind speed.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* This script creates a wind speed based stop light chart.
|
|
||||||
* include("WindStopLight.js");
|
|
||||||
* var dataRequest = new WindStopLight();
|
|
||||||
* dataRequest.setLevelInfo("10.0_m");
|
|
||||||
* dataRequest.setScaleFactor(3.0);
|
|
||||||
* dataRequest.setFcstHour("0");
|
|
||||||
* dataRequest.setGridId(212);
|
|
||||||
* dataRequest.setCount(1);
|
|
||||||
* dataRequest.setColormap("StopLight");
|
|
||||||
* dataRequest.setColors(0.0,1.0,2.0);
|
|
||||||
* dataRequest.setSortValue("basetime");
|
|
||||||
* dataRequest.setFormat("png");
|
|
||||||
* dataRequest.reprojectImage(false);
|
|
||||||
* dataRequest.setWindMode(true);
|
|
||||||
* dataRequest.execute();
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*/
|
|
||||||
function WindStopLight() {
|
|
||||||
this.plugin = "grib";
|
|
||||||
this.format = "png";
|
|
||||||
this.colormap = "StopLight";
|
|
||||||
this.scaleFactor = 3.0;
|
|
||||||
this.count = 1;
|
|
||||||
this.levelInfo = "10.0_m";
|
|
||||||
this.fcstHour = "0";
|
|
||||||
this.gridId = "212";
|
|
||||||
this.reproject = false;
|
|
||||||
this.sortValue = "basetime";
|
|
||||||
this.green = 0.0;
|
|
||||||
this.yellow = 1.0;
|
|
||||||
this.red = 2.0;
|
|
||||||
this.windSpeed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main action method. Creates the stop light chart.
|
|
||||||
*
|
|
||||||
* @return (String) XML representing the final product
|
|
||||||
*/
|
|
||||||
function _execute() {
|
|
||||||
var uQuery = new TermQuery(this.plugin);
|
|
||||||
uQuery.addParameter("paramid","U%wind","like");
|
|
||||||
uQuery.addParameter("levelinfo",this.levelInfo);
|
|
||||||
uQuery.addParameter("forecasttime",this.fcstHour);
|
|
||||||
uQuery.addParameter("gridid",this.gridId);
|
|
||||||
uQuery.setSortBy(this.sortValue);
|
|
||||||
uQuery.setCount(this.count);
|
|
||||||
var uQueryResults = uQuery.execute();
|
|
||||||
if(uQueryResults == null || uQueryResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query for Wind-U returned 0 results.",uQuery);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
var vQuery = new TermQuery(this.plugin);
|
|
||||||
vQuery.addParameter("paramid","V%wind","like");
|
|
||||||
vQuery.addParameter("levelinfo",this.levelInfo);
|
|
||||||
vQuery.addParameter("forecasttime",this.fcstHour);
|
|
||||||
vQuery.addParameter("gridid",this.gridId);
|
|
||||||
vQuery.setSortBy(this.sortValue);
|
|
||||||
vQuery.setCount(this.count);
|
|
||||||
var vQueryResults = vQuery.execute();
|
|
||||||
if(vQueryResults == null || vQueryResults.size() == 0)
|
|
||||||
{
|
|
||||||
response = new MakeResponseNull("Query for Wind-V returned 0 results.",uQuery);
|
|
||||||
return response.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* read the data from the data store */
|
|
||||||
var geom = uQueryResults.get(0).getGrid().getGridGeom();
|
|
||||||
var crs = uQueryResults.get(0).getGrid().getCrs();
|
|
||||||
var uFile = new FileIn(this.plugin,uQueryResults.get(0));
|
|
||||||
var vFile = new FileIn(this.plugin,vQueryResults.get(0));
|
|
||||||
var uData = uFile.execute();
|
|
||||||
var vData = vFile.execute();
|
|
||||||
|
|
||||||
/* combine the data into wind speed data */
|
|
||||||
var windSpeed = new ConvertWindsData(uData,vData,this.windSpeed);
|
|
||||||
/* create the stoplight chart */
|
|
||||||
var stopLight = new StopLightImage(windSpeed.execute());
|
|
||||||
var gribMap = new GribMap(this.plugin, this.colormap, stopLight.execute(), geom);
|
|
||||||
gribMap.setScaleFactor(this.scaleFactor);
|
|
||||||
var imageData = gribMap.execute();
|
|
||||||
geom = gribMap.getGridGeometry();
|
|
||||||
/* create the output image */
|
|
||||||
var colorMap = new ColorMapImage(this.colormap, imageData, geom);
|
|
||||||
var imageOut = null;
|
|
||||||
if(this.reproject){
|
|
||||||
var reproject = new ReprojectImage(colorMap.execute(), geom, crs);
|
|
||||||
var reprojectedImage = reproject.execute();
|
|
||||||
imageOut = new ImageOut(reprojectedImage, this.format, reproject.getGridGeometry());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageOut = new ImageOut(colorMap.execute(), this.format);
|
|
||||||
}
|
|
||||||
/* write the image to disk and return the response info to the client */
|
|
||||||
var fileOut = new FileOut(imageOut.execute(), this.format);
|
|
||||||
var writeFile = fileOut.execute();
|
|
||||||
var makeResponse = new MakeResponseUri(writeFile, null, null, this.format);
|
|
||||||
return makeResponse.execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* setter methods */
|
|
||||||
function _setScaleFactor(factor) {
|
|
||||||
this.scaleFactor = factor;
|
|
||||||
}
|
|
||||||
function _setCount(count){
|
|
||||||
this.count = count;
|
|
||||||
}
|
|
||||||
function _reprojectImage(reproject){
|
|
||||||
this.reproject = reproject;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColormap(colormap){
|
|
||||||
this.colormap = colormap;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFormat(format){
|
|
||||||
this.format = format;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setLevelInfo(levelInfo) {
|
|
||||||
this.levelInfo = levelInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setFcstHour(fcstHour) {
|
|
||||||
this.fcstHour = fcstHour;
|
|
||||||
}
|
|
||||||
function _setGridId(gridId) {
|
|
||||||
this.gridId = gridId;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setSortValue(sortValue) {
|
|
||||||
this.sortValue = sortValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setWindMode(speed) {
|
|
||||||
this.windSpeed = speed;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _setColors(green,yellow,red) {
|
|
||||||
this.green = green;
|
|
||||||
this.yellow = yellow;
|
|
||||||
this.red = red;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* add the methods to the SatelliteRequest Object. */
|
|
||||||
WindStopLight.prototype.execute = _execute;
|
|
||||||
WindStopLight.prototype.setScaleFactor = _setScaleFactor;
|
|
||||||
WindStopLight.prototype.setCount = _setCount;
|
|
||||||
WindStopLight.prototype.reprojectImage = _reprojectImage;
|
|
||||||
WindStopLight.prototype.setColormap = _setColormap;
|
|
||||||
WindStopLight.prototype.setFormat = _setFormat;
|
|
||||||
WindStopLight.prototype.setLevelInfo = _setLevelInfo;
|
|
||||||
WindStopLight.prototype.setFcstHour = _setFcstHour;
|
|
||||||
WindStopLight.prototype.setGridId = _setGridId;
|
|
||||||
WindStopLight.prototype.setSortValue = _setSortValue;
|
|
||||||
WindStopLight.prototype.setColors = _setColors;
|
|
||||||
WindStopLight.prototype.setWindMode = _setWindMode;
|
|
||||||
|
|
|
@ -1,167 +0,0 @@
|
||||||
java.applet
|
|
||||||
java.awt
|
|
||||||
java.awt.color
|
|
||||||
java.awt.datatransfer
|
|
||||||
java.awt.dnd
|
|
||||||
java.awt.event
|
|
||||||
java.awt.font
|
|
||||||
java.awt.geom
|
|
||||||
java.awt.im
|
|
||||||
java.awt.im.spi
|
|
||||||
java.awt.image
|
|
||||||
java.awt.image.renderable
|
|
||||||
java.awt.print
|
|
||||||
java.beans
|
|
||||||
java.beans.beancontext
|
|
||||||
java.io
|
|
||||||
java.lang
|
|
||||||
java.lang.annotation
|
|
||||||
java.lang.instrument
|
|
||||||
java.lang.management
|
|
||||||
java.lang.ref
|
|
||||||
java.lang.reflect
|
|
||||||
java.math
|
|
||||||
java.net
|
|
||||||
java.nio
|
|
||||||
java.nio.channels
|
|
||||||
java.nio.channels.spi
|
|
||||||
java.nio.charset
|
|
||||||
java.nio.charset.spi
|
|
||||||
java.rmi
|
|
||||||
java.rmi.activation
|
|
||||||
java.rmi.dgc
|
|
||||||
java.rmi.registry
|
|
||||||
java.rmi.server
|
|
||||||
java.security
|
|
||||||
java.security.acl
|
|
||||||
java.security.cert
|
|
||||||
java.security.interfaces
|
|
||||||
java.security.spec
|
|
||||||
java.sql
|
|
||||||
java.text
|
|
||||||
java.util
|
|
||||||
java.util.concurrent
|
|
||||||
java.util.concurrent.atomic
|
|
||||||
java.util.concurrent.locks
|
|
||||||
java.util.jar
|
|
||||||
java.util.logging
|
|
||||||
java.util.prefs
|
|
||||||
java.util.regex
|
|
||||||
java.util.zip
|
|
||||||
javax.accessibility
|
|
||||||
javax.activity
|
|
||||||
javax.crypto
|
|
||||||
javax.crypto.interfaces
|
|
||||||
javax.crypto.spec
|
|
||||||
javax.imageio
|
|
||||||
javax.imageio.event
|
|
||||||
javax.imageio.metadata
|
|
||||||
javax.imageio.plugins.bmp
|
|
||||||
javax.imageio.plugins.jpeg
|
|
||||||
javax.imageio.spi
|
|
||||||
javax.imageio.stream
|
|
||||||
javax.management
|
|
||||||
javax.management.loading
|
|
||||||
javax.management.modelmbean
|
|
||||||
javax.management.monitor
|
|
||||||
javax.management.openmbean
|
|
||||||
javax.management.relation
|
|
||||||
javax.management.remote
|
|
||||||
javax.management.remote.rmi
|
|
||||||
javax.management.timer
|
|
||||||
javax.naming
|
|
||||||
javax.naming.directory
|
|
||||||
javax.naming.event
|
|
||||||
javax.naming.ldap
|
|
||||||
javax.naming.spi
|
|
||||||
javax.net
|
|
||||||
javax.net.ssl
|
|
||||||
javax.print
|
|
||||||
javax.print.attribute
|
|
||||||
javax.print.attribute.standard
|
|
||||||
javax.print.event
|
|
||||||
javax.rmi
|
|
||||||
javax.rmi.CORBA
|
|
||||||
javax.rmi.ssl
|
|
||||||
javax.security.auth
|
|
||||||
javax.security.auth.callback
|
|
||||||
javax.security.auth.kerberos
|
|
||||||
javax.security.auth.login
|
|
||||||
javax.security.auth.spi
|
|
||||||
javax.security.auth.x500
|
|
||||||
javax.security.cert
|
|
||||||
javax.security.sasl
|
|
||||||
javax.sound.midi
|
|
||||||
javax.sound.midi.spi
|
|
||||||
javax.sound.sampled
|
|
||||||
javax.sound.sampled.spi
|
|
||||||
javax.sql
|
|
||||||
javax.sql.rowset
|
|
||||||
javax.sql.rowset.serial
|
|
||||||
javax.sql.rowset.spi
|
|
||||||
javax.swing
|
|
||||||
javax.swing.border
|
|
||||||
javax.swing.colorchooser
|
|
||||||
javax.swing.event
|
|
||||||
javax.swing.filechooser
|
|
||||||
javax.swing.plaf
|
|
||||||
javax.swing.plaf.basic
|
|
||||||
javax.swing.plaf.metal
|
|
||||||
javax.swing.plaf.multi
|
|
||||||
javax.swing.plaf.synth
|
|
||||||
javax.swing.table
|
|
||||||
javax.swing.text
|
|
||||||
javax.swing.text.html
|
|
||||||
javax.swing.text.html.parser
|
|
||||||
javax.swing.text.rtf
|
|
||||||
javax.swing.tree
|
|
||||||
javax.swing.undo
|
|
||||||
javax.transaction
|
|
||||||
javax.transaction.xa
|
|
||||||
javax.xml
|
|
||||||
javax.xml.datatype
|
|
||||||
javax.xml.namespace
|
|
||||||
javax.xml.parsers
|
|
||||||
javax.xml.transform
|
|
||||||
javax.xml.transform.dom
|
|
||||||
javax.xml.transform.sax
|
|
||||||
javax.xml.transform.stream
|
|
||||||
javax.xml.validation
|
|
||||||
javax.xml.xpath
|
|
||||||
org.ietf.jgss
|
|
||||||
org.omg.CORBA
|
|
||||||
org.omg.CORBA.DynAnyPackage
|
|
||||||
org.omg.CORBA.ORBPackage
|
|
||||||
org.omg.CORBA.TypeCodePackage
|
|
||||||
org.omg.CORBA.portable
|
|
||||||
org.omg.CORBA_2_3
|
|
||||||
org.omg.CORBA_2_3.portable
|
|
||||||
org.omg.CosNaming
|
|
||||||
org.omg.CosNaming.NamingContextExtPackage
|
|
||||||
org.omg.CosNaming.NamingContextPackage
|
|
||||||
org.omg.Dynamic
|
|
||||||
org.omg.DynamicAny
|
|
||||||
org.omg.DynamicAny.DynAnyFactoryPackage
|
|
||||||
org.omg.DynamicAny.DynAnyPackage
|
|
||||||
org.omg.IOP
|
|
||||||
org.omg.IOP.CodecFactoryPackage
|
|
||||||
org.omg.IOP.CodecPackage
|
|
||||||
org.omg.Messaging
|
|
||||||
org.omg.PortableInterceptor
|
|
||||||
org.omg.PortableInterceptor.ORBInitInfoPackage
|
|
||||||
org.omg.PortableServer
|
|
||||||
org.omg.PortableServer.CurrentPackage
|
|
||||||
org.omg.PortableServer.POAManagerPackage
|
|
||||||
org.omg.PortableServer.POAPackage
|
|
||||||
org.omg.PortableServer.ServantLocatorPackage
|
|
||||||
org.omg.PortableServer.portable
|
|
||||||
org.omg.SendingContext
|
|
||||||
org.omg.stub.java.rmi
|
|
||||||
org.w3c.dom
|
|
||||||
org.w3c.dom.bootstrap
|
|
||||||
org.w3c.dom.events
|
|
||||||
org.w3c.dom.ls
|
|
||||||
org.xml.sax
|
|
||||||
org.xml.sax.ext
|
|
||||||
org.xml.sax.helpers
|
|
||||||
|
|
|
@ -1,174 +0,0 @@
|
||||||
org.mule
|
|
||||||
org.mule.components.builder
|
|
||||||
org.mule.components.rest
|
|
||||||
org.mule.components.script
|
|
||||||
org.mule.components.script.jsr223
|
|
||||||
org.mule.components.simple
|
|
||||||
org.mule.config
|
|
||||||
org.mule.config.builders
|
|
||||||
org.mule.config.converters
|
|
||||||
org.mule.config.i18n
|
|
||||||
org.mule.config.pool
|
|
||||||
org.mule.extras.acegi
|
|
||||||
org.mule.extras.acegi.filters.http
|
|
||||||
org.mule.extras.client
|
|
||||||
org.mule.extras.hivemind
|
|
||||||
org.mule.extras.jotm
|
|
||||||
org.mule.extras.pgp
|
|
||||||
org.mule.extras.pgp.filters
|
|
||||||
org.mule.extras.picocontainer
|
|
||||||
org.mule.extras.plexus
|
|
||||||
org.mule.extras.spring
|
|
||||||
org.mule.extras.spring.config
|
|
||||||
org.mule.extras.spring.events
|
|
||||||
org.mule.extras.spring.remoting
|
|
||||||
org.mule.extras.spring.transaction
|
|
||||||
org.mule.impl
|
|
||||||
org.mule.impl.container
|
|
||||||
org.mule.impl.endpoint
|
|
||||||
org.mule.impl.internal.admin
|
|
||||||
org.mule.impl.internal.notifications
|
|
||||||
org.mule.impl.jndi
|
|
||||||
org.mule.impl.message
|
|
||||||
org.mule.impl.model
|
|
||||||
org.mule.impl.model.direct
|
|
||||||
org.mule.impl.model.pipeline
|
|
||||||
org.mule.impl.model.seda
|
|
||||||
org.mule.impl.model.seda.optimised
|
|
||||||
org.mule.impl.security
|
|
||||||
org.mule.impl.security.filters
|
|
||||||
org.mule.impl.space
|
|
||||||
org.mule.impl.work
|
|
||||||
org.mule.interceptors
|
|
||||||
org.mule.management
|
|
||||||
org.mule.management.agents
|
|
||||||
org.mule.management.mbeans
|
|
||||||
org.mule.management.stats
|
|
||||||
org.mule.management.stats.printers
|
|
||||||
org.mule.model
|
|
||||||
org.mule.providers
|
|
||||||
org.mule.providers.dq
|
|
||||||
org.mule.providers.dq.transformers
|
|
||||||
org.mule.providers.ejb
|
|
||||||
org.mule.providers.email
|
|
||||||
org.mule.providers.email.filters
|
|
||||||
org.mule.providers.email.transformers
|
|
||||||
org.mule.providers.file
|
|
||||||
org.mule.providers.file.filters
|
|
||||||
org.mule.providers.file.transformers
|
|
||||||
org.mule.providers.ftp
|
|
||||||
org.mule.providers.gs
|
|
||||||
org.mule.providers.gs.filters
|
|
||||||
org.mule.providers.gs.space
|
|
||||||
org.mule.providers.gs.transformers
|
|
||||||
org.mule.providers.http
|
|
||||||
org.mule.providers.http.filters
|
|
||||||
org.mule.providers.http.jetty
|
|
||||||
org.mule.providers.http.servlet
|
|
||||||
org.mule.providers.http.transformers
|
|
||||||
org.mule.providers.jbi
|
|
||||||
org.mule.providers.jbi.components
|
|
||||||
org.mule.providers.jdbc
|
|
||||||
org.mule.providers.jdbc.xa
|
|
||||||
org.mule.providers.jms
|
|
||||||
org.mule.providers.jms.filters
|
|
||||||
org.mule.providers.jms.transformers
|
|
||||||
org.mule.providers.jms.xa
|
|
||||||
org.mule.providers.multicast
|
|
||||||
org.mule.providers.oracle.jms
|
|
||||||
org.mule.providers.oracle.jms.transformers
|
|
||||||
org.mule.providers.quartz
|
|
||||||
org.mule.providers.quartz.jobs
|
|
||||||
org.mule.providers.rmi
|
|
||||||
org.mule.providers.service
|
|
||||||
org.mule.providers.soap
|
|
||||||
org.mule.providers.soap.axis
|
|
||||||
org.mule.providers.soap.axis.extensions
|
|
||||||
org.mule.providers.soap.axis.transport
|
|
||||||
org.mule.providers.soap.axis.transport.jms
|
|
||||||
org.mule.providers.soap.axis.transport.pop3
|
|
||||||
org.mule.providers.soap.axis.transport.smtp
|
|
||||||
org.mule.providers.soap.axis.transport.vm
|
|
||||||
org.mule.providers.soap.axis.wsdl
|
|
||||||
org.mule.providers.soap.glue
|
|
||||||
org.mule.providers.soap.transformers
|
|
||||||
org.mule.providers.soap.xfire
|
|
||||||
org.mule.providers.soap.xfire.transport
|
|
||||||
org.mule.providers.soap.xfire.wsdl
|
|
||||||
org.mule.providers.space
|
|
||||||
org.mule.providers.ssl
|
|
||||||
org.mule.providers.stream
|
|
||||||
org.mule.providers.streaming
|
|
||||||
org.mule.providers.tcp
|
|
||||||
org.mule.providers.tcp.protocols
|
|
||||||
org.mule.providers.udp
|
|
||||||
org.mule.providers.vm
|
|
||||||
org.mule.providers.xmpp
|
|
||||||
org.mule.providers.xmpp.filters
|
|
||||||
org.mule.providers.xmpp.transformers
|
|
||||||
org.mule.ra
|
|
||||||
org.mule.registry
|
|
||||||
org.mule.registry.impl
|
|
||||||
org.mule.registry.store
|
|
||||||
org.mule.routing
|
|
||||||
org.mule.routing.filters
|
|
||||||
org.mule.routing.filters.logic
|
|
||||||
org.mule.routing.filters.xml
|
|
||||||
org.mule.routing.inbound
|
|
||||||
org.mule.routing.outbound
|
|
||||||
org.mule.routing.response
|
|
||||||
org.mule.samples.errorhandler
|
|
||||||
org.mule.samples.errorhandler.exceptions
|
|
||||||
org.mule.samples.errorhandler.handlers
|
|
||||||
org.mule.samples.hello
|
|
||||||
org.mule.samples.loanbroker
|
|
||||||
org.mule.samples.loanbroker.esb
|
|
||||||
org.mule.samples.loanbroker.esb.bank
|
|
||||||
org.mule.samples.loanbroker.esb.lender
|
|
||||||
org.mule.samples.loanbroker.esb.message
|
|
||||||
org.mule.samples.loanbroker.esb.routers
|
|
||||||
org.mule.samples.loanbroker.esb.transformers
|
|
||||||
org.mule.samples.loanbroker.routers
|
|
||||||
org.mule.samples.loanbroker.service
|
|
||||||
org.mule.samples.rest
|
|
||||||
org.mule.samples.stockquote
|
|
||||||
org.mule.samples.voipservice.client
|
|
||||||
org.mule.samples.voipservice.interfaces
|
|
||||||
org.mule.samples.voipservice.routers
|
|
||||||
org.mule.samples.voipservice.service
|
|
||||||
org.mule.samples.voipservice.to
|
|
||||||
org.mule.tck
|
|
||||||
org.mule.tck.functional
|
|
||||||
org.mule.tck.model
|
|
||||||
org.mule.tck.providers
|
|
||||||
org.mule.transaction
|
|
||||||
org.mule.transaction.constraints
|
|
||||||
org.mule.transaction.lookup
|
|
||||||
org.mule.transformers
|
|
||||||
org.mule.transformers.codec
|
|
||||||
org.mule.transformers.compression
|
|
||||||
org.mule.transformers.encryption
|
|
||||||
org.mule.transformers.script
|
|
||||||
org.mule.transformers.simple
|
|
||||||
org.mule.transformers.xml
|
|
||||||
org.mule.umo
|
|
||||||
org.mule.umo.endpoint
|
|
||||||
org.mule.umo.lifecycle
|
|
||||||
org.mule.umo.manager
|
|
||||||
org.mule.umo.model
|
|
||||||
org.mule.umo.provider
|
|
||||||
org.mule.umo.routing
|
|
||||||
org.mule.umo.security
|
|
||||||
org.mule.umo.space
|
|
||||||
org.mule.umo.transformer
|
|
||||||
org.mule.util
|
|
||||||
org.mule.util.compression
|
|
||||||
org.mule.util.concurrent
|
|
||||||
org.mule.util.counters
|
|
||||||
org.mule.util.counters.impl
|
|
||||||
org.mule.util.file
|
|
||||||
org.mule.util.monitor
|
|
||||||
org.mule.util.queue
|
|
||||||
org.mule.util.timer
|
|
||||||
org.mule.util.xa
|
|
||||||
|
|
|
@ -83,12 +83,6 @@
|
||||||
install-size="0"
|
install-size="0"
|
||||||
version="0.0.0"/>
|
version="0.0.0"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="com.sun.jndi.nis"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.apache.commons.cli"
|
id="org.apache.commons.cli"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue