Ignore:
Timestamp:
09/10/13 21:11:41 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • import refactorization: move Tree, Path, etc.

from core to structure package

  • initial serialization implementation
  • improve PrimeExperiment? test
  • many organizational changes and convenience improvements

CHANGELOG:
Make registry in AbstractTree? final.

Move most classes from core to structure package.

Minor changes.

Switch names of Future and FutureHandler?.

Rename ExceptionResultHandler? to ExceptionHandler?.

Rename ExceptionHandler? to ExceptionDispatcherHandler?.

Fix bug in ParamCandidate? cache.

Add missing synchronization to the BufferedDispatcher?.

Develop @Serialized support.

Rework serialization further.

Add serialization/deserialization interface to ValueParam?.

Move getStorageType and isNumeric from Param down to params hierarchy.

Minor changes.

Improve param type induction.

Add TestSerializedClass? for testing new serialization.

Add info files gor GenePool? and Population.

Add standard.expt exemplary netfile.

Add type name field to PropertiesObject?.

Use PropertiesObject? for PropertiesAccess? instead of ordinary map.

Hide getFramsClass is several more places.

More unification accross FramsClass?, Access and Path.

Add ParamCollection?.

Simplify interface for getting params from FramsClass?, Access
or Path.

Make Access.call() interface variadic.

Add arguments(args) convenience wrapper around new Object[] {args}.

Upgrade to apache.commons.lang version 3.1

Minor improvement with Response constructors.

Develop proper result printing in ClientAtServer?.

Add experimentNetsave to PrimeExperiment?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/remote/RecursiveFetcher.java

    r100 r105  
    11package com.framsticks.remote;
    22
    3 import static com.framsticks.core.TreeOperations.*;
    43
    5 import com.framsticks.core.Node;
    6 import com.framsticks.core.Path;
    74import com.framsticks.params.Access;
    85import com.framsticks.params.CompositeParam;
    9 import com.framsticks.params.FramsClass;
    10 import com.framsticks.core.Tree;
     6import com.framsticks.structure.Node;
     7import com.framsticks.structure.Path;
     8import com.framsticks.structure.Tree;
     9import com.framsticks.util.dispatching.FutureHandler;
    1110import com.framsticks.util.dispatching.Future;
    12 import com.framsticks.util.dispatching.FutureHandler;
    1311import com.framsticks.util.dispatching.ThrowExceptionHandler;
    1412import com.framsticks.util.FramsticksException;
     
    1715import org.apache.logging.log4j.Logger;
    1816import org.apache.logging.log4j.LogManager;
     17
     18import static com.framsticks.structure.TreeOperations.*;
    1919import static com.framsticks.util.lang.Containers.filterInstanceof;
    2020import com.framsticks.util.dispatching.RunAt;
     
    2828
    2929        protected final Tree tree;
    30         protected final Future<Void> future;
     30        protected final FutureHandler<Void> future;
    3131        protected int dispatched;
    3232        protected final Stopwatch stopwatch = new Stopwatch();
    3333
    34         public RecursiveFetcher(Tree tree, final Path path, Future<Void> future) {
     34        public RecursiveFetcher(Tree tree, final Path path, FutureHandler<Void> future) {
    3535                this.tree = tree;
    3636                this.future = future;
     
    5151                } else {
    5252                        Access access = bindAccess(path);
    53                         FramsClass framsClass = access.getFramsClass();
    54                         assert framsClass != null;
    5553                        for (CompositeParam p : filterInstanceof(access.getParams(), CompositeParam.class)) {
    5654                                Object child = access.get(p, Object.class);
     
    6765                                }
    6866                                ++dispatched;
    69                                 tree.get(childPath, new FutureHandler<Path>(Logging.logger(log, "resolve", RecursiveFetcher.this)) {
     67                                tree.get(childPath, new Future<Path>(Logging.logger(log, "resolve", RecursiveFetcher.this)) {
    7068                                        @Override
    7169                                        protected void result(Path result) {
     
    8381
    8482        protected void fetch(final Path path) {
    85                 tree.get(path, new Future<Path>() {
     83                tree.get(path, new FutureHandler<Path>() {
    8684
    8785                        @Override
Note: See TracChangeset for help on using the changeset viewer.