diff --git a/wms/bin/local-servers.sh b/wms/bin/local-servers.sh
index 66cb99e1..d4b3a392 100755
--- a/wms/bin/local-servers.sh
+++ b/wms/bin/local-servers.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/scripts/sys_shell.py b/wms/bin/scripts/sys_shell.py
index 64a3c304..24a278e6 100755
--- a/wms/bin/scripts/sys_shell.py
+++ b/wms/bin/scripts/sys_shell.py
@@ -1,5 +1,5 @@
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/servers.sh b/wms/bin/servers.sh
index 63c32067..070a2af6 100755
--- a/wms/bin/servers.sh
+++ b/wms/bin/servers.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/start-wms.sh b/wms/bin/start-wms.sh
index 7155b488..efdab32c 100755
--- a/wms/bin/start-wms.sh
+++ b/wms/bin/start-wms.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/stop-wms.sh b/wms/bin/stop-wms.sh
index 1d1dc9fc..693e63e7 100755
--- a/wms/bin/stop-wms.sh
+++ b/wms/bin/stop-wms.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/wms b/wms/bin/wms
index 2934c866..4eb90adc 100755
--- a/wms/bin/wms
+++ b/wms/bin/wms
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/wms-config.sh b/wms/bin/wms-config.sh
index fbd315fb..30ad2d37 100755
--- a/wms/bin/wms-config.sh
+++ b/wms/bin/wms-config.sh
@@ -1,5 +1,5 @@
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/wms-daemon.sh b/wms/bin/wms-daemon.sh
index b56adae5..f6296cd7 100755
--- a/wms/bin/wms-daemon.sh
+++ b/wms/bin/wms-daemon.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/wms-daemons.sh b/wms/bin/wms-daemons.sh
index 1a148671..c9dadc69 100755
--- a/wms/bin/wms-daemons.sh
+++ b/wms/bin/wms-daemons.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/bin/zookeepers.sh b/wms/bin/zookeepers.sh
index 335e9f70..9cc0cd61 100755
--- a/wms/bin/zookeepers.sh
+++ b/wms/bin/zookeepers.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/conf/wms-env.sh b/wms/conf/wms-env.sh
index d36f1e41..e17cdebe 100644
--- a/wms/conf/wms-env.sh
+++ b/wms/conf/wms-env.sh
@@ -1,5 +1,5 @@
#/**
-# *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
+# *(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
diff --git a/wms/conf/wms-site.xml b/wms/conf/wms-site.xml
index 7c4afa3d..a2312e40 100644
--- a/wms/conf/wms-site.xml
+++ b/wms/conf/wms-site.xml
@@ -2,7 +2,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
run
@@ -296,62 +267,40 @@
+
maven-assembly-plugin
@@ -393,6 +342,33 @@
+
+
+ org.asciidoctor
+ asciidoctor-maven-plugin
+ ${asciidoctor.maven.plugin.version}
+
+
+ output-html
+
+ process-asciidoc
+
+ site
+
+ ./images
+ book
+
+ wms.css
+ ${project.version}
+ ${maven.build.timestamp}
+
+ html5
+ coderay
+ target/site
+
+
+
+
@@ -401,15 +377,28 @@
${maven.build.timestamp}
UTF-8
1.6
- 1.0.4
- 2.0.0-cdh4.5.0
- /opt/home/tools/thrift-0.9.0/bin/thrift
-
+
1.0.0
${project.artifactId}-${project.version}
+
+ 1.6
+ 3.3
+ 2.9.1
+ 2.6
+ 2.3
+ 2.3.4
+ 1.0
+ 2.7.2
+ 1.5.2
+ 2.1.2
+ 1.5
+ 2.5.3
+
+
+ 2.6.0
1.2
1.4
2.1
@@ -429,22 +418,13 @@
1.4.3
1.2.16
3.4.5
- 2.0.5-alpha
-
-
1.7.3
- 0.9.0
2.5.3
- 0.11.0
- 0.12.0
- 0.12.0
- 6.0.1-0
- 2.0.0-wso2v1
-
-
- 2.17
- false
- true
+
+
+ 2.17
+ false
+ true
org.trafodion.wms.SmallTests
org.trafodion.wms.MediumTests, org.trafodion.wms.LargeTests
@@ -457,7 +437,7 @@
test
-
+
com.yammer.metrics
metrics-core
@@ -508,87 +488,14 @@
log4j
${log4j.version}
-
-
+
- org.apache.hadoop
- hadoop-core
- 2.0.0-mr1-cdh4.5.0
-
-
org.apache.hadoop
hadoop-common
- ${hadoop-two.version}
+ ${hadoop.version}
- org.apache.hadoop
- hadoop-hdfs
- ${hadoop-two.version}
-
-
- org.apache.hadoop
- hadoop-mapreduce-client-app
- ${hadoop-two.version}
-
-
- org.apache.hadoop
- hadoop-mapreduce-client-common
- ${hadoop-two.version}
-
-
- org.apache.hadoop
- hadoop-mapreduce-client-core
- ${hadoop-two.version}
-
-
- org.apache.hadoop
- hadoop-mapreduce-client-hs
- ${hadoop-two.version}
-
-
- org.apache.hadoop
- hadoop-mapreduce-client-jobclient
- ${hadoop-two.version}
-
-
-
-
- org.apache.hadoop
- hadoop-yarn-server-resourcemanager
- ${hadoop-two.version}
-
-
-
org.apache.avro
avro
${avro.version}
@@ -619,17 +526,6 @@
-
- org.apache.thrift
- libthrift
- ${thrift.version}
-
-
- org.slf4j
- slf4j-simple
-
-
-
org.mortbay.jetty
jetty
@@ -765,52 +661,6 @@
-
-
-
- org.apache.hive
- hive-common
- ${hive-common.version}
-
-
- org.apache.hive
- hive-metastore
- ${hive-metastore.version}
-
-
- org.apache.hive
- hive-exec
- ${hive-exec.version}
-
-
-
-
- vertica
- vertica-jdk5
- ${vertica.version}
-
-
-
-
- org.wso2.siddhi
- siddhi-api
- ${siddhi.version}
-
-
- org.wso2.siddhi
- siddhi-core
- ${siddhi.version}
-
-
- org.wso2.siddhi
- siddhi-query
- ${siddhi.version}
-
-
- joda-time
- joda-time
- 2.3
-
@@ -874,12 +724,7 @@
project-team
mailing-list
- cim
- issue-tracking
- license
- scm
- index
-
+
@@ -913,11 +758,6 @@
maven-jxr-plugin
2.1
-
- org.apache.rat
- apache-rat-plugin
- 0.8
-
org.apache.maven.plugins
maven-surefire-report-plugin
diff --git a/wms/src/assembly/all.xml b/wms/src/assembly/all.xml
index 4b8e3373..24d38b1a 100644
--- a/wms/src/assembly/all.xml
+++ b/wms/src/assembly/all.xml
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd">
-
-
-
-
-
- The Trafodion Data Connectivity Services Reference Guide
-
-
-
-
-
-
-
-
-
- 2013The Hewlett-Packard Development Company, L.P.
- All Rights Reserved. Trafodion, Trafodion DCS and the Trafodion project logo are trademarks of the Hewlett-Packard Development Company, L.P..
-
-
-
- This is the official reference guide of
- Trafodion DCS (Data Connectivity Services),
- a distributed, ODBC, JDBC connectivity component of Trafodion, built on top of
- Apache ZooKeeper
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Architecture
-
- Overview
-
- DCS?
- DCS, see figure , is a framework that connects
- ODBC/JDBC T4 clients to Trafodion user programs (MXOSRVR servers). In a nutshell, clients connect to a listening
- WmsMaster on a well known port. DcsMaster looks in ZooKeeper for an "available"
- DcsServer user program (MXOSRVR) and returns an object reference to that server back to the client.
- The client then connects directly to the MXOSRVR. After the initial startup DcsMaster restarts any failed
- DcsServers. And, DcsServers restart any failed MXOSRVRs.
-
- DCS provides the following:
-
- A lightweight process management framework.
- High performance client listener using Java NIO.
- Simple configuration and startup
- A highly scaleable Trafodion connectivity service.
- Uses ZooKeeper as backbone for coordination and process management.
- Embedded user interface to examine state, logs, process status.
- Standalone REST server.
- 100% Java implementation.
-
-
-
- DCS Architecture
-
-
-
-
-
- DCS Architecture
-
-
-
-
-
-
-
- Client
- The Trafodion ODBC/JDBC T4 client drivers connect to MXOSRVRs through the DCS Master.
-
-
-
- DcsMaster
- DcsMaster is the implementation of the Master Server. The Master server
- is responsible for listening for client connection requests, monitoring all DcsServer instances in the cluster
- and restarting any DcsServers that fail after initial startup.
-
- Startup Behavior
- The DcsMaster is started via the scripts found in the /bin directory. During startup it registers itself in Zookeeper.
-
-
- Runtime Impact
- A common question is what happens to an DCS cluster when the DcsMaster goes down. Because the
- DcsMaster doesn't affect the running DcsServers or connected clients, the cluster can still function
- i.e., clients already connected to MXOSRVRs can continue to work."
- However, the DcsMaster controls critical functions such as listening for clients and restarting DcsServers.
- So while the cluster can still run for a time without the Master,
- the Master should be restarted as soon as possible.
-
-
- Processes
- The Master runs several background threads:
-
- Listener
- The listener thread is responsible for servicing client requests. It pairs
- each client with an registered MXOSRVR found in Zookeeper. A default port
- is configured but this may be changed in the configuration.
- See for configuring this property.
-
-
-
-
-
- DcsServer
- DcsServer
is the server implementation. It is responsible for starting and keeping
- its Trafodion MXOSRVR running.
-
- Startup Behavior
- The DcsServer is started via the scripts found in the /bin directory. During startup it registers itself in Zookeeper.
-
-
- Runtime Impact
- The DcsServer can continue to function if the DcsMaster goes down. the cluster can still function in a "steady
- state." However, the Master controls critical functions such as DcsServer failure and.
- So while the cluster can still run for a time without the Master,
- the Master should be restarted as soon as possible.
-
-
- Processes
- The DcsServer runs a variety of background threads:
-
-
-
-
-
-
-
-
-
-
-
- FAQ
-
- General
-
- What is DCS?
-
- See the in the Architecture chapter.
-
-
-
-
- Configuration
-
- How can I get started with my first cluster?
-
-
- See .
-
-
-
-
- Where can I learn about the rest of the configuration options?
-
-
- See .
-
-
-
-
- Performance and Troubleshooting
-
-
- How can I improve DCS cluster performance?
-
-
-
- See .
-
-
-
-
-
- How can I troubleshoot my DCS cluster?
-
-
-
- See .
-
-
-
-
- Operations
-
-
- How do I manage my DCS cluster?
-
-
-
- See
-
-
-
-
-
-
-
diff --git a/wms/src/docbkx/configuration.xml b/wms/src/docbkx/configuration.xml
deleted file mode 100644
index d218046b..00000000
--- a/wms/src/docbkx/configuration.xml
+++ /dev/null
@@ -1,600 +0,0 @@
-
-
-
-
- Configuration
- This chapter is the Not-So-Quick start guide to DCS configuration.
- Please read this chapter carefully and ensure that all requirements have
- been satisfied. Failure to do so will cause you (and us) grief debugging strange errors.
-
-
-
- To configure a deploy, edit a file of environment variables
- in conf/wms-env.sh -- this configuration
- is used mostly by the launcher shell scripts getting the cluster
- off the ground -- and then add configuration to an XML file to
- do things like override DCS defaults, tell the location of the ZooKeeper ensemble
-
-
-Be careful editing XML. Make sure you close all elements.
-Run your file through xmllint or similar
-to ensure well-formedness of your document after an edit session.
-
-
- .
-
-
- After you make an edit to an DCS configuration, make sure you copy the
- content of the conf directory to
- all nodes of the cluster. DCS will not do this for you.
- Use rsync.
-
-
- Java
-
- DCS requires java 6 from Oracle. Usually
- you'll want to use the latest version available except the problematic
- u18 (u24 is the latest version as of this writing).
-
-
- Operating System
-
- ssh
-
- ssh must be installed and
- sshd must be running to use DCS's' scripts to
- manage remote DCS daemons. You must be able to ssh to all
- nodes, including your local node, using passwordless login (Google
- "ssh passwordless login").
-
-
-
- DNS
-
- Both forward and reverse DNS resolving should work.
-
- If your machine has multiple interfaces, DCS will use the
- interface that the primary hostname resolves to.
-
-
-
- Loopback IP
- DCS expects the loopback IP address to be 127.0.0.1. Ubuntu and some other distributions,
- for example, will default to 127.0.1.1 and this will cause problems for you.
-
- /etc/hosts should look something like this:
-
- 127.0.0.1 localhost
- 127.0.0.1 ubuntu.ubuntu-domain ubuntu
-
-
-
-
-
- NTP
-
- The clocks on cluster members should be in basic alignments.
- Some skew is tolerable but wild skew could generate odd behaviors. Run
- NTP
- on your cluster, or an equivalent.
-
-
-
- Windows
- DCS is not supported on Windows.
-
-
-
-
-
- Run modes
-
-
- Single Node
-
- This is the default mode. Single node is what is described
- in the section. In
- single node, it runs all DCS daemons and a local
- ZooKeeper all on the same node. Zookeeper binds to a well known port.
-
-
-
-
- Multi-Node
-
- Multi node is where the daemons are spread
- across all nodes in the cluster. Before proceeding, ensure you have a
- working Trafodion instance.
-
-
- Below we describe the different setups. Starting,
- verification and exploration of your install. Configuration is described in a
- section that follows, .
-
-
- To set up a multi-node deploy, you will need to
- configure DCS by editing files in the DCS conf
- directory.
-
-
- You may need to edit
- conf/wms-env.sh
to tell DCS which
- java to use. In this file you set DCS environment
- variables such as the heap size and other options for the
- JVM, the preferred location for log files,
- etc. Set JAVA_HOME to point at the root of your
- java install.
-
-
- servers
-
- In addition, a multi-node deploy requires that you
- modify conf/servers. The
- servers file
- lists all hosts that you would have running
- DcsServers, one host per line.
- All servers listed in this file will be started and stopped
- when DCS start or stop is run.
-
-
-
- ZooKeeper and DCS
- See section for ZooKeeper setup for DCS.
-
-
-
-
- Running and Confirming Your Installation
-
- Make sure Trafodion is running first. Start and stop the Trafodion instance
- by running sqstart.sh over in the
- MY_SQROOT/sql/scripts directory. You can ensure it started
- properly by testing with sqcheck.
-
-
- If you are managing your own ZooKeeper,
- start it and confirm its running else, DCS will start up ZooKeeper
- for you as part of its start process.
-
-
-
- Start DCS with the following command:
-
-
-
- bin/start-wms.sh
-
- Run the above from the
-
- DCS_HOME
-
- directory.
-
- You should now have a running DCS instance. DCS logs can be
- found in the logs subdirectory. Check them out
- especially if DCS had trouble starting.
-
-
-
- DCS also puts up a UI listing vital attributes and metrics. By default its
- deployed on the DcsMaster host at port 40010 (DcsServers put up an
- informational http server at 40030+their instance number). If the DcsMaster were running on a host named
- master.example.org on the default port, to see the
- DcsMaster's homepage you'd point your browser at
- http://master.example.org:40010.
-
-
- To stop DCS after exiting the DCS shell enter
- $ ./bin/stop-wms.sh
-stopping wms............... Shutdown can take a moment to
- complete. It can take longer if your cluster is comprised of many
- machines.
-
-
-
-
-
-
- ZooKeeper
- ZooKeeper
-
-
- DCS depends on a running ZooKeeper cluster.
- All participating nodes and clients need to be able to access the
- running ZooKeeper ensemble. DCS by default manages a ZooKeeper
- "cluster" for you. It will start and stop the ZooKeeper ensemble
- as part of the DCS start/stop process. You can also manage the
- ZooKeeper ensemble independent of DCS and just point DCS at
- the cluster it should use. To toggle DCS management of
- ZooKeeper, use the DCS_MANAGES_ZK variable in
- conf/wms-env.sh. This variable, which
- defaults to true, tells DCS whether to
- start/stop the ZooKeeper ensemble servers as part of DCS
- start/stop.
-
- When DCS manages the ZooKeeper ensemble, you can specify
- ZooKeeper configuration using its native
- zoo.cfg file, or, the easier option is to
- just specify ZooKeeper options directly in
- conf/wms-site.xml. A ZooKeeper
- configuration option can be set as a property in the DCS
- wms-site.xml XML configuration file by
- prefacing the ZooKeeper option name with
- wms.zookeeper.property. For example, the
- clientPort setting in ZooKeeper can be changed
- by setting the
- wms.zookeeper.property.clientPort property.
- For all default values used by DCS, including ZooKeeper
- configuration, see . Look for the
- wms.zookeeper.property prefix
- For the full list of ZooKeeper configurations, see
- ZooKeeper's zoo.cfg. DCS does not ship
- with a zoo.cfg so you will need to browse
- the conf directory in an appropriate
- ZooKeeper download.
-
-
- You must at least list the ensemble servers in
- wms-site.xml using the
- wms.zookeeper.quorum property. This property
- defaults to a single ensemble member at
- localhost which is not suitable for a fully
- distributed DCS. (It binds to the local machine only and remote
- clients will not be able to connect).
- How many ZooKeepers should I run?
-
- You can run a ZooKeeper ensemble that comprises 1 node
- only but in production it is recommended that you run a
- ZooKeeper ensemble of 3, 5 or 7 machines; the more members an
- ensemble has, the more tolerant the ensemble is of host
- failures. Also, run an odd number of machines. In ZooKeeper,
- an even number of peers is supported, but it is normally not used
- because an even sized ensemble requires, proportionally, more peers
- to form a quorum than an odd sized ensemble requires. For example, an
- ensemble with 4 peers requires 3 to form a quorum, while an ensemble with
- 5 also requires 3 to form a quorum. Thus, an ensemble of 5 allows 2 peers to
- fail, and thus is more fault tolerant than the ensemble of 4, which allows
- only 1 down peer.
-
- Give each ZooKeeper server around 1GB of RAM, and if possible, its own
- dedicated disk (A dedicated disk is the best thing you can do
- to ensure a performant ZooKeeper ensemble). For very heavily
- loaded clusters, run ZooKeeper servers on separate machines
- from DcsServers.
-
-
- For example, to have DCS manage a ZooKeeper quorum on
- nodes host{1,2,3,4,5}.example.com, bound to
- port 2222 (the default is 2181) ensure
- DCS_MANAGE_ZK is commented out or set to
- true in conf/wms-env.sh
- and then edit conf/wms-site.xml and set
- wms.zookeeper.property.clientPort and
- wms.zookeeper.quorum. You should also set
- wms.zookeeper.property.dataDir to other than
- the default as the default has ZooKeeper persist data under
- /tmp which is often cleared on system
- restart. In the example below we have ZooKeeper persist to
- /user/local/zookeeper.
- <configuration>
- ...
- <property>
- <name>wms.zookeeper.property.clientPort</name>
- <value>2222</value>
- <description>Property from ZooKeeper's config zoo.cfg.
- The port at which the clients will connect.
- </description>
- </property>
- <property>
- <name>wms.zookeeper.quorum</name>
- <value>host1.example.com,host2.example.com,host3.example.com,host4.example.com,host5.example.com</value>
- <description>Comma separated list of servers in the ZooKeeper Quorum.
- For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
- By default this is set to localhost. For a multi-node setup, this should be set to a full
- list of ZooKeeper quorum servers. If DCS_MANAGES_ZK=true set in wms-env.sh
- this is the list of servers which we will start/stop ZooKeeper on.
- </description>
- </property>
- <property>
- <name>wms.zookeeper.property.dataDir</name>
- <value>/usr/local/zookeeper</value>
- <description>Property from ZooKeeper's config zoo.cfg.
- The directory where the snapshot is stored.
- </description>
- </property>
- ...
- </configuration>
-
-
- Using existing ZooKeeper ensemble
-
- To point DCS at an existing ZooKeeper cluster, one that
- is not managed by DCS, uncomment and set DCS_MANAGES_ZK
- in conf/wms-env.sh to false
-
- ...
- # Tell DCS whether it should manage it's own instance of Zookeeper or not.
- export DCS_MANAGES_ZK=false Next set ensemble locations
- and client port, if non-standard, in
- wms-site.xml, or add a suitably
- configured zoo.cfg to DCS's
- CLASSPATH. DCS will prefer the
- configuration found in zoo.cfg over any
- settings in wms-site.xml.
-
- When DCS manages ZooKeeper, it will start/stop the
- ZooKeeper servers as a part of the regular start/stop scripts.
- If you would like to run ZooKeeper yourself, independent of
- DCS start/stop, you would do the following
-
-
-${DCS_HOME}/bin/wms-daemons.sh {start,stop} zookeeper
-
-
- Note that you can use DCS in this manner to start up a
- ZooKeeper cluster, unrelated to DCS. Just make sure to uncomment and set
- DCS_MANAGES_ZK to false
- if you want it to stay up across DCS restarts so that when
- DCS shuts down, it doesn't take ZooKeeper down with it.
-
- For more information about running a distinct ZooKeeper
- cluster, see the ZooKeeper Getting
- Started Guide. Additionally, see the ZooKeeper Wiki or the
- ZooKeeper documentation
- for more information on ZooKeeper sizing.
-
-
-
-
-
-
- Configuration Files
-
-
- wms-site.xml and wms-default.xml
- You add site-specific configuration
- to the wms-site.xml file,
- for DCS, site specific customizations go into
- the file conf/wms-site.xml.
- For the list of configurable properties, see
-
- below or view the raw wms-default.xml
- source file in the DCS source code at
- src/main/resources.
-
-
- Not all configuration options make it out to
- wms-default.xml. Configuration
- that it is thought rare anyone would change can exist only
- in code; the only way to turn up such configurations is
- via a reading of the source code itself.
-
-
- Currently, changes here will require a cluster restart for DCS to notice the change.
-
-
-
-
-
-
- wms-env.sh
- Set DCS environment variables in this file.
- Examples include options to pass the JVM on start of
- an DCS daemon such as heap size and garbarge collector configs.
- You can also set configurations for DCS configuration, log directories,
- niceness, ssh options, where to locate process pid files,
- etc. Open the file at
- conf/wms-env.sh and peruse its content.
- Each option is fairly well documented. Add your own environment
- variables here if you want them read by DCS daemons on startup.
-
- Changes here will require a cluster restart for DCS to notice the change.
-
-
-
-
- log4j.properties
- Edit this file to change rate at which DCS files
- are rolled and to change the level at which DCS logs messages.
-
-
- Changes here will require a cluster restart for DCS to notice the change
- though log levels can be changed for particular daemons via the DCS UI.
-
-
-
-
-
-
- Example Configurations
-
-
- Basic Distributed DCS Install
-
- Here is an example basic configuration for a distributed ten
- node cluster. The nodes are named example1,
- example1, etc., through node
- example9 in this example. The DCS Master
- is running on the node example1.
- DCS Servers run on nodes
- example1-example9. A 3-node
- ZooKeeper ensemble runs on example1,
- example2, and example3 on the
- default ports. ZooKeeper data is persisted to the directory
- /export/zookeeper. Below we show what the main
- configuration files -- wms-site.xml,
- servers, and
- wms-env.sh -- found in the DCS
- conf directory might look like.
-
-
- wms-site.xml
-
-
-
-<?xml version="1.0"?>
-<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
-<configuration>
- <property>
- <name>wms.zookeeper.quorum</name>
- <value>example1,example2,example3</value>
- <description>The directory shared by RegionServers.
- </description>
- </property>
- <property>
- <name>wms.zookeeper.property.dataDir</name>
- <value>/export/zookeeper</value>
- <description>Property from ZooKeeper's config zoo.cfg.
- The directory where the snapshot is stored.
- </description>
- </property>
-</configuration>
-
-
-
-
-
- servers
-
- In this file you list the nodes that will run servers.
-
-
-
- example1
- example2
- example3
- example4
- example5
- example6
- example7
- example8
- example9
-
-
-
-
- wms-env.sh
-
- Below we use a diff to show the differences
- from default in the wms-env.sh file. Here we
- are setting the DCS heap to be 4G instead of the default
- 1G.
-
-
-
-$ git diff wms-env.sh
-diff --git a/conf/wms-env.sh b/conf/wms-env.sh
-index e70ebc6..96f8c27 100644
---- a/conf/wms-env.sh
-+++ b/conf/wms-env.sh
-@@ -31,7 +31,7 @@ export JAVA_HOME=/usr/lib//jvm/java-6-sun/
- # export DCS_CLASSPATH=
-
- # The maximum amount of heap to use, in MB. Default is 1000.
--# export DCS_HEAPSIZE=1000
-+export DCS_HEAPSIZE=4096
-
- # Extra Java runtime options.
- # Below are what we set by default. May only work with SUN JVM.
-
-
-
- Use rsync to copy the content of the
- conf directory to all nodes of the
- cluster.
-
-
-
-
-
-
- The Important Configurations
- Below we list what the important
- Configurations. We've divided this section into
- required configuration and worth-a-look recommended configs.
-
-
-
- Required Configurations
- Review the section.
-
-
-
- Recommended Configurations
- wms.server.user.program
- The default value is true. When true the DcsServer will always start the
- user program (MXOSRVR) using the commands found in property wms.server.user.program.command.
- When false DcsServer will not execute the commands. This is useful mainly for debugging or isolating
- a problem in DCS vs. the user program.
-
-
- To change this configuration, edit wms-site.xml,
- copy the changed file around the cluster and restart.
-
-
-
- wms.server.user.program.command
- The default value is cd ${wms.user.program.home};. sqenv.sh.
- This is the command that the DcsServer executes to start the user program (MXOSRVR).
- You may enter any additional switches. There is no validation done on the command. It's wise to
- test your commands using a shell outside of DCS prior to overiding the value of this property.
-
-
- To change this configuration, edit wms-site.xml,
- copy the changed file around the cluster and restart.
-
-
-
-
-
-
-
-
diff --git a/wms/src/docbkx/customization.xsl b/wms/src/docbkx/customization.xsl
deleted file mode 100644
index d80a2b5a..00000000
--- a/wms/src/docbkx/customization.xsl
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/wms/src/docbkx/external_apis.xml b/wms/src/docbkx/external_apis.xml
deleted file mode 100644
index decbdccd..00000000
--- a/wms/src/docbkx/external_apis.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
- External APIs
- This chapter will cover access to DCS either through non-Java languages, or through custom protocols.
-
-
-
diff --git a/wms/src/docbkx/getting_started.xml b/wms/src/docbkx/getting_started.xml
deleted file mode 100644
index bbe3c1c8..00000000
--- a/wms/src/docbkx/getting_started.xml
+++ /dev/null
@@ -1,140 +0,0 @@
-
-
-
-
- Getting Started
-
-
- Introduction
-
- will get you up and
- running on a single-node instance of DCS.
- describes setup
- of DCS in a multi-node configuration.
-
-
-
- Quick Start
-
- This guide describes setup of a single node DCS instance.
- It leads you through creating a configuration, and then starting
- up and shutting down your DCS instance. The below exercise
- should take no more than ten minutes (not including download time).
-
-
- Download and unpack the latest release.
-
- Decompress and untar your download and then change into the
- unpacked directory.
-
- $ tar xzf dcs-.tar.gz
-$ cd dcs-
-
-
-
- Is java installed?
-
- The steps in the following sections presume a 1.6 version of Oracle
- java is installed on your machine and
- available on your path; i.e. when you type
- java, you see output that describes the
- options the java program takes (DCS requires java 6 or better). If this is not
- the case, DCS will not start. Install java, edit
- conf/dcs-env.sh, uncommenting the
- JAVA_HOME line pointing it to your java install.
-
-
-
- Is Trafodion installed and running?
-
- DCS presumes a Trafodion instance
- is installed and running on your machine and available on your path; i.e. the
- MY_SQROOT is set and when you type
- sqcheck, you see output that confirms
- Trafodion is running. If this is not
- the case, DCS may start but you'll see many errors in the DcsServer logs
- related to user program startup.
-
-
-
- At this point, you are ready to start DCS.
-
-
-
- Start DCS
-
- Now start DCS:$ bin/start-dcs.sh
-localhost: starting zookeeper, logging to /logs/dcs-user-1-zookeeper-hostname.out
-localhost: running Zookeeper
-starting master, logging to /logs/dcs-user-1-master-hostname.out
-localhost: starting server, logging to /logs/dcs-user-1-server-hostname.out
-
- You should now have a running DCS instance. DCS logs can be found in the
- logs subdirectory. Peruse them especially if
- DCS had trouble starting.
-
-
-
- Stopping DCS
-
- Stop your DCS instance by running the stop script.
-
- $ ./bin/stop-dcs.sh
-localhost: stopping server.
-stopping master.
-localhost: stopping zookeeper.
-
-
-
-
- Where to go next
-
- The above described setup is good for testing and
- experiments only. Next move on to where we'll go into
- depth on the different requirements and critical
- configurations needed setting up a distributed DCS deploy.
-
-
-
-
diff --git a/wms/src/docbkx/ops_mgt.xml b/wms/src/docbkx/ops_mgt.xml
deleted file mode 100644
index fd8c0a7e..00000000
--- a/wms/src/docbkx/ops_mgt.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- Operational Management
- This chapter will cover operational tools and practices required of a running DCS cluster.
- The subject of operations is related to the topics of , ,
- and but is a distinct topic in itself.
-
-
- Tools and Utilities
-
- Here we list tools for administration, analysis, and
- debugging.
-
-
-
diff --git a/wms/src/docbkx/performance.xml b/wms/src/docbkx/performance.xml
deleted file mode 100644
index d415f9ab..00000000
--- a/wms/src/docbkx/performance.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
- Performance Tuning
-
-
- Operating System
-
- Memory
- RAM, RAM, RAM. Don't starve Dcs.
-
-
- 64-bit
- Use a 64-bit platform (and 64-bit JVM).
-
-
- Swapping
- Watch out for swapping. Set swappiness to 0.
-
-
-
-
-
-
- ZooKeeper
- See for information on configuring ZooKeeper, and see the part
- about having a dedicated disk.
-
-
-
diff --git a/wms/src/docbkx/preface.xml b/wms/src/docbkx/preface.xml
deleted file mode 100644
index 2f3139f3..00000000
--- a/wms/src/docbkx/preface.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
- Preface
-
- This is the official reference guide for the DCS version it ships with.
- This document describes DCS version .
- Herein you will find either the definitive documentation on an DCS topic
- as of its standing when the referenced DCS version shipped, or it
- will point to the location in javadoc, where
- the pertinent information can be found.
-
- This reference guide is a work in progress.
-
-
diff --git a/wms/src/docbkx/troubleshooting.xml b/wms/src/docbkx/troubleshooting.xml
deleted file mode 100644
index 312b664e..00000000
--- a/wms/src/docbkx/troubleshooting.xml
+++ /dev/null
@@ -1,193 +0,0 @@
-
-
-
-
- Troubleshooting and Debugging
-
-
- Logs
-
- The key process logs are as follows... (replace <user> with the user that started the service, <instance> for the server instance and <hostname> for the machine name)
-
-
- DcsMaster: $DCS_HOME/logs/dcs-<user>-<instance>-master-<hostname>.log
-
-
- DcsServer: $DCS_HOME/logs/dcs-<user>-<instance>-server-<hostname>.log
-
-
- ZooKeeper: $DCS_HOME/logs/dcs-<user>-<instance>-zookeeper-<hostname>.log
-
-
-
-
- Tools
-
- Builtin Tools
-
- DcsMaster Web Interface
- The DcsMaster starts a web-interface on port 40010 by default.
-
- The DcsMaster web UI lists created DcsServers (e.g., build info, zookeeper quorum, metrics, etc.). Additionally,
- the available DcsServers in the cluster are listed along with selected high-level metrics (listenerRequests, listenerCompletedRequests,
- totalAvailable/totalConnected/totalConnecting MXOSRVRs, totalHeap, usedHeap, maxHeap, etc).
- The DcsMaster web UI allows navigation to each DcsServer's web UI.
-
-
-
- DcsServer Web Interface
- DcsServers starts a web-interface on port 40030 by default.
-
- The DcsServer web UI lists its server metrics (build info, zookeeper quorum, usedHeap, maxHeap, etc.).
-
- See for more information in metric definitions.
-
-
-
- zkcli
- zkcli
is a very useful tool for investigating ZooKeeper-related issues. To invoke:
-
-./dcs zkcli -server host:port <cmd> <args>
-
- The commands (and arguments) are:
-
- connect host:port
- get path [watch]
- ls path [watch]
- set path data [version]
- delquota [-n|-b] path
- quit
- printwatches on|off
- create [-s] [-e] path data acl
- stat path [watch]
- close
- ls2 path [watch]
- history
- listquota path
- setAcl path acl
- getAcl path
- sync path
- redo cmdno
- addauth scheme auth
- delete path [version]
- setquota -n|-b val path
-
-
-
-
-
- External Tools
-
- tail
-
- tail
is the command line tool that lets you look at the end of a file. Add the “-f” option and it will refresh when new data is available. It’s useful when you are wondering what’s happening, for example, when a cluster is taking a long time to shutdown or startup as you can just fire a new terminal and tail the master log (and maybe a few DcsServers).
-
-
-
- top
-
- top
is probably one of the most important tool when first trying to see what’s running on a machine and how the resources are consumed. Here’s an example from production system:
-
-top - 14:46:59 up 39 days, 11:55, 1 user, load average: 3.75, 3.57, 3.84
-Tasks: 309 total, 1 running, 308 sleeping, 0 stopped, 0 zombie
-Cpu(s): 4.5%us, 1.6%sy, 0.0%ni, 91.7%id, 1.4%wa, 0.1%hi, 0.6%si, 0.0%st
-Mem: 24414432k total, 24296956k used, 117476k free, 7196k buffers
-Swap: 16008732k total, 14348k used, 15994384k free, 11106908k cached
-
- PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
-15558 hadoop 18 -2 3292m 2.4g 3556 S 79 10.4 6523:52 java
-13268 hadoop 18 -2 8967m 8.2g 4104 S 21 35.1 5170:30 java
- 8895 hadoop 18 -2 1581m 497m 3420 S 11 2.1 4002:32 java
-…
-
-
-
- Here we can see that the system load average during the last five minutes is 3.75, which very roughly means that on average 3.75 threads were waiting for CPU time during these 5 minutes. In general, the “perfect” utilization equals to the number of cores, under that number the machine is under utilized and over that the machine is over utilized. This is an important concept, see this article to understand it more: http://www.linuxjournal.com/article/9001.
-
-
- Apart from load, we can see that the system is using almost all its available RAM but most of it is used for the OS cache (which is good). The swap only has a few KBs in it and this is wanted, high numbers would indicate swapping activity which is the nemesis of performance of Java systems. Another way to detect swapping is when the load average goes through the roof (although this could also be caused by things like a dying disk, among others).
-
-
- The list of processes isn’t super useful by default, all we know is that 3 java processes are using about 111% of the CPUs. To know which is which, simply type “c” and each line will be expanded. Typing “1” will give you the detail of how each CPU is used instead of the average for all of them like shown here.
-
-
-
- jps
-
- jps
is shipped with every JDK and gives the java process ids for the current user (if root, then it gives the ids for all users). Example:
-
-
-
-
-
-
- ZooKeeper
-
- Startup Errors
-
- Could not find my address: xyz in list of ZooKeeper quorum servers
- A ZooKeeper server wasn't able to start, throws that error. xyz is the name of your server.
- This is a name lookup problem. DCS tries to start a ZooKeeper server on some machine but that machine isn't able to find itself in the dcs.zookeeper.quorum configuration.
-
- Use the hostname presented in the error message instead of the value you used. If you have a DNS server, you can set dcs.zookeeper.dns.interface and dcs.zookeeper.dns.nameserver in dcs-site.xml to make sure it resolves to the correct FQDN.
-
-
-
-
-
- ZooKeeper, The Cluster Canary
- ZooKeeper is the cluster's "canary in the mineshaft". It'll be the first to notice issues if any so making sure its happy is the short-cut to a humming cluster.
-
-
- See the ZooKeeper Operating Environment Troubleshooting page. It has suggestions and tools for checking disk and networking performance; i.e. the operating environment your ZooKeeper and DCS are running in.
-
- Additionally, the utility may help investigate ZooKeeper issues.
-
-
-
-
diff --git a/wms/src/main/c/INSTALL b/wms/src/main/c/INSTALL
deleted file mode 100644
index 5458714e..00000000
--- a/wms/src/main/c/INSTALL
+++ /dev/null
@@ -1,234 +0,0 @@
-Installation Instructions
-*************************
-
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006 Free Software Foundation, Inc.
-
-This file is free documentation; the Free Software Foundation gives
-unlimited permission to copy, distribute and modify it.
-
-Basic Installation
-==================
-
-Briefly, the shell commands `./configure; make; make install' should
-configure, build, and install this package. The following
-more-detailed instructions are generic; see the `README' file for
-instructions specific to this package.
-
- The `configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation. It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions. Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
-
- It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring. Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
-
- If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
-be considered for the next release. If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
- The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'. You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
-
-The simplest way to compile this package is:
-
- 1. `cd' to the directory containing the package's source code and type
- `./configure' to configure the package for your system.
-
- Running `configure' might take a while. While running, it prints
- some messages telling which features it is checking for.
-
- 2. Type `make' to compile the package.
-
- 3. Optionally, type `make check' to run any self-tests that come with
- the package.
-
- 4. Type `make install' to install the programs and any data files and
- documentation.
-
- 5. You can remove the program binaries and object files from the
- source code directory by typing `make clean'. To also remove the
- files that `configure' created (so you can compile the package for
- a different kind of computer), type `make distclean'. There is
- also a `make maintainer-clean' target, but that is intended mainly
- for the package's developers. If you use it, you may have to get
- all sorts of other programs in order to regenerate files that came
- with the distribution.
-
-Compilers and Options
-=====================
-
-Some systems require unusual options for compilation or linking that the
-`configure' script does not know about. Run `./configure --help' for
-details on some of the pertinent environment variables.
-
- You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment. Here
-is an example:
-
- ./configure CC=c99 CFLAGS=-g LIBS=-lposix
-
- *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
-You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory. To do this, you can use GNU `make'. `cd' to the
-directory where you want the object files and executables to go and run
-the `configure' script. `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.
-
- With a non-GNU `make', it is safer to compile the package for one
-architecture at a time in the source code directory. After you have
-installed the package for one architecture, use `make distclean' before
-reconfiguring for another architecture.
-
-Installation Names
-==================
-
-By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc. You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX'.
-
- You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files. If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
-PREFIX as the prefix for installing programs and libraries.
-Documentation and other data files still use the regular prefix.
-
- In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files. Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.
-
- If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
-Optional Features
-=================
-
-Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System). The
-`README' should mention any `--enable-' and `--with-' options that the
-package recognizes.
-
- For packages that use the X Window System, `configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
-
-Specifying the System Type
-==========================
-
-There may be some features `configure' cannot figure out automatically,
-but needs to determine by the type of machine the package will run on.
-Usually, assuming the package is built to be run on the _same_
-architectures, `configure' can figure that out, but if it prints a
-message saying it cannot guess the machine type, give it the
-`--build=TYPE' option. TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
-
- CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
- OS KERNEL-OS
-
- See the file `config.sub' for the possible values of each field. If
-`config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
- If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
-produce code for.
-
- If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
-
-Sharing Defaults
-================
-
-If you want to set default values for `configure' scripts to share, you
-can create a site shell script called `config.site' that gives default
-values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists. Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
-
-Defining Variables
-==================
-
-Variables not defined in a site shell script can be set in the
-environment passed to `configure'. However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost. In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'. For example:
-
- ./configure CC=/usr/local2/bin/gcc
-
-causes the specified `gcc' to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf bug. Until the bug is fixed you can use this workaround:
-
- CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
-
-`configure' Invocation
-======================
-
-`configure' recognizes the following options to control how it operates.
-
-`--help'
-`-h'
- Print a summary of the options to `configure', and exit.
-
-`--version'
-`-V'
- Print the version of Autoconf used to generate the `configure'
- script, and exit.
-
-`--cache-file=FILE'
- Enable the cache: use and save the results of the tests in FILE,
- traditionally `config.cache'. FILE defaults to `/dev/null' to
- disable caching.
-
-`--config-cache'
-`-C'
- Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
- Do not print messages saying which checks are being made. To
- suppress all normal output, redirect it to `/dev/null' (any error
- messages will still be shown).
-
-`--srcdir=DIR'
- Look for the package's source code in directory DIR. Usually
- `configure' can determine that directory automatically.
-
-`configure' also accepts some other, not widely useful, options. Run
-`configure --help' for more details.
-
diff --git a/wms/src/main/c/Makefile.am b/wms/src/main/c/Makefile.am
deleted file mode 100644
index 3ac4831b..00000000
--- a/wms/src/main/c/Makefile.am
+++ /dev/null
@@ -1,48 +0,0 @@
-# need this for Doxygen integration
-#include $(top_srcdir)/aminclude.am
-
-AM_CPPFLAGS = -I${srcdir}/include -I${srcdir}/tests -I${srcdir}/generated
-AM_CFLAGS = -Wall -Werror
-AM_CXXFLAGS = -Wall
-
-LIB_LDFLAGS = -no-undefined -version-info 2
-
-pkginclude_HEADERS = include/Wms.h generated/WmsService_types.h
-EXTRA_DIST=LICENSE
-
-COMMON_SRC = include/GlobalData.h include/GlobalHeader.h include/Wms.h include/WmsException.h include/WmsZookeeper.h \
- src/Wms.cpp src/GlobalData.cpp src/WmsException.cpp src/WmsZookeeper.cpp \
- generated/WmsService_constants.cpp generated/WmsService_constants.h generated/WmsService_types.cpp generated/WmsService_types.h \
- generated/WmsService.cpp generated/WmsService.h
-
-noinst_LTLIBRARIES = libwms.la
-libwms_la_SOURCES = $(COMMON_SRC)
-libwms_la_LIBADD = -lm
-
-lib_LTLIBRARIES = libwms_st.la
-libwms_st_la_SOURCES =
-libwms_st_la_LIBADD=libwms.la -lzookeeper_mt -lthrift
-libwms_st_la_DEPENDENCIES=libwms.la
-libwms_st_la_LDFLAGS = $(LIB_LDFLAGS)
-
-#########################################################################
-# build and run unit tests
-
-EXTRA_DIST+=$(wildcard ${srcdir}/tests/*.cpp) $(wildcard ${srcdir}/tests/*.h)
-
-TEST_SOURCES = tests/wms_test.cpp
-
-check_PROGRAMS = wmstest-st
-nodist_wmstest_st_SOURCES = $(TEST_SOURCES)
-wmstest_st_LDADD = libwms_st.la
-wmstest_st_CXXFLAGS = -DUSE_STATIC_LIB
-wmstest_st_LDFLAGS = -static-libtool-libs
-
-run-check: check
- ./wmstest-st $(TEST_OPTIONS)
-
-clean-local: clean-check
- $(RM) $(DX_CLEANFILES)
-
-clean-check:
- $(RM) $(nodist_wmstest_st_OBJECTS) $(nodist_wmstest_mt_OBJECTS)
diff --git a/wms/src/main/c/configure.ac b/wms/src/main/c/configure.ac
deleted file mode 100644
index ba171203..00000000
--- a/wms/src/main/c/configure.ac
+++ /dev/null
@@ -1,96 +0,0 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ(2.59)
-
-AC_INIT([WMS C client],0.1.0,[mattbrown@hp.com],[wms])
-AC_CONFIG_SRCDIR([src/Wms.cpp])
-
-# Save initial CFLAGS and CXXFLAGS values before AC_PROG_CC and AC_PROG_CXX
-init_cflags="$CFLAGS"
-init_cxxflags="$CXXFLAGS"
-
-# initialize automake
-AM_INIT_AUTOMAKE([-Wall foreign])
-AC_CONFIG_HEADER([config.h])
-
-AC_PROG_CC
-AM_PROG_CC_C_O
-AC_PROG_CXX
-AC_PROG_INSTALL
-AC_PROG_LN_S
-
-# AC_DISABLE_SHARED
-AC_PROG_LIBTOOL
-
-AC_ARG_ENABLE([debug],
- [AS_HELP_STRING([--enable-debug],[enable debug build [default=no]])],
- [],[enable_debug=no])
-
-if test "x$enable_debug" = xyes; then
- if test "x$init_cflags" = x; then
- CFLAGS=""
- fi
- CFLAGS="$CFLAGS -g -O0 -D_GNU_SOURCE"
-else
- if test "x$init_cflags" = x; then
- CFLAGS="-g -O2 -D_GNU_SOURCE"
- fi
-fi
-
-if test "x$enable_debug" = xyes; then
- if test "x$init_cxxflags" = x; then
- CXXFLAGS=""
- fi
- CXXFLAGS="$CXXFLAGS -g -O0"
-else
- if test "x$init_cxxflags" = x; then
- CXXFLAGS="-g -O2"
- fi
-fi
-
-# Checks for libraries.
-AC_CHECK_LIB([pthread], [pthread_mutex_lock],[have_pthread=yes],[have_pthread=no])
-
-# Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h sys/utsname.h])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_C_INLINE
-AC_HEADER_TIME
-AC_CHECK_TYPE([nfds_t],
- [AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[poll() second argument type])],
- [AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[poll() second argument type])],
- [#include ])
-
-AC_MSG_CHECKING([whether to enable ipv6])
-
-AC_TRY_RUN([ /* is AF_INET6 available? */
-#include
-#include
-main()
-{
- if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
- exit(1);
- else
- exit(0);
-}
-], AC_MSG_RESULT(yes)
- ipv6=yes,
- AC_MSG_RESULT(no)
- ipv6=no,
- AC_MSG_RESULT(no)
- ipv6=no)
-
-if test x"$ipv6" = xyes; then
- USEIPV6="-DZOO_IPV6_ENABLED"
- AC_SUBST(USEIPV6)
-fi
-
-# Checks for library functions.
-AC_CHECK_FUNCS([getcwd gethostbyname gethostname getlogin getpwuid_r gettimeofday getuid memmove memset poll socket strchr strdup strerror strtol])
-
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
diff --git a/wms/src/main/c/generated/WmsAdminService.cpp b/wms/src/main/c/generated/WmsAdminService.cpp
deleted file mode 100644
index 06fe7284..00000000
--- a/wms/src/main/c/generated/WmsAdminService.cpp
+++ /dev/null
@@ -1,2971 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "WmsAdminService.h"
-
-namespace trafodion { namespace wms { namespace thrift {
-
-uint32_t WmsAdminService_ping_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->timestamp);
- this->__isset.timestamp = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_ping_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_ping_args");
-
- xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 1);
- xfer += oprot->writeI64(this->timestamp);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_ping_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_ping_pargs");
-
- xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 1);
- xfer += oprot->writeI64((*(this->timestamp)));
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_ping_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_ping_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_ping_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I64, 0);
- xfer += oprot->writeI64(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_ping_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_addStream_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->stream.read(iprot);
- this->__isset.stream = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_addStream_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_addStream_args");
-
- xfer += oprot->writeFieldBegin("stream", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->stream.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_addStream_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_addStream_pargs");
-
- xfer += oprot->writeFieldBegin("stream", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->stream)).write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_addStream_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_addStream_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_addStream_result");
-
- if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.ia) {
- xfer += oprot->writeFieldBegin("ia", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->ia.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_addStream_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_alterStream_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->stream.read(iprot);
- this->__isset.stream = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_alterStream_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_alterStream_args");
-
- xfer += oprot->writeFieldBegin("stream", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->stream.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_alterStream_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_alterStream_pargs");
-
- xfer += oprot->writeFieldBegin("stream", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->stream)).write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_alterStream_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_alterStream_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_alterStream_result");
-
- if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.ia) {
- xfer += oprot->writeFieldBegin("ia", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->ia.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_alterStream_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteStream_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->stream.read(iprot);
- this->__isset.stream = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteStream_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_deleteStream_args");
-
- xfer += oprot->writeFieldBegin("stream", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->stream.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteStream_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_deleteStream_pargs");
-
- xfer += oprot->writeFieldBegin("stream", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->stream)).write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteStream_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteStream_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_deleteStream_result");
-
- if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.ia) {
- xfer += oprot->writeFieldBegin("ia", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->ia.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteStream_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_stream_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- xfer += iprot->skip(ftype);
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_stream_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_stream_args");
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_stream_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_stream_pargs");
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_stream_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_stream_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_stream_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_stream_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_addRule_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->rule.read(iprot);
- this->__isset.rule = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_addRule_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_addRule_args");
-
- xfer += oprot->writeFieldBegin("rule", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->rule.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_addRule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_addRule_pargs");
-
- xfer += oprot->writeFieldBegin("rule", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->rule)).write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_addRule_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_addRule_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_addRule_result");
-
- if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.ia) {
- xfer += oprot->writeFieldBegin("ia", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->ia.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_addRule_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_alterRule_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->rule.read(iprot);
- this->__isset.rule = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_alterRule_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_alterRule_args");
-
- xfer += oprot->writeFieldBegin("rule", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->rule.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_alterRule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_alterRule_pargs");
-
- xfer += oprot->writeFieldBegin("rule", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->rule)).write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_alterRule_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_alterRule_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_alterRule_result");
-
- if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.ia) {
- xfer += oprot->writeFieldBegin("ia", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->ia.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_alterRule_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteRule_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->rule.read(iprot);
- this->__isset.rule = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteRule_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_deleteRule_args");
-
- xfer += oprot->writeFieldBegin("rule", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->rule.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteRule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_deleteRule_pargs");
-
- xfer += oprot->writeFieldBegin("rule", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->rule)).write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteRule_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteRule_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_deleteRule_result");
-
- if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.ia) {
- xfer += oprot->writeFieldBegin("ia", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->ia.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_deleteRule_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_rule_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- xfer += iprot->skip(ftype);
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_rule_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_rule_args");
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_rule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_rule_pargs");
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_rule_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_rule_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_rule_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_rule_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_workload_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- xfer += iprot->skip(ftype);
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_workload_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_workload_args");
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_workload_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsAdminService_workload_pargs");
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_workload_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsAdminService_workload_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsAdminService_workload_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsAdminService_workload_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-int64_t WmsAdminServiceClient::ping(const int64_t timestamp)
-{
- send_ping(timestamp);
- return recv_ping();
-}
-
-void WmsAdminServiceClient::send_ping(const int64_t timestamp)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("ping", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_ping_pargs args;
- args.timestamp = ×tamp;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-int64_t WmsAdminServiceClient::recv_ping()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("ping") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- int64_t _return;
- WmsAdminService_ping_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- return _return;
- }
- if (result.__isset.io) {
- throw result.io;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "ping failed: unknown result");
-}
-
-void WmsAdminServiceClient::addStream(const Stream& stream)
-{
- send_addStream(stream);
- recv_addStream();
-}
-
-void WmsAdminServiceClient::send_addStream(const Stream& stream)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("addStream", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_addStream_pargs args;
- args.stream = &stream;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_addStream()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("addStream") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_addStream_presult result;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- return;
-}
-
-void WmsAdminServiceClient::alterStream(const Stream& stream)
-{
- send_alterStream(stream);
- recv_alterStream();
-}
-
-void WmsAdminServiceClient::send_alterStream(const Stream& stream)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("alterStream", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_alterStream_pargs args;
- args.stream = &stream;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_alterStream()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("alterStream") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_alterStream_presult result;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- return;
-}
-
-void WmsAdminServiceClient::deleteStream(const Stream& stream)
-{
- send_deleteStream(stream);
- recv_deleteStream();
-}
-
-void WmsAdminServiceClient::send_deleteStream(const Stream& stream)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("deleteStream", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_deleteStream_pargs args;
- args.stream = &stream;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_deleteStream()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("deleteStream") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_deleteStream_presult result;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- return;
-}
-
-void WmsAdminServiceClient::stream(StreamResponse& _return)
-{
- send_stream();
- recv_stream(_return);
-}
-
-void WmsAdminServiceClient::send_stream()
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("stream", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_stream_pargs args;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_stream(StreamResponse& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("stream") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_stream_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.io) {
- throw result.io;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "stream failed: unknown result");
-}
-
-void WmsAdminServiceClient::addRule(const Rule& rule)
-{
- send_addRule(rule);
- recv_addRule();
-}
-
-void WmsAdminServiceClient::send_addRule(const Rule& rule)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("addRule", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_addRule_pargs args;
- args.rule = &rule;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_addRule()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("addRule") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_addRule_presult result;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- return;
-}
-
-void WmsAdminServiceClient::alterRule(const Rule& rule)
-{
- send_alterRule(rule);
- recv_alterRule();
-}
-
-void WmsAdminServiceClient::send_alterRule(const Rule& rule)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("alterRule", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_alterRule_pargs args;
- args.rule = &rule;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_alterRule()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("alterRule") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_alterRule_presult result;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- return;
-}
-
-void WmsAdminServiceClient::deleteRule(const Rule& rule)
-{
- send_deleteRule(rule);
- recv_deleteRule();
-}
-
-void WmsAdminServiceClient::send_deleteRule(const Rule& rule)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("deleteRule", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_deleteRule_pargs args;
- args.rule = &rule;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_deleteRule()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("deleteRule") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_deleteRule_presult result;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- return;
-}
-
-void WmsAdminServiceClient::rule(RuleResponse& _return)
-{
- send_rule();
- recv_rule(_return);
-}
-
-void WmsAdminServiceClient::send_rule()
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("rule", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_rule_pargs args;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_rule(RuleResponse& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("rule") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_rule_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.io) {
- throw result.io;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "rule failed: unknown result");
-}
-
-void WmsAdminServiceClient::workload(WorkloadResponse& _return)
-{
- send_workload();
- recv_workload(_return);
-}
-
-void WmsAdminServiceClient::send_workload()
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("workload", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsAdminService_workload_pargs args;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsAdminServiceClient::recv_workload(WorkloadResponse& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("workload") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsAdminService_workload_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.io) {
- throw result.io;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "workload failed: unknown result");
-}
-
-bool WmsAdminServiceProcessor::dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext) {
- ProcessMap::iterator pfn;
- pfn = processMap_.find(fname);
- if (pfn == processMap_.end()) {
- iprot->skip(::apache::thrift::protocol::T_STRUCT);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
- ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::UNKNOWN_METHOD, "Invalid method name: '"+fname+"'");
- oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return true;
- }
- (this->*(pfn->second))(seqid, iprot, oprot, callContext);
- return true;
-}
-
-void WmsAdminServiceProcessor::process_ping(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.ping", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.ping");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.ping");
- }
-
- WmsAdminService_ping_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.ping", bytes);
- }
-
- WmsAdminService_ping_result result;
- try {
- result.success = iface_->ping(args.timestamp);
- result.__isset.success = true;
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.ping");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("ping", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.ping");
- }
-
- oprot->writeMessageBegin("ping", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.ping", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_addStream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.addStream", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.addStream");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.addStream");
- }
-
- WmsAdminService_addStream_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.addStream", bytes);
- }
-
- WmsAdminService_addStream_result result;
- try {
- iface_->addStream(args.stream);
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument &ia) {
- result.ia = ia;
- result.__isset.ia = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.addStream");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("addStream", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.addStream");
- }
-
- oprot->writeMessageBegin("addStream", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.addStream", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_alterStream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.alterStream", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.alterStream");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.alterStream");
- }
-
- WmsAdminService_alterStream_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.alterStream", bytes);
- }
-
- WmsAdminService_alterStream_result result;
- try {
- iface_->alterStream(args.stream);
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument &ia) {
- result.ia = ia;
- result.__isset.ia = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.alterStream");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("alterStream", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.alterStream");
- }
-
- oprot->writeMessageBegin("alterStream", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.alterStream", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_deleteStream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.deleteStream", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.deleteStream");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.deleteStream");
- }
-
- WmsAdminService_deleteStream_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.deleteStream", bytes);
- }
-
- WmsAdminService_deleteStream_result result;
- try {
- iface_->deleteStream(args.stream);
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument &ia) {
- result.ia = ia;
- result.__isset.ia = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.deleteStream");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("deleteStream", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.deleteStream");
- }
-
- oprot->writeMessageBegin("deleteStream", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.deleteStream", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_stream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.stream", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.stream");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.stream");
- }
-
- WmsAdminService_stream_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.stream", bytes);
- }
-
- WmsAdminService_stream_result result;
- try {
- iface_->stream(result.success);
- result.__isset.success = true;
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.stream");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("stream", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.stream");
- }
-
- oprot->writeMessageBegin("stream", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.stream", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_addRule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.addRule", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.addRule");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.addRule");
- }
-
- WmsAdminService_addRule_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.addRule", bytes);
- }
-
- WmsAdminService_addRule_result result;
- try {
- iface_->addRule(args.rule);
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument &ia) {
- result.ia = ia;
- result.__isset.ia = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.addRule");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("addRule", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.addRule");
- }
-
- oprot->writeMessageBegin("addRule", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.addRule", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_alterRule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.alterRule", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.alterRule");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.alterRule");
- }
-
- WmsAdminService_alterRule_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.alterRule", bytes);
- }
-
- WmsAdminService_alterRule_result result;
- try {
- iface_->alterRule(args.rule);
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument &ia) {
- result.ia = ia;
- result.__isset.ia = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.alterRule");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("alterRule", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.alterRule");
- }
-
- oprot->writeMessageBegin("alterRule", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.alterRule", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_deleteRule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.deleteRule", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.deleteRule");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.deleteRule");
- }
-
- WmsAdminService_deleteRule_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.deleteRule", bytes);
- }
-
- WmsAdminService_deleteRule_result result;
- try {
- iface_->deleteRule(args.rule);
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument &ia) {
- result.ia = ia;
- result.__isset.ia = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.deleteRule");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("deleteRule", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.deleteRule");
- }
-
- oprot->writeMessageBegin("deleteRule", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.deleteRule", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_rule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.rule", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.rule");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.rule");
- }
-
- WmsAdminService_rule_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.rule", bytes);
- }
-
- WmsAdminService_rule_result result;
- try {
- iface_->rule(result.success);
- result.__isset.success = true;
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.rule");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("rule", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.rule");
- }
-
- oprot->writeMessageBegin("rule", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.rule", bytes);
- }
-}
-
-void WmsAdminServiceProcessor::process_workload(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsAdminService.workload", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsAdminService.workload");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsAdminService.workload");
- }
-
- WmsAdminService_workload_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsAdminService.workload", bytes);
- }
-
- WmsAdminService_workload_result result;
- try {
- iface_->workload(result.success);
- result.__isset.success = true;
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsAdminService.workload");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("workload", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsAdminService.workload");
- }
-
- oprot->writeMessageBegin("workload", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsAdminService.workload", bytes);
- }
-}
-
-::boost::shared_ptr< ::apache::thrift::TProcessor > WmsAdminServiceProcessorFactory::getProcessor(const ::apache::thrift::TConnectionInfo& connInfo) {
- ::apache::thrift::ReleaseHandler< WmsAdminServiceIfFactory > cleanup(handlerFactory_);
- ::boost::shared_ptr< WmsAdminServiceIf > handler(handlerFactory_->getHandler(connInfo), cleanup);
- ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new WmsAdminServiceProcessor(handler));
- return processor;
-}
-}}} // namespace
-
diff --git a/wms/src/main/c/generated/WmsAdminService.h b/wms/src/main/c/generated/WmsAdminService.h
deleted file mode 100644
index f8274fb5..00000000
--- a/wms/src/main/c/generated/WmsAdminService.h
+++ /dev/null
@@ -1,1441 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef WmsAdminService_H
-#define WmsAdminService_H
-
-#include
-#include "WmsService_types.h"
-
-namespace trafodion { namespace wms { namespace thrift {
-
-class WmsAdminServiceIf {
- public:
- virtual ~WmsAdminServiceIf() {}
- virtual int64_t ping(const int64_t timestamp) = 0;
- virtual void addStream(const Stream& stream) = 0;
- virtual void alterStream(const Stream& stream) = 0;
- virtual void deleteStream(const Stream& stream) = 0;
- virtual void stream(StreamResponse& _return) = 0;
- virtual void addRule(const Rule& rule) = 0;
- virtual void alterRule(const Rule& rule) = 0;
- virtual void deleteRule(const Rule& rule) = 0;
- virtual void rule(RuleResponse& _return) = 0;
- virtual void workload(WorkloadResponse& _return) = 0;
-};
-
-class WmsAdminServiceIfFactory {
- public:
- typedef WmsAdminServiceIf Handler;
-
- virtual ~WmsAdminServiceIfFactory() {}
-
- virtual WmsAdminServiceIf* getHandler(const ::apache::thrift::TConnectionInfo& connInfo) = 0;
- virtual void releaseHandler(WmsAdminServiceIf* /* handler */) = 0;
-};
-
-class WmsAdminServiceIfSingletonFactory : virtual public WmsAdminServiceIfFactory {
- public:
- WmsAdminServiceIfSingletonFactory(const boost::shared_ptr& iface) : iface_(iface) {}
- virtual ~WmsAdminServiceIfSingletonFactory() {}
-
- virtual WmsAdminServiceIf* getHandler(const ::apache::thrift::TConnectionInfo&) {
- return iface_.get();
- }
- virtual void releaseHandler(WmsAdminServiceIf* /* handler */) {}
-
- protected:
- boost::shared_ptr iface_;
-};
-
-class WmsAdminServiceNull : virtual public WmsAdminServiceIf {
- public:
- virtual ~WmsAdminServiceNull() {}
- int64_t ping(const int64_t /* timestamp */) {
- int64_t _return = 0;
- return _return;
- }
- void addStream(const Stream& /* stream */) {
- return;
- }
- void alterStream(const Stream& /* stream */) {
- return;
- }
- void deleteStream(const Stream& /* stream */) {
- return;
- }
- void stream(StreamResponse& /* _return */) {
- return;
- }
- void addRule(const Rule& /* rule */) {
- return;
- }
- void alterRule(const Rule& /* rule */) {
- return;
- }
- void deleteRule(const Rule& /* rule */) {
- return;
- }
- void rule(RuleResponse& /* _return */) {
- return;
- }
- void workload(WorkloadResponse& /* _return */) {
- return;
- }
-};
-
-typedef struct _WmsAdminService_ping_args__isset {
- _WmsAdminService_ping_args__isset() : timestamp(false) {}
- bool timestamp;
-} _WmsAdminService_ping_args__isset;
-
-class WmsAdminService_ping_args {
- public:
-
- WmsAdminService_ping_args() : timestamp(0) {
- }
-
- virtual ~WmsAdminService_ping_args() throw() {}
-
- int64_t timestamp;
-
- _WmsAdminService_ping_args__isset __isset;
-
- void __set_timestamp(const int64_t val) {
- timestamp = val;
- }
-
- bool operator == (const WmsAdminService_ping_args & rhs) const
- {
- if (!(timestamp == rhs.timestamp))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_ping_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_ping_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_ping_pargs {
- public:
-
-
- virtual ~WmsAdminService_ping_pargs() throw() {}
-
- const int64_t* timestamp;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_ping_result__isset {
- _WmsAdminService_ping_result__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_ping_result__isset;
-
-class WmsAdminService_ping_result {
- public:
-
- WmsAdminService_ping_result() : success(0) {
- }
-
- virtual ~WmsAdminService_ping_result() throw() {}
-
- int64_t success;
- IOError io;
-
- _WmsAdminService_ping_result__isset __isset;
-
- void __set_success(const int64_t val) {
- success = val;
- }
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- bool operator == (const WmsAdminService_ping_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(io == rhs.io))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_ping_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_ping_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_ping_presult__isset {
- _WmsAdminService_ping_presult__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_ping_presult__isset;
-
-class WmsAdminService_ping_presult {
- public:
-
-
- virtual ~WmsAdminService_ping_presult() throw() {}
-
- int64_t* success;
- IOError io;
-
- _WmsAdminService_ping_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-typedef struct _WmsAdminService_addStream_args__isset {
- _WmsAdminService_addStream_args__isset() : stream(false) {}
- bool stream;
-} _WmsAdminService_addStream_args__isset;
-
-class WmsAdminService_addStream_args {
- public:
-
- WmsAdminService_addStream_args() {
- }
-
- virtual ~WmsAdminService_addStream_args() throw() {}
-
- Stream stream;
-
- _WmsAdminService_addStream_args__isset __isset;
-
- void __set_stream(const Stream& val) {
- stream = val;
- }
-
- bool operator == (const WmsAdminService_addStream_args & rhs) const
- {
- if (!(stream == rhs.stream))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_addStream_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_addStream_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_addStream_pargs {
- public:
-
-
- virtual ~WmsAdminService_addStream_pargs() throw() {}
-
- const Stream* stream;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_addStream_result__isset {
- _WmsAdminService_addStream_result__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_addStream_result__isset;
-
-class WmsAdminService_addStream_result {
- public:
-
- WmsAdminService_addStream_result() {
- }
-
- virtual ~WmsAdminService_addStream_result() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_addStream_result__isset __isset;
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- void __set_ia(const IllegalArgument& val) {
- ia = val;
- }
-
- bool operator == (const WmsAdminService_addStream_result & rhs) const
- {
- if (!(io == rhs.io))
- return false;
- if (!(ia == rhs.ia))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_addStream_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_addStream_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_addStream_presult__isset {
- _WmsAdminService_addStream_presult__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_addStream_presult__isset;
-
-class WmsAdminService_addStream_presult {
- public:
-
-
- virtual ~WmsAdminService_addStream_presult() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_addStream_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-typedef struct _WmsAdminService_alterStream_args__isset {
- _WmsAdminService_alterStream_args__isset() : stream(false) {}
- bool stream;
-} _WmsAdminService_alterStream_args__isset;
-
-class WmsAdminService_alterStream_args {
- public:
-
- WmsAdminService_alterStream_args() {
- }
-
- virtual ~WmsAdminService_alterStream_args() throw() {}
-
- Stream stream;
-
- _WmsAdminService_alterStream_args__isset __isset;
-
- void __set_stream(const Stream& val) {
- stream = val;
- }
-
- bool operator == (const WmsAdminService_alterStream_args & rhs) const
- {
- if (!(stream == rhs.stream))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_alterStream_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_alterStream_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_alterStream_pargs {
- public:
-
-
- virtual ~WmsAdminService_alterStream_pargs() throw() {}
-
- const Stream* stream;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_alterStream_result__isset {
- _WmsAdminService_alterStream_result__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_alterStream_result__isset;
-
-class WmsAdminService_alterStream_result {
- public:
-
- WmsAdminService_alterStream_result() {
- }
-
- virtual ~WmsAdminService_alterStream_result() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_alterStream_result__isset __isset;
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- void __set_ia(const IllegalArgument& val) {
- ia = val;
- }
-
- bool operator == (const WmsAdminService_alterStream_result & rhs) const
- {
- if (!(io == rhs.io))
- return false;
- if (!(ia == rhs.ia))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_alterStream_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_alterStream_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_alterStream_presult__isset {
- _WmsAdminService_alterStream_presult__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_alterStream_presult__isset;
-
-class WmsAdminService_alterStream_presult {
- public:
-
-
- virtual ~WmsAdminService_alterStream_presult() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_alterStream_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-typedef struct _WmsAdminService_deleteStream_args__isset {
- _WmsAdminService_deleteStream_args__isset() : stream(false) {}
- bool stream;
-} _WmsAdminService_deleteStream_args__isset;
-
-class WmsAdminService_deleteStream_args {
- public:
-
- WmsAdminService_deleteStream_args() {
- }
-
- virtual ~WmsAdminService_deleteStream_args() throw() {}
-
- Stream stream;
-
- _WmsAdminService_deleteStream_args__isset __isset;
-
- void __set_stream(const Stream& val) {
- stream = val;
- }
-
- bool operator == (const WmsAdminService_deleteStream_args & rhs) const
- {
- if (!(stream == rhs.stream))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_deleteStream_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_deleteStream_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_deleteStream_pargs {
- public:
-
-
- virtual ~WmsAdminService_deleteStream_pargs() throw() {}
-
- const Stream* stream;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_deleteStream_result__isset {
- _WmsAdminService_deleteStream_result__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_deleteStream_result__isset;
-
-class WmsAdminService_deleteStream_result {
- public:
-
- WmsAdminService_deleteStream_result() {
- }
-
- virtual ~WmsAdminService_deleteStream_result() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_deleteStream_result__isset __isset;
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- void __set_ia(const IllegalArgument& val) {
- ia = val;
- }
-
- bool operator == (const WmsAdminService_deleteStream_result & rhs) const
- {
- if (!(io == rhs.io))
- return false;
- if (!(ia == rhs.ia))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_deleteStream_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_deleteStream_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_deleteStream_presult__isset {
- _WmsAdminService_deleteStream_presult__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_deleteStream_presult__isset;
-
-class WmsAdminService_deleteStream_presult {
- public:
-
-
- virtual ~WmsAdminService_deleteStream_presult() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_deleteStream_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-
-class WmsAdminService_stream_args {
- public:
-
- WmsAdminService_stream_args() {
- }
-
- virtual ~WmsAdminService_stream_args() throw() {}
-
-
- bool operator == (const WmsAdminService_stream_args & /* rhs */) const
- {
- return true;
- }
- bool operator != (const WmsAdminService_stream_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_stream_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_stream_pargs {
- public:
-
-
- virtual ~WmsAdminService_stream_pargs() throw() {}
-
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_stream_result__isset {
- _WmsAdminService_stream_result__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_stream_result__isset;
-
-class WmsAdminService_stream_result {
- public:
-
- WmsAdminService_stream_result() {
- }
-
- virtual ~WmsAdminService_stream_result() throw() {}
-
- StreamResponse success;
- IOError io;
-
- _WmsAdminService_stream_result__isset __isset;
-
- void __set_success(const StreamResponse& val) {
- success = val;
- }
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- bool operator == (const WmsAdminService_stream_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(io == rhs.io))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_stream_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_stream_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_stream_presult__isset {
- _WmsAdminService_stream_presult__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_stream_presult__isset;
-
-class WmsAdminService_stream_presult {
- public:
-
-
- virtual ~WmsAdminService_stream_presult() throw() {}
-
- StreamResponse* success;
- IOError io;
-
- _WmsAdminService_stream_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-typedef struct _WmsAdminService_addRule_args__isset {
- _WmsAdminService_addRule_args__isset() : rule(false) {}
- bool rule;
-} _WmsAdminService_addRule_args__isset;
-
-class WmsAdminService_addRule_args {
- public:
-
- WmsAdminService_addRule_args() {
- }
-
- virtual ~WmsAdminService_addRule_args() throw() {}
-
- Rule rule;
-
- _WmsAdminService_addRule_args__isset __isset;
-
- void __set_rule(const Rule& val) {
- rule = val;
- }
-
- bool operator == (const WmsAdminService_addRule_args & rhs) const
- {
- if (!(rule == rhs.rule))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_addRule_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_addRule_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_addRule_pargs {
- public:
-
-
- virtual ~WmsAdminService_addRule_pargs() throw() {}
-
- const Rule* rule;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_addRule_result__isset {
- _WmsAdminService_addRule_result__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_addRule_result__isset;
-
-class WmsAdminService_addRule_result {
- public:
-
- WmsAdminService_addRule_result() {
- }
-
- virtual ~WmsAdminService_addRule_result() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_addRule_result__isset __isset;
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- void __set_ia(const IllegalArgument& val) {
- ia = val;
- }
-
- bool operator == (const WmsAdminService_addRule_result & rhs) const
- {
- if (!(io == rhs.io))
- return false;
- if (!(ia == rhs.ia))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_addRule_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_addRule_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_addRule_presult__isset {
- _WmsAdminService_addRule_presult__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_addRule_presult__isset;
-
-class WmsAdminService_addRule_presult {
- public:
-
-
- virtual ~WmsAdminService_addRule_presult() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_addRule_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-typedef struct _WmsAdminService_alterRule_args__isset {
- _WmsAdminService_alterRule_args__isset() : rule(false) {}
- bool rule;
-} _WmsAdminService_alterRule_args__isset;
-
-class WmsAdminService_alterRule_args {
- public:
-
- WmsAdminService_alterRule_args() {
- }
-
- virtual ~WmsAdminService_alterRule_args() throw() {}
-
- Rule rule;
-
- _WmsAdminService_alterRule_args__isset __isset;
-
- void __set_rule(const Rule& val) {
- rule = val;
- }
-
- bool operator == (const WmsAdminService_alterRule_args & rhs) const
- {
- if (!(rule == rhs.rule))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_alterRule_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_alterRule_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_alterRule_pargs {
- public:
-
-
- virtual ~WmsAdminService_alterRule_pargs() throw() {}
-
- const Rule* rule;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_alterRule_result__isset {
- _WmsAdminService_alterRule_result__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_alterRule_result__isset;
-
-class WmsAdminService_alterRule_result {
- public:
-
- WmsAdminService_alterRule_result() {
- }
-
- virtual ~WmsAdminService_alterRule_result() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_alterRule_result__isset __isset;
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- void __set_ia(const IllegalArgument& val) {
- ia = val;
- }
-
- bool operator == (const WmsAdminService_alterRule_result & rhs) const
- {
- if (!(io == rhs.io))
- return false;
- if (!(ia == rhs.ia))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_alterRule_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_alterRule_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_alterRule_presult__isset {
- _WmsAdminService_alterRule_presult__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_alterRule_presult__isset;
-
-class WmsAdminService_alterRule_presult {
- public:
-
-
- virtual ~WmsAdminService_alterRule_presult() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_alterRule_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-typedef struct _WmsAdminService_deleteRule_args__isset {
- _WmsAdminService_deleteRule_args__isset() : rule(false) {}
- bool rule;
-} _WmsAdminService_deleteRule_args__isset;
-
-class WmsAdminService_deleteRule_args {
- public:
-
- WmsAdminService_deleteRule_args() {
- }
-
- virtual ~WmsAdminService_deleteRule_args() throw() {}
-
- Rule rule;
-
- _WmsAdminService_deleteRule_args__isset __isset;
-
- void __set_rule(const Rule& val) {
- rule = val;
- }
-
- bool operator == (const WmsAdminService_deleteRule_args & rhs) const
- {
- if (!(rule == rhs.rule))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_deleteRule_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_deleteRule_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_deleteRule_pargs {
- public:
-
-
- virtual ~WmsAdminService_deleteRule_pargs() throw() {}
-
- const Rule* rule;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_deleteRule_result__isset {
- _WmsAdminService_deleteRule_result__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_deleteRule_result__isset;
-
-class WmsAdminService_deleteRule_result {
- public:
-
- WmsAdminService_deleteRule_result() {
- }
-
- virtual ~WmsAdminService_deleteRule_result() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_deleteRule_result__isset __isset;
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- void __set_ia(const IllegalArgument& val) {
- ia = val;
- }
-
- bool operator == (const WmsAdminService_deleteRule_result & rhs) const
- {
- if (!(io == rhs.io))
- return false;
- if (!(ia == rhs.ia))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_deleteRule_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_deleteRule_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_deleteRule_presult__isset {
- _WmsAdminService_deleteRule_presult__isset() : io(false), ia(false) {}
- bool io;
- bool ia;
-} _WmsAdminService_deleteRule_presult__isset;
-
-class WmsAdminService_deleteRule_presult {
- public:
-
-
- virtual ~WmsAdminService_deleteRule_presult() throw() {}
-
- IOError io;
- IllegalArgument ia;
-
- _WmsAdminService_deleteRule_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-
-class WmsAdminService_rule_args {
- public:
-
- WmsAdminService_rule_args() {
- }
-
- virtual ~WmsAdminService_rule_args() throw() {}
-
-
- bool operator == (const WmsAdminService_rule_args & /* rhs */) const
- {
- return true;
- }
- bool operator != (const WmsAdminService_rule_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_rule_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_rule_pargs {
- public:
-
-
- virtual ~WmsAdminService_rule_pargs() throw() {}
-
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_rule_result__isset {
- _WmsAdminService_rule_result__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_rule_result__isset;
-
-class WmsAdminService_rule_result {
- public:
-
- WmsAdminService_rule_result() {
- }
-
- virtual ~WmsAdminService_rule_result() throw() {}
-
- RuleResponse success;
- IOError io;
-
- _WmsAdminService_rule_result__isset __isset;
-
- void __set_success(const RuleResponse& val) {
- success = val;
- }
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- bool operator == (const WmsAdminService_rule_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(io == rhs.io))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_rule_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_rule_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_rule_presult__isset {
- _WmsAdminService_rule_presult__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_rule_presult__isset;
-
-class WmsAdminService_rule_presult {
- public:
-
-
- virtual ~WmsAdminService_rule_presult() throw() {}
-
- RuleResponse* success;
- IOError io;
-
- _WmsAdminService_rule_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-
-class WmsAdminService_workload_args {
- public:
-
- WmsAdminService_workload_args() {
- }
-
- virtual ~WmsAdminService_workload_args() throw() {}
-
-
- bool operator == (const WmsAdminService_workload_args & /* rhs */) const
- {
- return true;
- }
- bool operator != (const WmsAdminService_workload_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_workload_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsAdminService_workload_pargs {
- public:
-
-
- virtual ~WmsAdminService_workload_pargs() throw() {}
-
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_workload_result__isset {
- _WmsAdminService_workload_result__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_workload_result__isset;
-
-class WmsAdminService_workload_result {
- public:
-
- WmsAdminService_workload_result() {
- }
-
- virtual ~WmsAdminService_workload_result() throw() {}
-
- WorkloadResponse success;
- IOError io;
-
- _WmsAdminService_workload_result__isset __isset;
-
- void __set_success(const WorkloadResponse& val) {
- success = val;
- }
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- bool operator == (const WmsAdminService_workload_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(io == rhs.io))
- return false;
- return true;
- }
- bool operator != (const WmsAdminService_workload_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsAdminService_workload_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsAdminService_workload_presult__isset {
- _WmsAdminService_workload_presult__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsAdminService_workload_presult__isset;
-
-class WmsAdminService_workload_presult {
- public:
-
-
- virtual ~WmsAdminService_workload_presult() throw() {}
-
- WorkloadResponse* success;
- IOError io;
-
- _WmsAdminService_workload_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class WmsAdminServiceClient : virtual public WmsAdminServiceIf {
- public:
- WmsAdminServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) :
- piprot_(prot),
- poprot_(prot) {
- iprot_ = prot.get();
- oprot_ = prot.get();
- }
- WmsAdminServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) :
- piprot_(iprot),
- poprot_(oprot) {
- iprot_ = iprot.get();
- oprot_ = oprot.get();
- }
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
- return piprot_;
- }
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
- return poprot_;
- }
- int64_t ping(const int64_t timestamp);
- void send_ping(const int64_t timestamp);
- int64_t recv_ping();
- void addStream(const Stream& stream);
- void send_addStream(const Stream& stream);
- void recv_addStream();
- void alterStream(const Stream& stream);
- void send_alterStream(const Stream& stream);
- void recv_alterStream();
- void deleteStream(const Stream& stream);
- void send_deleteStream(const Stream& stream);
- void recv_deleteStream();
- void stream(StreamResponse& _return);
- void send_stream();
- void recv_stream(StreamResponse& _return);
- void addRule(const Rule& rule);
- void send_addRule(const Rule& rule);
- void recv_addRule();
- void alterRule(const Rule& rule);
- void send_alterRule(const Rule& rule);
- void recv_alterRule();
- void deleteRule(const Rule& rule);
- void send_deleteRule(const Rule& rule);
- void recv_deleteRule();
- void rule(RuleResponse& _return);
- void send_rule();
- void recv_rule(RuleResponse& _return);
- void workload(WorkloadResponse& _return);
- void send_workload();
- void recv_workload(WorkloadResponse& _return);
- protected:
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_;
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
- ::apache::thrift::protocol::TProtocol* iprot_;
- ::apache::thrift::protocol::TProtocol* oprot_;
-};
-
-class WmsAdminServiceProcessor : public ::apache::thrift::TDispatchProcessor {
- protected:
- boost::shared_ptr iface_;
- virtual bool dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext);
- private:
- typedef void (WmsAdminServiceProcessor::*ProcessFunction)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*);
- typedef std::map ProcessMap;
- ProcessMap processMap_;
- void process_ping(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_addStream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_alterStream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_deleteStream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_stream(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_addRule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_alterRule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_deleteRule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_rule(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_workload(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- public:
- WmsAdminServiceProcessor(boost::shared_ptr iface) :
- iface_(iface) {
- processMap_["ping"] = &WmsAdminServiceProcessor::process_ping;
- processMap_["addStream"] = &WmsAdminServiceProcessor::process_addStream;
- processMap_["alterStream"] = &WmsAdminServiceProcessor::process_alterStream;
- processMap_["deleteStream"] = &WmsAdminServiceProcessor::process_deleteStream;
- processMap_["stream"] = &WmsAdminServiceProcessor::process_stream;
- processMap_["addRule"] = &WmsAdminServiceProcessor::process_addRule;
- processMap_["alterRule"] = &WmsAdminServiceProcessor::process_alterRule;
- processMap_["deleteRule"] = &WmsAdminServiceProcessor::process_deleteRule;
- processMap_["rule"] = &WmsAdminServiceProcessor::process_rule;
- processMap_["workload"] = &WmsAdminServiceProcessor::process_workload;
- }
-
- virtual ~WmsAdminServiceProcessor() {}
-};
-
-class WmsAdminServiceProcessorFactory : public ::apache::thrift::TProcessorFactory {
- public:
- WmsAdminServiceProcessorFactory(const ::boost::shared_ptr< WmsAdminServiceIfFactory >& handlerFactory) :
- handlerFactory_(handlerFactory) {}
-
- ::boost::shared_ptr< ::apache::thrift::TProcessor > getProcessor(const ::apache::thrift::TConnectionInfo& connInfo);
-
- protected:
- ::boost::shared_ptr< WmsAdminServiceIfFactory > handlerFactory_;
-};
-
-class WmsAdminServiceMultiface : virtual public WmsAdminServiceIf {
- public:
- WmsAdminServiceMultiface(std::vector >& ifaces) : ifaces_(ifaces) {
- }
- virtual ~WmsAdminServiceMultiface() {}
- protected:
- std::vector > ifaces_;
- WmsAdminServiceMultiface() {}
- void add(boost::shared_ptr iface) {
- ifaces_.push_back(iface);
- }
- public:
- int64_t ping(const int64_t timestamp) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->ping(timestamp);
- }
- return ifaces_[i]->ping(timestamp);
- }
-
- void addStream(const Stream& stream) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->addStream(stream);
- }
- ifaces_[i]->addStream(stream);
- }
-
- void alterStream(const Stream& stream) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->alterStream(stream);
- }
- ifaces_[i]->alterStream(stream);
- }
-
- void deleteStream(const Stream& stream) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->deleteStream(stream);
- }
- ifaces_[i]->deleteStream(stream);
- }
-
- void stream(StreamResponse& _return) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->stream(_return);
- }
- ifaces_[i]->stream(_return);
- return;
- }
-
- void addRule(const Rule& rule) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->addRule(rule);
- }
- ifaces_[i]->addRule(rule);
- }
-
- void alterRule(const Rule& rule) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->alterRule(rule);
- }
- ifaces_[i]->alterRule(rule);
- }
-
- void deleteRule(const Rule& rule) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->deleteRule(rule);
- }
- ifaces_[i]->deleteRule(rule);
- }
-
- void rule(RuleResponse& _return) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->rule(_return);
- }
- ifaces_[i]->rule(_return);
- return;
- }
-
- void workload(WorkloadResponse& _return) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->workload(_return);
- }
- ifaces_[i]->workload(_return);
- return;
- }
-
-};
-
-}}} // namespace
-
-#endif
diff --git a/wms/src/main/c/generated/WmsAdminService_server.skeleton.cpp b/wms/src/main/c/generated/WmsAdminService_server.skeleton.cpp
deleted file mode 100644
index e22a64da..00000000
--- a/wms/src/main/c/generated/WmsAdminService_server.skeleton.cpp
+++ /dev/null
@@ -1,89 +0,0 @@
-// This autogenerated skeleton file illustrates how to build a server.
-// You should copy it to another filename to avoid overwriting it.
-
-#include "WmsAdminService.h"
-#include
-#include
-#include
-#include
-
-using namespace ::apache::thrift;
-using namespace ::apache::thrift::protocol;
-using namespace ::apache::thrift::transport;
-using namespace ::apache::thrift::server;
-
-using boost::shared_ptr;
-
-using namespace ::trafodion::wms::thrift;
-
-class WmsAdminServiceHandler : virtual public WmsAdminServiceIf {
- public:
- WmsAdminServiceHandler() {
- // Your initialization goes here
- }
-
- int64_t ping(const int64_t timestamp) {
- // Your implementation goes here
- printf("ping\n");
- }
-
- void addStream(const Stream& stream) {
- // Your implementation goes here
- printf("addStream\n");
- }
-
- void alterStream(const Stream& stream) {
- // Your implementation goes here
- printf("alterStream\n");
- }
-
- void deleteStream(const Stream& stream) {
- // Your implementation goes here
- printf("deleteStream\n");
- }
-
- void stream(StreamResponse& _return) {
- // Your implementation goes here
- printf("stream\n");
- }
-
- void addRule(const Rule& rule) {
- // Your implementation goes here
- printf("addRule\n");
- }
-
- void alterRule(const Rule& rule) {
- // Your implementation goes here
- printf("alterRule\n");
- }
-
- void deleteRule(const Rule& rule) {
- // Your implementation goes here
- printf("deleteRule\n");
- }
-
- void rule(RuleResponse& _return) {
- // Your implementation goes here
- printf("rule\n");
- }
-
- void workload(WorkloadResponse& _return) {
- // Your implementation goes here
- printf("workload\n");
- }
-
-};
-
-int main(int argc, char **argv) {
- int port = 9090;
- shared_ptr handler(new WmsAdminServiceHandler());
- shared_ptr processor(new WmsAdminServiceProcessor(handler));
- shared_ptr serverTransport(new TServerSocket(port));
- shared_ptr transportFactory(new TBufferedTransportFactory());
- shared_ptr protocolFactory(new TBinaryProtocolFactory());
-
- TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
- server.serve();
- return 0;
-}
-
diff --git a/wms/src/main/c/generated/WmsService.cpp b/wms/src/main/c/generated/WmsService.cpp
deleted file mode 100644
index 2952e5c2..00000000
--- a/wms/src/main/c/generated/WmsService.cpp
+++ /dev/null
@@ -1,663 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "WmsService.h"
-
-namespace trafodion { namespace wms { namespace thrift {
-
-uint32_t WmsService_ping_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->timestamp);
- this->__isset.timestamp = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsService_ping_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsService_ping_args");
-
- xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 1);
- xfer += oprot->writeI64(this->timestamp);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsService_ping_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsService_ping_pargs");
-
- xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 1);
- xfer += oprot->writeI64((*(this->timestamp)));
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsService_ping_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsService_ping_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsService_ping_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I64, 0);
- xfer += oprot->writeI64(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsService_ping_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsService_writeread_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->request.read(iprot);
- this->__isset.request = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsService_writeread_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsService_writeread_args");
-
- xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->request.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsService_writeread_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WmsService_writeread_pargs");
-
- xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->request)).write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsService_writeread_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WmsService_writeread_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("WmsService_writeread_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.io) {
- xfer += oprot->writeFieldBegin("io", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->io.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.ia) {
- xfer += oprot->writeFieldBegin("ia", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->ia.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t WmsService_writeread_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->io.read(iprot);
- this->__isset.io = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->ia.read(iprot);
- this->__isset.ia = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-int64_t WmsServiceClient::ping(const int64_t timestamp)
-{
- send_ping(timestamp);
- return recv_ping();
-}
-
-void WmsServiceClient::send_ping(const int64_t timestamp)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("ping", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsService_ping_pargs args;
- args.timestamp = ×tamp;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-int64_t WmsServiceClient::recv_ping()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("ping") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- int64_t _return;
- WmsService_ping_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- return _return;
- }
- if (result.__isset.io) {
- throw result.io;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "ping failed: unknown result");
-}
-
-void WmsServiceClient::writeread(Response& _return, const Request& request)
-{
- send_writeread(request);
- recv_writeread(_return);
-}
-
-void WmsServiceClient::send_writeread(const Request& request)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("writeread", ::apache::thrift::protocol::T_CALL, cseqid);
-
- WmsService_writeread_pargs args;
- args.request = &request;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
-
-void WmsServiceClient::recv_writeread(Response& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("writeread") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- WmsService_writeread_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "writeread failed: unknown result");
-}
-
-bool WmsServiceProcessor::dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext) {
- ProcessMap::iterator pfn;
- pfn = processMap_.find(fname);
- if (pfn == processMap_.end()) {
- iprot->skip(::apache::thrift::protocol::T_STRUCT);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
- ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::UNKNOWN_METHOD, "Invalid method name: '"+fname+"'");
- oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return true;
- }
- (this->*(pfn->second))(seqid, iprot, oprot, callContext);
- return true;
-}
-
-void WmsServiceProcessor::process_ping(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsService.ping", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsService.ping");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsService.ping");
- }
-
- WmsService_ping_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsService.ping", bytes);
- }
-
- WmsService_ping_result result;
- try {
- result.success = iface_->ping(args.timestamp);
- result.__isset.success = true;
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsService.ping");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("ping", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsService.ping");
- }
-
- oprot->writeMessageBegin("ping", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsService.ping", bytes);
- }
-}
-
-void WmsServiceProcessor::process_writeread(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
-{
- void* ctx = NULL;
- if (this->eventHandler_.get() != NULL) {
- ctx = this->eventHandler_->getContext("WmsService.writeread", callContext);
- }
- ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "WmsService.writeread");
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preRead(ctx, "WmsService.writeread");
- }
-
- WmsService_writeread_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- uint32_t bytes = iprot->getTransport()->readEnd();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postRead(ctx, "WmsService.writeread", bytes);
- }
-
- WmsService_writeread_result result;
- try {
- iface_->writeread(result.success, args.request);
- result.__isset.success = true;
- } catch (IOError &io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument &ia) {
- result.ia = ia;
- result.__isset.ia = true;
- } catch (const std::exception& e) {
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->handlerError(ctx, "WmsService.writeread");
- }
-
- ::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("writeread", ::apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
- return;
- }
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->preWrite(ctx, "WmsService.writeread");
- }
-
- oprot->writeMessageBegin("writeread", ::apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- bytes = oprot->getTransport()->writeEnd();
- oprot->getTransport()->flush();
-
- if (this->eventHandler_.get() != NULL) {
- this->eventHandler_->postWrite(ctx, "WmsService.writeread", bytes);
- }
-}
-
-::boost::shared_ptr< ::apache::thrift::TProcessor > WmsServiceProcessorFactory::getProcessor(const ::apache::thrift::TConnectionInfo& connInfo) {
- ::apache::thrift::ReleaseHandler< WmsServiceIfFactory > cleanup(handlerFactory_);
- ::boost::shared_ptr< WmsServiceIf > handler(handlerFactory_->getHandler(connInfo), cleanup);
- ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new WmsServiceProcessor(handler));
- return processor;
-}
-}}} // namespace
-
diff --git a/wms/src/main/c/generated/WmsService.h b/wms/src/main/c/generated/WmsService.h
deleted file mode 100644
index 43dbf8e4..00000000
--- a/wms/src/main/c/generated/WmsService.h
+++ /dev/null
@@ -1,403 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef WmsService_H
-#define WmsService_H
-
-#include
-#include "WmsService_types.h"
-
-namespace trafodion { namespace wms { namespace thrift {
-
-class WmsServiceIf {
- public:
- virtual ~WmsServiceIf() {}
- virtual int64_t ping(const int64_t timestamp) = 0;
- virtual void writeread(Response& _return, const Request& request) = 0;
-};
-
-class WmsServiceIfFactory {
- public:
- typedef WmsServiceIf Handler;
-
- virtual ~WmsServiceIfFactory() {}
-
- virtual WmsServiceIf* getHandler(const ::apache::thrift::TConnectionInfo& connInfo) = 0;
- virtual void releaseHandler(WmsServiceIf* /* handler */) = 0;
-};
-
-class WmsServiceIfSingletonFactory : virtual public WmsServiceIfFactory {
- public:
- WmsServiceIfSingletonFactory(const boost::shared_ptr& iface) : iface_(iface) {}
- virtual ~WmsServiceIfSingletonFactory() {}
-
- virtual WmsServiceIf* getHandler(const ::apache::thrift::TConnectionInfo&) {
- return iface_.get();
- }
- virtual void releaseHandler(WmsServiceIf* /* handler */) {}
-
- protected:
- boost::shared_ptr iface_;
-};
-
-class WmsServiceNull : virtual public WmsServiceIf {
- public:
- virtual ~WmsServiceNull() {}
- int64_t ping(const int64_t /* timestamp */) {
- int64_t _return = 0;
- return _return;
- }
- void writeread(Response& /* _return */, const Request& /* request */) {
- return;
- }
-};
-
-typedef struct _WmsService_ping_args__isset {
- _WmsService_ping_args__isset() : timestamp(false) {}
- bool timestamp;
-} _WmsService_ping_args__isset;
-
-class WmsService_ping_args {
- public:
-
- WmsService_ping_args() : timestamp(0) {
- }
-
- virtual ~WmsService_ping_args() throw() {}
-
- int64_t timestamp;
-
- _WmsService_ping_args__isset __isset;
-
- void __set_timestamp(const int64_t val) {
- timestamp = val;
- }
-
- bool operator == (const WmsService_ping_args & rhs) const
- {
- if (!(timestamp == rhs.timestamp))
- return false;
- return true;
- }
- bool operator != (const WmsService_ping_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsService_ping_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsService_ping_pargs {
- public:
-
-
- virtual ~WmsService_ping_pargs() throw() {}
-
- const int64_t* timestamp;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsService_ping_result__isset {
- _WmsService_ping_result__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsService_ping_result__isset;
-
-class WmsService_ping_result {
- public:
-
- WmsService_ping_result() : success(0) {
- }
-
- virtual ~WmsService_ping_result() throw() {}
-
- int64_t success;
- IOError io;
-
- _WmsService_ping_result__isset __isset;
-
- void __set_success(const int64_t val) {
- success = val;
- }
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- bool operator == (const WmsService_ping_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(io == rhs.io))
- return false;
- return true;
- }
- bool operator != (const WmsService_ping_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsService_ping_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsService_ping_presult__isset {
- _WmsService_ping_presult__isset() : success(false), io(false) {}
- bool success;
- bool io;
-} _WmsService_ping_presult__isset;
-
-class WmsService_ping_presult {
- public:
-
-
- virtual ~WmsService_ping_presult() throw() {}
-
- int64_t* success;
- IOError io;
-
- _WmsService_ping_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-typedef struct _WmsService_writeread_args__isset {
- _WmsService_writeread_args__isset() : request(false) {}
- bool request;
-} _WmsService_writeread_args__isset;
-
-class WmsService_writeread_args {
- public:
-
- WmsService_writeread_args() {
- }
-
- virtual ~WmsService_writeread_args() throw() {}
-
- Request request;
-
- _WmsService_writeread_args__isset __isset;
-
- void __set_request(const Request& val) {
- request = val;
- }
-
- bool operator == (const WmsService_writeread_args & rhs) const
- {
- if (!(request == rhs.request))
- return false;
- return true;
- }
- bool operator != (const WmsService_writeread_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsService_writeread_args & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-
-class WmsService_writeread_pargs {
- public:
-
-
- virtual ~WmsService_writeread_pargs() throw() {}
-
- const Request* request;
-
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsService_writeread_result__isset {
- _WmsService_writeread_result__isset() : success(false), io(false), ia(false) {}
- bool success;
- bool io;
- bool ia;
-} _WmsService_writeread_result__isset;
-
-class WmsService_writeread_result {
- public:
-
- WmsService_writeread_result() {
- }
-
- virtual ~WmsService_writeread_result() throw() {}
-
- Response success;
- IOError io;
- IllegalArgument ia;
-
- _WmsService_writeread_result__isset __isset;
-
- void __set_success(const Response& val) {
- success = val;
- }
-
- void __set_io(const IOError& val) {
- io = val;
- }
-
- void __set_ia(const IllegalArgument& val) {
- ia = val;
- }
-
- bool operator == (const WmsService_writeread_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(io == rhs.io))
- return false;
- if (!(ia == rhs.ia))
- return false;
- return true;
- }
- bool operator != (const WmsService_writeread_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WmsService_writeread_result & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-typedef struct _WmsService_writeread_presult__isset {
- _WmsService_writeread_presult__isset() : success(false), io(false), ia(false) {}
- bool success;
- bool io;
- bool ia;
-} _WmsService_writeread_presult__isset;
-
-class WmsService_writeread_presult {
- public:
-
-
- virtual ~WmsService_writeread_presult() throw() {}
-
- Response* success;
- IOError io;
- IllegalArgument ia;
-
- _WmsService_writeread_presult__isset __isset;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class WmsServiceClient : virtual public WmsServiceIf {
- public:
- WmsServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) :
- piprot_(prot),
- poprot_(prot) {
- iprot_ = prot.get();
- oprot_ = prot.get();
- }
- WmsServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) :
- piprot_(iprot),
- poprot_(oprot) {
- iprot_ = iprot.get();
- oprot_ = oprot.get();
- }
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
- return piprot_;
- }
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
- return poprot_;
- }
- int64_t ping(const int64_t timestamp);
- void send_ping(const int64_t timestamp);
- int64_t recv_ping();
- void writeread(Response& _return, const Request& request);
- void send_writeread(const Request& request);
- void recv_writeread(Response& _return);
- protected:
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_;
- boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
- ::apache::thrift::protocol::TProtocol* iprot_;
- ::apache::thrift::protocol::TProtocol* oprot_;
-};
-
-class WmsServiceProcessor : public ::apache::thrift::TDispatchProcessor {
- protected:
- boost::shared_ptr iface_;
- virtual bool dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext);
- private:
- typedef void (WmsServiceProcessor::*ProcessFunction)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*);
- typedef std::map ProcessMap;
- ProcessMap processMap_;
- void process_ping(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- void process_writeread(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
- public:
- WmsServiceProcessor(boost::shared_ptr iface) :
- iface_(iface) {
- processMap_["ping"] = &WmsServiceProcessor::process_ping;
- processMap_["writeread"] = &WmsServiceProcessor::process_writeread;
- }
-
- virtual ~WmsServiceProcessor() {}
-};
-
-class WmsServiceProcessorFactory : public ::apache::thrift::TProcessorFactory {
- public:
- WmsServiceProcessorFactory(const ::boost::shared_ptr< WmsServiceIfFactory >& handlerFactory) :
- handlerFactory_(handlerFactory) {}
-
- ::boost::shared_ptr< ::apache::thrift::TProcessor > getProcessor(const ::apache::thrift::TConnectionInfo& connInfo);
-
- protected:
- ::boost::shared_ptr< WmsServiceIfFactory > handlerFactory_;
-};
-
-class WmsServiceMultiface : virtual public WmsServiceIf {
- public:
- WmsServiceMultiface(std::vector >& ifaces) : ifaces_(ifaces) {
- }
- virtual ~WmsServiceMultiface() {}
- protected:
- std::vector > ifaces_;
- WmsServiceMultiface() {}
- void add(boost::shared_ptr iface) {
- ifaces_.push_back(iface);
- }
- public:
- int64_t ping(const int64_t timestamp) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->ping(timestamp);
- }
- return ifaces_[i]->ping(timestamp);
- }
-
- void writeread(Response& _return, const Request& request) {
- size_t sz = ifaces_.size();
- size_t i = 0;
- for (; i < (sz - 1); ++i) {
- ifaces_[i]->writeread(_return, request);
- }
- ifaces_[i]->writeread(_return, request);
- return;
- }
-
-};
-
-}}} // namespace
-
-#endif
diff --git a/wms/src/main/c/generated/WmsService_constants.cpp b/wms/src/main/c/generated/WmsService_constants.cpp
deleted file mode 100644
index bdda30ff..00000000
--- a/wms/src/main/c/generated/WmsService_constants.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "WmsService_constants.h"
-
-namespace trafodion { namespace wms { namespace thrift {
-
-const WmsServiceConstants g_WmsService_constants;
-
-WmsServiceConstants::WmsServiceConstants() {
-}
-
-}}} // namespace
-
diff --git a/wms/src/main/c/generated/WmsService_constants.h b/wms/src/main/c/generated/WmsService_constants.h
deleted file mode 100644
index bc3bc675..00000000
--- a/wms/src/main/c/generated/WmsService_constants.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef WmsService_CONSTANTS_H
-#define WmsService_CONSTANTS_H
-
-#include "WmsService_types.h"
-
-namespace trafodion { namespace wms { namespace thrift {
-
-class WmsServiceConstants {
- public:
- WmsServiceConstants();
-
-};
-
-extern const WmsServiceConstants g_WmsService_constants;
-
-}}} // namespace
-
-#endif
diff --git a/wms/src/main/c/generated/WmsService_server.skeleton.cpp b/wms/src/main/c/generated/WmsService_server.skeleton.cpp
deleted file mode 100644
index d884ba24..00000000
--- a/wms/src/main/c/generated/WmsService_server.skeleton.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-// This autogenerated skeleton file illustrates how to build a server.
-// You should copy it to another filename to avoid overwriting it.
-
-#include "WmsService.h"
-#include
-#include
-#include
-#include
-
-using namespace ::apache::thrift;
-using namespace ::apache::thrift::protocol;
-using namespace ::apache::thrift::transport;
-using namespace ::apache::thrift::server;
-
-using boost::shared_ptr;
-
-using namespace ::trafodion::wms::thrift;
-
-class WmsServiceHandler : virtual public WmsServiceIf {
- public:
- WmsServiceHandler() {
- // Your initialization goes here
- }
-
- int64_t ping(const int64_t timestamp) {
- // Your implementation goes here
- printf("ping\n");
- }
-
- void writeread(Response& _return, const Request& request) {
- // Your implementation goes here
- printf("writeread\n");
- }
-
-};
-
-int main(int argc, char **argv) {
- int port = 9090;
- shared_ptr handler(new WmsServiceHandler());
- shared_ptr processor(new WmsServiceProcessor(handler));
- shared_ptr serverTransport(new TServerSocket(port));
- shared_ptr transportFactory(new TBufferedTransportFactory());
- shared_ptr protocolFactory(new TBinaryProtocolFactory());
-
- TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
- server.serve();
- return 0;
-}
-
diff --git a/wms/src/main/c/generated/WmsService_types.cpp b/wms/src/main/c/generated/WmsService_types.cpp
deleted file mode 100644
index e467fe85..00000000
--- a/wms/src/main/c/generated/WmsService_types.cpp
+++ /dev/null
@@ -1,1134 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "WmsService_types.h"
-
-#include
-
-namespace trafodion { namespace wms { namespace thrift {
-
-int _kOperationValues[] = {
- Operation::OPERATION_BEGIN,
- Operation::OPERATION_UPDATE,
- Operation::OPERATION_END,
- Operation::OPERATION_UPDATE_PARENT_ID,
- Operation::OPERATION_CANCEL_CHILDREN
-};
-const char* _kOperationNames[] = {
- "OPERATION_BEGIN",
- "OPERATION_UPDATE",
- "OPERATION_END",
- "OPERATION_UPDATE_PARENT_ID",
- "OPERATION_CANCEL_CHILDREN"
-};
-const std::map _Operation_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _kOperationValues, _kOperationNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
-
-int _kActionValues[] = {
- Action::ACTION_CONTINUE,
- Action::ACTION_REJECT,
- Action::ACTION_CANCEL,
- Action::ACTION_KILL,
- Action::ACTION_WARNING,
- Action::ACTION_PRIORITY_LOW,
- Action::ACTION_PRIORITY_MEDIUM,
- Action::ACTION_PRIORITY_HIGH
-};
-const char* _kActionNames[] = {
- "ACTION_CONTINUE",
- "ACTION_REJECT",
- "ACTION_CANCEL",
- "ACTION_KILL",
- "ACTION_WARNING",
- "ACTION_PRIORITY_LOW",
- "ACTION_PRIORITY_MEDIUM",
- "ACTION_PRIORITY_HIGH"
-};
-const std::map _Action_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kActionValues, _kActionNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
-
-const char* KeyValue::ascii_fingerprint = "8030FA0B1A7FF7D870C593DE44E90298";
-const uint8_t KeyValue::binary_fingerprint[16] = {0x80,0x30,0xFA,0x0B,0x1A,0x7F,0xF7,0xD8,0x70,0xC5,0x93,0xDE,0x44,0xE9,0x02,0x98};
-
-uint32_t KeyValue::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->boolValue);
- this->__isset.boolValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_BYTE) {
- xfer += iprot->readByte(this->byteValue);
- this->__isset.byteValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->shortValue);
- this->__isset.shortValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_I32) {
- xfer += iprot->readI32(this->intValue);
- this->__isset.intValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 5:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->longValue);
- this->__isset.longValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 6:
- if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
- xfer += iprot->readDouble(this->floatValue);
- this->__isset.floatValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 7:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->stringValue);
- this->__isset.stringValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t KeyValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("KeyValue");
-
- if (this->__isset.boolValue) {
- xfer += oprot->writeFieldBegin("boolValue", ::apache::thrift::protocol::T_BOOL, 1);
- xfer += oprot->writeBool(this->boolValue);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.byteValue) {
- xfer += oprot->writeFieldBegin("byteValue", ::apache::thrift::protocol::T_BYTE, 2);
- xfer += oprot->writeByte(this->byteValue);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.shortValue) {
- xfer += oprot->writeFieldBegin("shortValue", ::apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->shortValue);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.intValue) {
- xfer += oprot->writeFieldBegin("intValue", ::apache::thrift::protocol::T_I32, 4);
- xfer += oprot->writeI32(this->intValue);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.longValue) {
- xfer += oprot->writeFieldBegin("longValue", ::apache::thrift::protocol::T_I64, 5);
- xfer += oprot->writeI64(this->longValue);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.floatValue) {
- xfer += oprot->writeFieldBegin("floatValue", ::apache::thrift::protocol::T_DOUBLE, 6);
- xfer += oprot->writeDouble(this->floatValue);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.stringValue) {
- xfer += oprot->writeFieldBegin("stringValue", ::apache::thrift::protocol::T_STRING, 7);
- xfer += oprot->writeString(this->stringValue);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(KeyValue &a, KeyValue &b) {
- using ::std::swap;
- swap(a.boolValue, b.boolValue);
- swap(a.byteValue, b.byteValue);
- swap(a.shortValue, b.shortValue);
- swap(a.intValue, b.intValue);
- swap(a.longValue, b.longValue);
- swap(a.floatValue, b.floatValue);
- swap(a.stringValue, b.stringValue);
- swap(a.__isset, b.__isset);
-}
-
-const char* Data::ascii_fingerprint = "3744E9C024E14DD4F9ECA86B921D240A";
-const uint8_t Data::binary_fingerprint[16] = {0x37,0x44,0xE9,0xC0,0x24,0xE1,0x4D,0xD4,0xF9,0xEC,0xA8,0x6B,0x92,0x1D,0x24,0x0A};
-
-uint32_t Data::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_MAP) {
- {
- this->keyValues.clear();
- uint32_t _size0;
- ::apache::thrift::protocol::TType _ktype1;
- ::apache::thrift::protocol::TType _vtype2;
- xfer += iprot->readMapBegin(_ktype1, _vtype2, _size0);
- uint32_t _i4;
- for (_i4 = 0; _i4 < _size0; ++_i4)
- {
- std::string _key5;
- xfer += iprot->readString(_key5);
- KeyValue& _val6 = this->keyValues[_key5];
- xfer += _val6.read(iprot);
- }
- xfer += iprot->readMapEnd();
- }
- this->__isset.keyValues = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t Data::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("Data");
-
- if (this->__isset.keyValues) {
- xfer += oprot->writeFieldBegin("keyValues", ::apache::thrift::protocol::T_MAP, 1);
- {
- xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->keyValues.size()));
- std::map ::const_iterator _iter7;
- for (_iter7 = this->keyValues.begin(); _iter7 != this->keyValues.end(); ++_iter7)
- {
- xfer += oprot->writeString(_iter7->first);
- xfer += _iter7->second.write(oprot);
- }
- xfer += oprot->writeMapEnd();
- }
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(Data &a, Data &b) {
- using ::std::swap;
- swap(a.keyValues, b.keyValues);
- swap(a.__isset, b.__isset);
-}
-
-const char* Header::ascii_fingerprint = "CE62EB594CA7F8C2ABE78957866085E9";
-const uint8_t Header::binary_fingerprint[16] = {0xCE,0x62,0xEB,0x59,0x4C,0xA7,0xF8,0xC2,0xAB,0xE7,0x89,0x57,0x86,0x60,0x85,0xE9};
-
-uint32_t Header::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->version);
- this->__isset.version = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->clientIpAddress);
- this->__isset.clientIpAddress = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->clientTimestamp);
- this->__isset.clientTimestamp = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->clientUserName);
- this->__isset.clientUserName = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 5:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->clientApplication);
- this->__isset.clientApplication = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 6:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->serverLastUpdated);
- this->__isset.serverLastUpdated = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t Header::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("Header");
-
- xfer += oprot->writeFieldBegin("version", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->version);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("clientIpAddress", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->clientIpAddress);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("clientTimestamp", ::apache::thrift::protocol::T_I64, 3);
- xfer += oprot->writeI64(this->clientTimestamp);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("clientUserName", ::apache::thrift::protocol::T_STRING, 4);
- xfer += oprot->writeString(this->clientUserName);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("clientApplication", ::apache::thrift::protocol::T_STRING, 5);
- xfer += oprot->writeString(this->clientApplication);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("serverLastUpdated", ::apache::thrift::protocol::T_I64, 6);
- xfer += oprot->writeI64(this->serverLastUpdated);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(Header &a, Header &b) {
- using ::std::swap;
- swap(a.version, b.version);
- swap(a.clientIpAddress, b.clientIpAddress);
- swap(a.clientTimestamp, b.clientTimestamp);
- swap(a.clientUserName, b.clientUserName);
- swap(a.clientApplication, b.clientApplication);
- swap(a.serverLastUpdated, b.serverLastUpdated);
- swap(a.__isset, b.__isset);
-}
-
-const char* Request::ascii_fingerprint = "252EE71CE3D737D84E12CF91BC47093B";
-const uint8_t Request::binary_fingerprint[16] = {0x25,0x2E,0xE7,0x1C,0xE3,0xD7,0x37,0xD8,0x4E,0x12,0xCF,0x91,0xBC,0x47,0x09,0x3B};
-
-uint32_t Request::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->header.read(iprot);
- this->__isset.header = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->data.read(iprot);
- this->__isset.data = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t Request::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("Request");
-
- xfer += oprot->writeFieldBegin("header", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->header.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->data.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(Request &a, Request &b) {
- using ::std::swap;
- swap(a.header, b.header);
- swap(a.data, b.data);
- swap(a.__isset, b.__isset);
-}
-
-const char* Response::ascii_fingerprint = "252EE71CE3D737D84E12CF91BC47093B";
-const uint8_t Response::binary_fingerprint[16] = {0x25,0x2E,0xE7,0x1C,0xE3,0xD7,0x37,0xD8,0x4E,0x12,0xCF,0x91,0xBC,0x47,0x09,0x3B};
-
-uint32_t Response::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->header.read(iprot);
- this->__isset.header = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->data.read(iprot);
- this->__isset.data = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t Response::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("Response");
-
- xfer += oprot->writeFieldBegin("header", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->header.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->data.write(oprot);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(Response &a, Response &b) {
- using ::std::swap;
- swap(a.header, b.header);
- swap(a.data, b.data);
- swap(a.__isset, b.__isset);
-}
-
-const char* Stream::ascii_fingerprint = "5F9965D46A4F3845985AC0F9B81C3C69";
-const uint8_t Stream::binary_fingerprint[16] = {0x5F,0x99,0x65,0xD4,0x6A,0x4F,0x38,0x45,0x98,0x5A,0xC0,0xF9,0xB8,0x1C,0x3C,0x69};
-
-uint32_t Stream::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->value);
- this->__isset.value = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->comment);
- this->__isset.comment = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->timestamp);
- this->__isset.timestamp = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t Stream::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("Stream");
-
- xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->value);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("comment", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->comment);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 4);
- xfer += oprot->writeI64(this->timestamp);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(Stream &a, Stream &b) {
- using ::std::swap;
- swap(a.name, b.name);
- swap(a.value, b.value);
- swap(a.comment, b.comment);
- swap(a.timestamp, b.timestamp);
- swap(a.__isset, b.__isset);
-}
-
-const char* StreamResponse::ascii_fingerprint = "DDDA8F891CEFA6BAEE9C7096D0B1642F";
-const uint8_t StreamResponse::binary_fingerprint[16] = {0xDD,0xDA,0x8F,0x89,0x1C,0xEF,0xA6,0xBA,0xEE,0x9C,0x70,0x96,0xD0,0xB1,0x64,0x2F};
-
-uint32_t StreamResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->streamList.clear();
- uint32_t _size8;
- ::apache::thrift::protocol::TType _etype11;
- xfer += iprot->readListBegin(_etype11, _size8);
- this->streamList.resize(_size8);
- uint32_t _i12;
- for (_i12 = 0; _i12 < _size8; ++_i12)
- {
- xfer += this->streamList[_i12].read(iprot);
- }
- xfer += iprot->readListEnd();
- }
- this->__isset.streamList = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t StreamResponse::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("StreamResponse");
-
- xfer += oprot->writeFieldBegin("streamList", ::apache::thrift::protocol::T_LIST, 1);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->streamList.size()));
- std::vector ::const_iterator _iter13;
- for (_iter13 = this->streamList.begin(); _iter13 != this->streamList.end(); ++_iter13)
- {
- xfer += (*_iter13).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(StreamResponse &a, StreamResponse &b) {
- using ::std::swap;
- swap(a.streamList, b.streamList);
- swap(a.__isset, b.__isset);
-}
-
-const char* Rule::ascii_fingerprint = "5F9965D46A4F3845985AC0F9B81C3C69";
-const uint8_t Rule::binary_fingerprint[16] = {0x5F,0x99,0x65,0xD4,0x6A,0x4F,0x38,0x45,0x98,0x5A,0xC0,0xF9,0xB8,0x1C,0x3C,0x69};
-
-uint32_t Rule::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->value);
- this->__isset.value = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->comment);
- this->__isset.comment = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->timestamp);
- this->__isset.timestamp = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t Rule::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("Rule");
-
- xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->value);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("comment", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->comment);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 4);
- xfer += oprot->writeI64(this->timestamp);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(Rule &a, Rule &b) {
- using ::std::swap;
- swap(a.name, b.name);
- swap(a.value, b.value);
- swap(a.comment, b.comment);
- swap(a.timestamp, b.timestamp);
- swap(a.__isset, b.__isset);
-}
-
-const char* RuleResponse::ascii_fingerprint = "DDDA8F891CEFA6BAEE9C7096D0B1642F";
-const uint8_t RuleResponse::binary_fingerprint[16] = {0xDD,0xDA,0x8F,0x89,0x1C,0xEF,0xA6,0xBA,0xEE,0x9C,0x70,0x96,0xD0,0xB1,0x64,0x2F};
-
-uint32_t RuleResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->ruleList.clear();
- uint32_t _size14;
- ::apache::thrift::protocol::TType _etype17;
- xfer += iprot->readListBegin(_etype17, _size14);
- this->ruleList.resize(_size14);
- uint32_t _i18;
- for (_i18 = 0; _i18 < _size14; ++_i18)
- {
- xfer += this->ruleList[_i18].read(iprot);
- }
- xfer += iprot->readListEnd();
- }
- this->__isset.ruleList = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t RuleResponse::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("RuleResponse");
-
- xfer += oprot->writeFieldBegin("ruleList", ::apache::thrift::protocol::T_LIST, 1);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->ruleList.size()));
- std::vector ::const_iterator _iter19;
- for (_iter19 = this->ruleList.begin(); _iter19 != this->ruleList.end(); ++_iter19)
- {
- xfer += (*_iter19).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(RuleResponse &a, RuleResponse &b) {
- using ::std::swap;
- swap(a.ruleList, b.ruleList);
- swap(a.__isset, b.__isset);
-}
-
-const char* WorkloadResponse::ascii_fingerprint = "D0D9EE8C6C26E09B1A4E0CDB1751C878";
-const uint8_t WorkloadResponse::binary_fingerprint[16] = {0xD0,0xD9,0xEE,0x8C,0x6C,0x26,0xE0,0x9B,0x1A,0x4E,0x0C,0xDB,0x17,0x51,0xC8,0x78};
-
-uint32_t WorkloadResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->workloadList.clear();
- uint32_t _size20;
- ::apache::thrift::protocol::TType _etype23;
- xfer += iprot->readListBegin(_etype23, _size20);
- this->workloadList.resize(_size20);
- uint32_t _i24;
- for (_i24 = 0; _i24 < _size20; ++_i24)
- {
- xfer += this->workloadList[_i24].read(iprot);
- }
- xfer += iprot->readListEnd();
- }
- this->__isset.workloadList = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t WorkloadResponse::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("WorkloadResponse");
-
- xfer += oprot->writeFieldBegin("workloadList", ::apache::thrift::protocol::T_LIST, 1);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->workloadList.size()));
- std::vector ::const_iterator _iter25;
- for (_iter25 = this->workloadList.begin(); _iter25 != this->workloadList.end(); ++_iter25)
- {
- xfer += (*_iter25).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(WorkloadResponse &a, WorkloadResponse &b) {
- using ::std::swap;
- swap(a.workloadList, b.workloadList);
- swap(a.__isset, b.__isset);
-}
-
-const char* IOError::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1";
-const uint8_t IOError::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
-
-uint32_t IOError::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->message);
- this->__isset.message = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t IOError::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("IOError");
-
- xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->message);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(IOError &a, IOError &b) {
- using ::std::swap;
- swap(a.message, b.message);
- swap(a.__isset, b.__isset);
-}
-
-const char* IllegalArgument::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1";
-const uint8_t IllegalArgument::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
-
-uint32_t IllegalArgument::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->message);
- this->__isset.message = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t IllegalArgument::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("IllegalArgument");
-
- xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->message);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(IllegalArgument &a, IllegalArgument &b) {
- using ::std::swap;
- swap(a.message, b.message);
- swap(a.__isset, b.__isset);
-}
-
-}}} // namespace
diff --git a/wms/src/main/c/generated/WmsService_types.h b/wms/src/main/c/generated/WmsService_types.h
deleted file mode 100644
index d6768764..00000000
--- a/wms/src/main/c/generated/WmsService_types.h
+++ /dev/null
@@ -1,740 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef WmsService_TYPES_H
-#define WmsService_TYPES_H
-
-#include
-#include
-#include
-#include
-
-
-
-namespace trafodion { namespace wms { namespace thrift {
-
-struct Operation {
- enum type {
- OPERATION_BEGIN = 100,
- OPERATION_UPDATE = 101,
- OPERATION_END = 102,
- OPERATION_UPDATE_PARENT_ID = 103,
- OPERATION_CANCEL_CHILDREN = 104
- };
-};
-
-extern const std::map _Operation_VALUES_TO_NAMES;
-
-struct Action {
- enum type {
- ACTION_CONTINUE = 200,
- ACTION_REJECT = 201,
- ACTION_CANCEL = 202,
- ACTION_KILL = 203,
- ACTION_WARNING = 204,
- ACTION_PRIORITY_LOW = 205,
- ACTION_PRIORITY_MEDIUM = 206,
- ACTION_PRIORITY_HIGH = 207
- };
-};
-
-extern const std::map _Action_VALUES_TO_NAMES;
-
-typedef struct _KeyValue__isset {
- _KeyValue__isset() : boolValue(false), byteValue(false), shortValue(false), intValue(false), longValue(false), floatValue(false), stringValue(false) {}
- bool boolValue;
- bool byteValue;
- bool shortValue;
- bool intValue;
- bool longValue;
- bool floatValue;
- bool stringValue;
-} _KeyValue__isset;
-
-class KeyValue {
- public:
-
- static const char* ascii_fingerprint; // = "8030FA0B1A7FF7D870C593DE44E90298";
- static const uint8_t binary_fingerprint[16]; // = {0x80,0x30,0xFA,0x0B,0x1A,0x7F,0xF7,0xD8,0x70,0xC5,0x93,0xDE,0x44,0xE9,0x02,0x98};
-
- KeyValue() : boolValue(0), byteValue(0), shortValue(0), intValue(0), longValue(0), floatValue(0), stringValue() {
- }
-
- virtual ~KeyValue() throw() {}
-
- bool boolValue;
- int8_t byteValue;
- int16_t shortValue;
- int32_t intValue;
- int64_t longValue;
- double floatValue;
- std::string stringValue;
-
- _KeyValue__isset __isset;
-
- void __set_boolValue(const bool val) {
- boolValue = val;
- __isset.boolValue = true;
- }
-
- void __set_byteValue(const int8_t val) {
- byteValue = val;
- __isset.byteValue = true;
- }
-
- void __set_shortValue(const int16_t val) {
- shortValue = val;
- __isset.shortValue = true;
- }
-
- void __set_intValue(const int32_t val) {
- intValue = val;
- __isset.intValue = true;
- }
-
- void __set_longValue(const int64_t val) {
- longValue = val;
- __isset.longValue = true;
- }
-
- void __set_floatValue(const double val) {
- floatValue = val;
- __isset.floatValue = true;
- }
-
- void __set_stringValue(const std::string& val) {
- stringValue = val;
- __isset.stringValue = true;
- }
-
- bool operator == (const KeyValue & rhs) const
- {
- if (__isset.boolValue != rhs.__isset.boolValue)
- return false;
- else if (__isset.boolValue && !(boolValue == rhs.boolValue))
- return false;
- if (__isset.byteValue != rhs.__isset.byteValue)
- return false;
- else if (__isset.byteValue && !(byteValue == rhs.byteValue))
- return false;
- if (__isset.shortValue != rhs.__isset.shortValue)
- return false;
- else if (__isset.shortValue && !(shortValue == rhs.shortValue))
- return false;
- if (__isset.intValue != rhs.__isset.intValue)
- return false;
- else if (__isset.intValue && !(intValue == rhs.intValue))
- return false;
- if (__isset.longValue != rhs.__isset.longValue)
- return false;
- else if (__isset.longValue && !(longValue == rhs.longValue))
- return false;
- if (__isset.floatValue != rhs.__isset.floatValue)
- return false;
- else if (__isset.floatValue && !(floatValue == rhs.floatValue))
- return false;
- if (__isset.stringValue != rhs.__isset.stringValue)
- return false;
- else if (__isset.stringValue && !(stringValue == rhs.stringValue))
- return false;
- return true;
- }
- bool operator != (const KeyValue &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const KeyValue & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(KeyValue &a, KeyValue &b);
-
-typedef struct _Data__isset {
- _Data__isset() : keyValues(false) {}
- bool keyValues;
-} _Data__isset;
-
-class Data {
- public:
-
- static const char* ascii_fingerprint; // = "3744E9C024E14DD4F9ECA86B921D240A";
- static const uint8_t binary_fingerprint[16]; // = {0x37,0x44,0xE9,0xC0,0x24,0xE1,0x4D,0xD4,0xF9,0xEC,0xA8,0x6B,0x92,0x1D,0x24,0x0A};
-
- Data() {
- }
-
- virtual ~Data() throw() {}
-
- std::map keyValues;
-
- _Data__isset __isset;
-
- void __set_keyValues(const std::map & val) {
- keyValues = val;
- __isset.keyValues = true;
- }
-
- bool operator == (const Data & rhs) const
- {
- if (__isset.keyValues != rhs.__isset.keyValues)
- return false;
- else if (__isset.keyValues && !(keyValues == rhs.keyValues))
- return false;
- return true;
- }
- bool operator != (const Data &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const Data & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(Data &a, Data &b);
-
-typedef struct _Header__isset {
- _Header__isset() : version(false), clientIpAddress(false), clientTimestamp(false), clientUserName(false), clientApplication(false), serverLastUpdated(false) {}
- bool version;
- bool clientIpAddress;
- bool clientTimestamp;
- bool clientUserName;
- bool clientApplication;
- bool serverLastUpdated;
-} _Header__isset;
-
-class Header {
- public:
-
- static const char* ascii_fingerprint; // = "CE62EB594CA7F8C2ABE78957866085E9";
- static const uint8_t binary_fingerprint[16]; // = {0xCE,0x62,0xEB,0x59,0x4C,0xA7,0xF8,0xC2,0xAB,0xE7,0x89,0x57,0x86,0x60,0x85,0xE9};
-
- Header() : version(), clientIpAddress(), clientTimestamp(0), clientUserName(), clientApplication(), serverLastUpdated(0) {
- }
-
- virtual ~Header() throw() {}
-
- std::string version;
- std::string clientIpAddress;
- int64_t clientTimestamp;
- std::string clientUserName;
- std::string clientApplication;
- int64_t serverLastUpdated;
-
- _Header__isset __isset;
-
- void __set_version(const std::string& val) {
- version = val;
- }
-
- void __set_clientIpAddress(const std::string& val) {
- clientIpAddress = val;
- }
-
- void __set_clientTimestamp(const int64_t val) {
- clientTimestamp = val;
- }
-
- void __set_clientUserName(const std::string& val) {
- clientUserName = val;
- }
-
- void __set_clientApplication(const std::string& val) {
- clientApplication = val;
- }
-
- void __set_serverLastUpdated(const int64_t val) {
- serverLastUpdated = val;
- }
-
- bool operator == (const Header & rhs) const
- {
- if (!(version == rhs.version))
- return false;
- if (!(clientIpAddress == rhs.clientIpAddress))
- return false;
- if (!(clientTimestamp == rhs.clientTimestamp))
- return false;
- if (!(clientUserName == rhs.clientUserName))
- return false;
- if (!(clientApplication == rhs.clientApplication))
- return false;
- if (!(serverLastUpdated == rhs.serverLastUpdated))
- return false;
- return true;
- }
- bool operator != (const Header &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const Header & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(Header &a, Header &b);
-
-typedef struct _Request__isset {
- _Request__isset() : header(false), data(false) {}
- bool header;
- bool data;
-} _Request__isset;
-
-class Request {
- public:
-
- static const char* ascii_fingerprint; // = "252EE71CE3D737D84E12CF91BC47093B";
- static const uint8_t binary_fingerprint[16]; // = {0x25,0x2E,0xE7,0x1C,0xE3,0xD7,0x37,0xD8,0x4E,0x12,0xCF,0x91,0xBC,0x47,0x09,0x3B};
-
- Request() {
- }
-
- virtual ~Request() throw() {}
-
- Header header;
- Data data;
-
- _Request__isset __isset;
-
- void __set_header(const Header& val) {
- header = val;
- }
-
- void __set_data(const Data& val) {
- data = val;
- }
-
- bool operator == (const Request & rhs) const
- {
- if (!(header == rhs.header))
- return false;
- if (!(data == rhs.data))
- return false;
- return true;
- }
- bool operator != (const Request &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const Request & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(Request &a, Request &b);
-
-typedef struct _Response__isset {
- _Response__isset() : header(false), data(false) {}
- bool header;
- bool data;
-} _Response__isset;
-
-class Response {
- public:
-
- static const char* ascii_fingerprint; // = "252EE71CE3D737D84E12CF91BC47093B";
- static const uint8_t binary_fingerprint[16]; // = {0x25,0x2E,0xE7,0x1C,0xE3,0xD7,0x37,0xD8,0x4E,0x12,0xCF,0x91,0xBC,0x47,0x09,0x3B};
-
- Response() {
- }
-
- virtual ~Response() throw() {}
-
- Header header;
- Data data;
-
- _Response__isset __isset;
-
- void __set_header(const Header& val) {
- header = val;
- }
-
- void __set_data(const Data& val) {
- data = val;
- }
-
- bool operator == (const Response & rhs) const
- {
- if (!(header == rhs.header))
- return false;
- if (!(data == rhs.data))
- return false;
- return true;
- }
- bool operator != (const Response &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const Response & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(Response &a, Response &b);
-
-typedef struct _Stream__isset {
- _Stream__isset() : name(false), value(false), comment(false), timestamp(false) {}
- bool name;
- bool value;
- bool comment;
- bool timestamp;
-} _Stream__isset;
-
-class Stream {
- public:
-
- static const char* ascii_fingerprint; // = "5F9965D46A4F3845985AC0F9B81C3C69";
- static const uint8_t binary_fingerprint[16]; // = {0x5F,0x99,0x65,0xD4,0x6A,0x4F,0x38,0x45,0x98,0x5A,0xC0,0xF9,0xB8,0x1C,0x3C,0x69};
-
- Stream() : name(), value(), comment(), timestamp(0) {
- }
-
- virtual ~Stream() throw() {}
-
- std::string name;
- std::string value;
- std::string comment;
- int64_t timestamp;
-
- _Stream__isset __isset;
-
- void __set_name(const std::string& val) {
- name = val;
- }
-
- void __set_value(const std::string& val) {
- value = val;
- }
-
- void __set_comment(const std::string& val) {
- comment = val;
- }
-
- void __set_timestamp(const int64_t val) {
- timestamp = val;
- }
-
- bool operator == (const Stream & rhs) const
- {
- if (!(name == rhs.name))
- return false;
- if (!(value == rhs.value))
- return false;
- if (!(comment == rhs.comment))
- return false;
- if (!(timestamp == rhs.timestamp))
- return false;
- return true;
- }
- bool operator != (const Stream &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const Stream & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(Stream &a, Stream &b);
-
-typedef struct _StreamResponse__isset {
- _StreamResponse__isset() : streamList(false) {}
- bool streamList;
-} _StreamResponse__isset;
-
-class StreamResponse {
- public:
-
- static const char* ascii_fingerprint; // = "DDDA8F891CEFA6BAEE9C7096D0B1642F";
- static const uint8_t binary_fingerprint[16]; // = {0xDD,0xDA,0x8F,0x89,0x1C,0xEF,0xA6,0xBA,0xEE,0x9C,0x70,0x96,0xD0,0xB1,0x64,0x2F};
-
- StreamResponse() {
- }
-
- virtual ~StreamResponse() throw() {}
-
- std::vector streamList;
-
- _StreamResponse__isset __isset;
-
- void __set_streamList(const std::vector & val) {
- streamList = val;
- }
-
- bool operator == (const StreamResponse & rhs) const
- {
- if (!(streamList == rhs.streamList))
- return false;
- return true;
- }
- bool operator != (const StreamResponse &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const StreamResponse & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(StreamResponse &a, StreamResponse &b);
-
-typedef struct _Rule__isset {
- _Rule__isset() : name(false), value(false), comment(false), timestamp(false) {}
- bool name;
- bool value;
- bool comment;
- bool timestamp;
-} _Rule__isset;
-
-class Rule {
- public:
-
- static const char* ascii_fingerprint; // = "5F9965D46A4F3845985AC0F9B81C3C69";
- static const uint8_t binary_fingerprint[16]; // = {0x5F,0x99,0x65,0xD4,0x6A,0x4F,0x38,0x45,0x98,0x5A,0xC0,0xF9,0xB8,0x1C,0x3C,0x69};
-
- Rule() : name(), value(), comment(), timestamp(0) {
- }
-
- virtual ~Rule() throw() {}
-
- std::string name;
- std::string value;
- std::string comment;
- int64_t timestamp;
-
- _Rule__isset __isset;
-
- void __set_name(const std::string& val) {
- name = val;
- }
-
- void __set_value(const std::string& val) {
- value = val;
- }
-
- void __set_comment(const std::string& val) {
- comment = val;
- }
-
- void __set_timestamp(const int64_t val) {
- timestamp = val;
- }
-
- bool operator == (const Rule & rhs) const
- {
- if (!(name == rhs.name))
- return false;
- if (!(value == rhs.value))
- return false;
- if (!(comment == rhs.comment))
- return false;
- if (!(timestamp == rhs.timestamp))
- return false;
- return true;
- }
- bool operator != (const Rule &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const Rule & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(Rule &a, Rule &b);
-
-typedef struct _RuleResponse__isset {
- _RuleResponse__isset() : ruleList(false) {}
- bool ruleList;
-} _RuleResponse__isset;
-
-class RuleResponse {
- public:
-
- static const char* ascii_fingerprint; // = "DDDA8F891CEFA6BAEE9C7096D0B1642F";
- static const uint8_t binary_fingerprint[16]; // = {0xDD,0xDA,0x8F,0x89,0x1C,0xEF,0xA6,0xBA,0xEE,0x9C,0x70,0x96,0xD0,0xB1,0x64,0x2F};
-
- RuleResponse() {
- }
-
- virtual ~RuleResponse() throw() {}
-
- std::vector ruleList;
-
- _RuleResponse__isset __isset;
-
- void __set_ruleList(const std::vector & val) {
- ruleList = val;
- }
-
- bool operator == (const RuleResponse & rhs) const
- {
- if (!(ruleList == rhs.ruleList))
- return false;
- return true;
- }
- bool operator != (const RuleResponse &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const RuleResponse & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(RuleResponse &a, RuleResponse &b);
-
-typedef struct _WorkloadResponse__isset {
- _WorkloadResponse__isset() : workloadList(false) {}
- bool workloadList;
-} _WorkloadResponse__isset;
-
-class WorkloadResponse {
- public:
-
- static const char* ascii_fingerprint; // = "D0D9EE8C6C26E09B1A4E0CDB1751C878";
- static const uint8_t binary_fingerprint[16]; // = {0xD0,0xD9,0xEE,0x8C,0x6C,0x26,0xE0,0x9B,0x1A,0x4E,0x0C,0xDB,0x17,0x51,0xC8,0x78};
-
- WorkloadResponse() {
- }
-
- virtual ~WorkloadResponse() throw() {}
-
- std::vector workloadList;
-
- _WorkloadResponse__isset __isset;
-
- void __set_workloadList(const std::vector & val) {
- workloadList = val;
- }
-
- bool operator == (const WorkloadResponse & rhs) const
- {
- if (!(workloadList == rhs.workloadList))
- return false;
- return true;
- }
- bool operator != (const WorkloadResponse &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const WorkloadResponse & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(WorkloadResponse &a, WorkloadResponse &b);
-
-typedef struct _IOError__isset {
- _IOError__isset() : message(false) {}
- bool message;
-} _IOError__isset;
-
-class IOError : public ::apache::thrift::TException {
- public:
-
- static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
- static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
-
- IOError() : message() {
- }
-
- virtual ~IOError() throw() {}
-
- std::string message;
-
- _IOError__isset __isset;
-
- void __set_message(const std::string& val) {
- message = val;
- }
-
- bool operator == (const IOError & rhs) const
- {
- if (!(message == rhs.message))
- return false;
- return true;
- }
- bool operator != (const IOError &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const IOError & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(IOError &a, IOError &b);
-
-typedef struct _IllegalArgument__isset {
- _IllegalArgument__isset() : message(false) {}
- bool message;
-} _IllegalArgument__isset;
-
-class IllegalArgument : public ::apache::thrift::TException {
- public:
-
- static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
- static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
-
- IllegalArgument() : message() {
- }
-
- virtual ~IllegalArgument() throw() {}
-
- std::string message;
-
- _IllegalArgument__isset __isset;
-
- void __set_message(const std::string& val) {
- message = val;
- }
-
- bool operator == (const IllegalArgument & rhs) const
- {
- if (!(message == rhs.message))
- return false;
- return true;
- }
- bool operator != (const IllegalArgument &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const IllegalArgument & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-void swap(IllegalArgument &a, IllegalArgument &b);
-
-}}} // namespace
-
-#endif
diff --git a/wms/src/main/c/include/GlobalData.h b/wms/src/main/c/include/GlobalData.h
deleted file mode 100644
index eeb6a779..00000000
--- a/wms/src/main/c/include/GlobalData.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
- *
- * Licensed 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.
- */
-#ifndef LIBWMS_WMSGLOBALDATA_H
-#define LIBWMS_WMSGLOBALDATA_H
-
-#define WAIT_TIME_SECONDS 15
-//
-// zookeeper
-//
-extern zhandle_t *zh;
-extern clientid_t myid;
-extern stringstream zk_ip_port;
-extern pthread_cond_t cond;
-extern pthread_mutex_t lock;
-//extern void *watcherCtx;
-//
-extern char *wmshost;
-extern int wmsport;
-extern deque wmsServers;
-extern bool isOpen;
-
-extern pid_t pid;//Linux process id
-extern char programName[128];//Linux program name from /proc
-extern char userName[256];
-extern char hostName[256];
-extern char myHostName[HOST_NAME_MAX];
-extern char myIpAddr[256];
-
-extern long connectionInfo;
-
-extern short lastErrorType;
-extern long lastErrorNum;
-extern stringstream lastErrorText;
-
-extern bool myZkHandle;
-
-#endif /* LIBWMS_WMSGLOBALDATA_H */
diff --git a/wms/src/main/c/include/GlobalHeader.h b/wms/src/main/c/include/GlobalHeader.h
deleted file mode 100644
index 8df95a39..00000000
--- a/wms/src/main/c/include/GlobalHeader.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- *(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
- *
- * Licensed 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.
- */
-#ifndef GLOBAL_HEADER_H
-#define GLOBAL_HEADER_H
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include