Commit includes fixes for #920 (content-negotation) and $624 (HA Load
Balancer).  I have run through the NSS, AST evaluation, and QUADS mode
test suites and everything is green.  The TestAll_LBS test suite is
also green (HA).

- CONNEG was broken in previous releases and would return available
  Content-Type corresponding to the least desired MIME Type as
  specified by the Accept header.  See #920.  Changes to ConnegScore,
  ConnegUtil, TestConneg.

- RemoteRepository: A bug was identified where the openrdf binary RDF
  interchange type could not be used because a non-null charset would
  cause a Reader to be allocated rather than an InputStream within the
  BackgroundGraphResult.  Historically, due to #920, this interchange
  type was not preferred and hence this code path was not tested.  The
  fix was to use the default charset for the format associated with
  the Content-Type of the response unless overridden by an explicit
  charset in the encoding.

- Added a new LBS policy (CountersLBSPolicy) based on the
  /bigdata/counters servlet.  This policy is more chatty than the
  GangliaLBSPolicy, but it can be used in environments that do not
  support multicast and can be secured using standard techniques for
  httpd.  The GangliaLBSPolicy was heavily refactored to create an
  abstract base class that is now shared by both the CountersLBSPolicy
  and the GangliaLBSPolicy.  Added documentation to web.xml and the
  HALoadBalancer page of the wiki. See #624.

- Release a new bigdata-ganglia.jar (v1.0.4).  This release permits
  the Comparator to be null, which is useful since we want to order
  the hosts based on our IHostScoringRule rather than a simple ganglia
  metric comparison.

- AbstractStatisticsCollection: Added @Override tags and FIXME on
  getCounters().

- CounterSet: private and final attributes. ignoring some unchecked
  conversions or raw types.  @Override attributes.

- ICounterSetSelector: expanded the interface slightly to allow
  optional filtering for HistoryInstruments (was implicit and
  manditory).  This was necessary in order to support XML rendering of
  /bigdata/counters.

- CounterSetFormat: Added to support CONNEG for the different kinds of
  counter set interchange (text/plain, text/html, application/xml).
  This was in support of the new CountersLBSPolicy.

- IOStatCollector, VMStatCollector: Fixed some bugs in the OSX
  platforn metrics collectors, mostly around data races.

- BigdataSailRemoteRepositoryConnection: added link to #914 (Set
  timeout on remote query).  I have not worked on this ticket yet, but
  these comments mark the integration points.  The other integration
  point is BigdataRDFContext.newQuery(), which is also linked to the
  ticket in this commit.

- CountersServlet: modified to support CONNEG.

- ConnegOptions: added toString().  clean up.

- jetty.xml: refactored per guidence from webtide.

- web.xml: comments on the CountersLBSPolicy.


git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8294 8f7bc0f5-282e-0410-95e3-8d296e9bb460
host-based LBS bug fix.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8295 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Changing log level for detailed host metrics => TRACE. This information is available in /bigdata/status and really clutters up the log.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8296 8f7bc0f5-282e-0410-95e3-8d296e9bb460
full blueprints integration commit

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8298 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Commit: possible fix for test failure in test_webapp_structure_counters.
{{{
java.io.UnsupportedEncodingException: 'UTF-8'
	at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:71)
	at java.io.InputStreamReader.<init>(InputStreamReader.java:100)
	at org.apache.http.util.EntityUtils.toString(EntityUtils.java:195)
	at org.apache.http.util.EntityUtils.toString(EntityUtils.java:221)
	at com.bigdata.rdf.sail.webapp.TestNanoSparqlClient.doGET(TestNanoSparqlClient.java:254)
	at com.bigdata.rdf.sail.webapp.TestNanoSparqlClient.test_webapp_structure_counters(TestNanoSparqlClient.java:210)
}}}

Changes are to CountersServlet (change in how the encoding is set on the http response) and TestNanoSparqlClient (we were getting the HttpEntity twice - it is doubtless a cached object reference so I doubt this is the issue).


git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8299 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Made the DEFAULT instance "final". Already private and static.  Chasing odd test failure in CI
{{{
junit.framework.AssertionFailedError
	at com.bigdata.rdf.sparql.ast.eval.service.TestServiceRegistry.test_serviceAlias(TestServiceRegistry.java:145)
}}}

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8305 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Modified test to use unique URLs in an attempt to cure a CI failure in TestServiceRegistry.  I am hypothesizing a side-effect through the static ServiceRegistery instance with some other tests.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8306 8f7bc0f5-282e-0410-95e3-8d296e9bb460
fixing a ClassCastException in the Blueprints test suite

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8307 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Removed stderr log message from AALP.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8308 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Changed the name of the environment variable to enable the built-in ganglia peer as a listener from GANGLIA_LISTENER => GANGLIA_LISTEN

See #624 (HA LBS).

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8309 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Modified the HA load balancer:

- Added additional normalization logic.
- Added counters for tracking the #of local forwards, the #of proxies, and the #of errors.
- Increased the information rendered on the /status page for the HA load balancer.

Note: I have not yet fixed up the unit tests for the normalized scoring policy.  I expect 2 failures for those tests.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8310 8f7bc0f5-282e-0410-95e3-8d296e9bb460
bug fix to host selection logic.

See #624 (HA LBS)

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8311 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Still working on the LBS host scoring logic.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8312 8f7bc0f5-282e-0410-95e3-8d296e9bb460
LBS logic fix.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8313 8f7bc0f5-282e-0410-95e3-8d296e9bb460
LBS policy fix.

Moved the JVM_OPTS into /etc/defaults/bigdataHA.  This is the more standard practice.

See #624 (HA LBS)

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8314 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Added worksheet for the HA LBS LOAD => AVAILABILITY normalization logic and link to worksheet in the HA LBS code.  See #624 (HA LBS)

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8315 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Modifying log message to track down contexts in which the CounterSet is refusing the replace of a performance counter.  See #624 (LBS)

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8316 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Bug fixes to linux performance counter collectors.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8318 8f7bc0f5-282e-0410-95e3-8d296e9bb460
Bug fix to the CountersLBSPolicy.  It was failing to look inside of the hostname prefix path for the counter sets and thus always failing to find the counters and assigning the same load to all hosts.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8320 8f7bc0f5-282e-0410-95e3-8d296e9bb460
relocating a debug message.

git-svn-id: https://svn.code.sf.net/p/bigdata/code/branches/BIGDATA_RELEASE_1_3_0@8321 8f7bc0f5-282e-0410-95e3-8d296e9bb460