Ignore:
Timestamp:
07/06/13 03:51:11 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • add proper exception passing between communication sides:

if exception occur during handling client request, it is
automatically passed as comment to error response.

it may be used to snoop communication between peers

  • fix algorithm choosing text controls in GUI
  • allow GUI testing in virtual frame buffer (xvfb)

FEST had some problem with xvfb but workaround was found

supports tab-completion based on requests history

CHANGELOG:
Further improve handling of exceptions in GUI.

Add StatusBar? implementing ExceptionResultHandler?.

Make completion processing asynchronous.

Minor changes.

Improve completion in console.

Improve history in InteractiveConsole?.

First working version of DirectConsole?.

Minor changes.

Make Connection.address non final.

It is more suitable to use in configuration.

Improvement of consoles.

Improve PopupMenu? and closing of FrameJoinable?.

Fix BrowserTest?.

Found bug with FEST running under xvfb.

JButtonFixture.click() is not working under xvfb.
GuiTest? has wrapper which uses JButton.doClick() directly.

Store CompositeParam? param in TreeNode?.

Simplify ClientSideManagedConnection? connecting.

There is now connectedFunctor needed, ApplicationRequests? can be
send right after creation. They are buffered until the version
and features are negotiated.

Narow down interface of ClientSideManagedConnection?.

Allow that connection specialization send only
ApplicationRequests?.

Improve policy of text control choosing.

Change name of Genotype in BrowserTest?.

Make BrowserTest? change name of Genotype.

Minor change.

First working draft of TrackConsole?.

Simplify Consoles.

More improvements with gui joinables.

Unify initialization on gui joinables.

More rework of Frame based entities.

Refactorize structure of JFrames based entities.

Extract GuiTest? from BrowserBaseTest?.

Reorganize Console classes structure.

Add Collection view to JoinableCollection?.

Configure timeout in testing.

Minor changes.

Rework connections hierarchy.

Add Mode to the get operation.

Make get and set in Tree take PrimitiveParam?.

Unify naming of operations.

Make RunAt? use the given ExceptionHandler?.

It wraps the virtual runAt() method call with
try-catch passing exception to handler.

Force RunAt? to include ExceptionHandler?.

Improve ClientAtServer?.

Minor change.

Another sweep with FindBugs?.

Rename Instance to Tree.

Minor changes.

Minor changes.

Further clarify semantics of Futures.

Add FutureHandler?.

FutureHandler? is refinement of Future, that proxifies
exception handling to ExceptionResultHandler? given
at construction time.

Remove StateFunctor? (use Future<Void> instead).

Make Connection use Future<Void>.

Unparametrize *ResponseFuture?.

Remove StateCallback? not needed anymore.

Distinguish between sides of ResponseFuture?.

Base ResponseCallback? on Future (now ResponseFuture?).

Make asynchronous store taking Future for flags.

Implement storeValue in ObjectInstance?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/portals/Portal.java

    r96 r97  
    22
    33
    4 import com.framsticks.core.AbstractInstanceListener;
    5 import com.framsticks.core.Instance;
    6 import com.framsticks.core.InstanceUtils;
     4import com.framsticks.core.AbstractTreeListener;
     5import com.framsticks.core.Tree;
     6import com.framsticks.core.TreeOperations;
    77import com.framsticks.core.Path;
    88import com.framsticks.params.annotations.FramsClassAnnotation;
     
    1010import com.framsticks.util.Logging;
    1111import com.framsticks.util.dispatching.Dispatching;
    12 import com.framsticks.util.dispatching.Future;
     12import com.framsticks.util.dispatching.FutureHandler;
    1313import com.framsticks.util.dispatching.JoinableCollection;
    1414import com.framsticks.util.dispatching.RunAt;
     15import com.framsticks.util.dispatching.ThrowExceptionHandler;
    1516
    1617import org.apache.log4j.Logger;
     
    2122 */
    2223@FramsClassAnnotation
    23 public class Portal extends JoinableCollection<Instance> {
     24public class Portal extends JoinableCollection<Tree> {
    2425
    2526        private final static Logger log = Logger.getLogger(Portal.class.getName());
     
    3334        // @Override
    3435        // public void run() {
    35         //      super.run();
    36         //      new PeriodicTask<Portal>(this, 1000) {
     36        //      super.run();
     37        //      new PeriodicTask<Portal>(this, 1000) {
    3738
    38         //              @Override
    39         //              public void run() {
    40         //                      ++counter;
    41         //                      log.debug("counter is now: " + counter);
    42         //                      again();
    43         //              }
    44         //      };
     39        //              @Override
     40        //              public void run() {
     41        //                      ++counter;
     42        //                      log.debug("counter is now: " + counter);
     43        //                      again();
     44        //              }
     45        //      };
    4546        // }
    4647
    4748        @Override
    48         public void add(final Instance instance) {
    49                 super.add(instance);
    50                 instance.addListener(new AbstractInstanceListener() {
     49        public void add(final Tree tree) {
     50                super.add(tree);
     51                tree.addListener(new AbstractTreeListener() {
    5152                        @Override
    5253                        public void onRun(Exception e) {
     
    5960                                }
    6061                                final String path = "/simulator/genepools/groups/0/genotypes";
    61                                 instance.dispatch(new RunAt<Instance>() {
     62                                tree.dispatch(new RunAt<Tree>(ThrowExceptionHandler.getInstance()) {
    6263                                        @Override
    63                                         public void run() {
    64                                                 InstanceUtils.resolve(instance, path, new Future<Path>(Logging.logger(log, "resolve", path)) {
     64                                        protected void runAt() {
     65                                                TreeOperations.resolve(tree, path, new FutureHandler<Path>(Logging.logger(log, "resolve", path)) {
    6566                                                        @Override
    6667                                                        public void result(Path result) {
Note: See TracChangeset for help on using the changeset viewer.