Exemple #1
0
 private Experimenter()
 {
     this.obuilder = ExperimentSeriesObjectBuilder.create();
     this.oparser  = ExperimentSeriesObjectParser.create(obuilder);
     this.jbuilder = createExperimentSeriesJsonBuilder();
     this.jparser  = createExperimentSeriesJsonParser(obuilder);
 }
Exemple #2
0
        private Investigator(Uri dockerHost, Version dockerRemoteApiVersion)
        {
            bool isOk = ((dockerHost != null) &&
                         (dockerHost.IsWellFormedOriginalString()));

            if (isOk)
            {
                this.obuilder    = ExperimentSeriesObjectBuilder.create();
                this.oparser     = ExperimentSeriesObjectParser.create(obuilder);
                this.jbuilder    = createExperimentSeriesJsonBuilder();
                this.jparser     = createExperimentSeriesJsonParser(obuilder);
                this.distributor = createExperimentDistributor(this.jbuilder,
                                                               dockerHost,
                                                               dockerRemoteApiVersion);
            }
            else
            {
                throw new ArgumentException("Argument 'dockerHost' must be not null " +
                                            "and a well-formed uri string.");
            }
        }