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/communication/Connection.java

    r102 r105  
    55import com.framsticks.params.annotations.FramsClassAnnotation;
    66import com.framsticks.params.annotations.ParamAnnotation;
     7import com.framsticks.util.ExceptionHandler;
    78import com.framsticks.util.FramsticksException;
    89import com.framsticks.util.io.Encoding;
     
    2526import com.framsticks.util.dispatching.Dispatcher;
    2627import com.framsticks.util.dispatching.Dispatching;
    27 import com.framsticks.util.dispatching.ExceptionResultHandler;
    2828import com.framsticks.util.dispatching.Joinable;
    2929import com.framsticks.util.dispatching.JoinableCollection;
     
    3535
    3636@FramsClassAnnotation
    37 public abstract class Connection extends AbstractJoinable implements JoinableParent, ExceptionResultHandler {
     37public abstract class Connection extends AbstractJoinable implements JoinableParent, ExceptionHandler {
    3838
    3939        protected final static Logger log = LogManager.getLogger(Connection.class);
     
    5252        protected final Set<ConnectionListener> listeners = new HashSet<>();
    5353
    54         protected ExceptionResultHandler exceptionHandler = ThrowExceptionHandler.getInstance();
     54        protected ExceptionHandler exceptionHandler = ThrowExceptionHandler.getInstance();
    5555
    5656        /**
     
    301301         * @return the handler
    302302         */
    303         public ExceptionResultHandler getExceptionHandler() {
     303        public ExceptionHandler getExceptionHandler() {
    304304                return exceptionHandler;
    305305        }
     
    308308         * @param handler the handler to set
    309309         */
    310         public void setExceptionHandler(ExceptionResultHandler handler) {
     310        public void setExceptionHandler(ExceptionHandler handler) {
    311311                this.exceptionHandler = handler;
    312312        }
     
    346346        }
    347347
    348         public final void sendFile(final String header, final File file, final Integer id, ExceptionResultHandler handler) {
     348        public final void sendFile(final String header, final File file, final Integer id, ExceptionHandler handler) {
    349349                senderThread.dispatch(new RunAt<Connection>(handler) {
    350350                        @Override
Note: See TracChangeset for help on using the changeset viewer.