Changeset 2709


Ignore:
Timestamp:
02/17/05 15:45:23 (8 years ago)
Author:
hauma
Message:

Proof of concept for a JavaParty RMI server (ticket:224)

  • Moved the example to a separate package. This requires little adjustments to access modifiers in some jp.lang classes.
Location:
trunk/jp
Files:
2 added
3 edited
5 moved

Legend:

Unmodified
Added
Removed
  • trunk/jp/build.xml

    r2707 r2709  
    274274        <exclude name="jp/lang/RemoteThread.java" /> 
    275275        <exclude name="jp/lang/RuntimeExplorer.java" /> 
    276  
    277         <exclude name="jp/lang/Party*.java" /> 
    278276     </jpc> 
    279277 
     
    286284        <include name="jp/lang/JavaParty.java" /> 
    287285        <include name="jp/lang/RMICompatibility.java" /> 
    288  
    289         <include name="jp/lang/PartyConfig.java" /> 
    290286     </javac> 
    291287 
     
    295291        <include name="jp/lang/RemoteThread.java" /> 
    296292        <include name="jp/lang/RuntimeExplorer.java" /> 
    297  
    298         <include name="jp/lang/PartyWorker.java" /> 
    299293     </jpc> 
     294  </target> 
     295 
     296  <target name="jp-example" depends="jp-env"> 
     297     <jpc destdir="${classes}" debug="on" generatedJPPath="${jpgen}"> 
     298        <classpath refid="cp" /> 
     299        <src path="${javasrc}" /> 
     300        <include name="jp/example/rmiserver/PartyConfig.java" /> 
     301        <include name="jp/example/rmiserver/PartyWorker.java" /> 
     302     </jpc> 
    300303 
    301304     <javac destdir="${classes}" debug="on"> 
     
    303306        <src path="${javasrc}" /> 
    304307 
    305         <include name="jp/lang/PartyClient.java" /> 
    306         <include name="jp/lang/PartyServer.java" /> 
     308        <include name="jp/example/rmiserver/PartyClient.java" /> 
     309        <include name="jp/example/rmiserver/PartyServer.java" /> 
    307310     </javac> 
    308311 
     
    310313        <classpath refid="cp" /> 
    311314 
    312         <include name="jp/lang/PartyServer.class" /> 
    313       </rmic> 
     315        <include name="jp/example/rmiserver/PartyServer.class" /> 
     316     </rmic> 
    314317  </target> 
    315318 
     
    338341  </target> 
    339342 
    340   <target name="jp-jar" depends="jp-env, jp-tools, jp-sync"> 
     343  <target name="jp-jar" depends="jp-env, jp-example, jp-tools, jp-sync"> 
    341344      <jar jarfile="${build}/jp.jar"> 
    342345           <fileset dir="${classes}"  
    343                     includes="jp/**"/> 
     346                    includes="jp/lang/**"/> 
    344347      </jar> 
    345348  </target> 
  • trunk/jp/src/jp/example/rmiserver/PartyClient.java

    r2708 r2709  
    1 package jp.lang; 
     1/* *************************************************************************** 
     2 * JavaParty 
     3 * 
     4 * Copyright (C) 1996-2005 The JavaParty Team, University of Karlsruhe 
     5 * 
     6 * Permission is hereby granted to modify and use this software for research 
     7 * and teaching purposes. Modification for commercial purposes requires 
     8 * prior written permission by the author. 
     9 * 
     10 * The software, or modifications thereof, may be redistributed only 
     11 * if this copyright notice stays attached. 
     12 *****************************************************************************/ 
     13 
     14package jp.example.rmiserver; 
    215 
    316import java.rmi.registry.Registry; 
    417import java.rmi.registry.LocateRegistry; 
     18 
    519 
    620/** The client-tier application. */ 
  • trunk/jp/src/jp/example/rmiserver/PartyConfig.java

    r2707 r2709  
    22 * JavaParty 
    33 * 
    4  * Copyright (C) 1996-2002 The JavaParty Team, University of Karlsruhe 
     4 * Copyright (C) 1996-2005 The JavaParty Team, University of Karlsruhe 
    55 * 
    66 * Permission is hereby granted to modify and use this software for research 
     
    1111 * if this copyright notice stays attached. 
    1212 *****************************************************************************/ 
    13 /* 
    14  * $Revision: 1.7 $ 
    15  * $Date: 2002/05/24 19:19:07 $ 
    16  */ 
    1713 
    18 package jp.lang; 
     14package jp.example.rmiserver; 
     15 
     16import jp.lang.ConfigJP; 
     17 
    1918 
    2019/** 
  • trunk/jp/src/jp/example/rmiserver/PartyServer.java

    r2708 r2709  
    1 package jp.lang; 
     1/* *************************************************************************** 
     2 * JavaParty 
     3 * 
     4 * Copyright (C) 1996-2005 The JavaParty Team, University of Karlsruhe 
     5 * 
     6 * Permission is hereby granted to modify and use this software for research 
     7 * and teaching purposes. Modification for commercial purposes requires 
     8 * prior written permission by the author. 
     9 * 
     10 * The software, or modifications thereof, may be redistributed only 
     11 * if this copyright notice stays attached. 
     12 *****************************************************************************/ 
     13 
     14package jp.example.rmiserver; 
    215 
    316import jp.lang.ApplicationContext; 
     
    619import jp.lang.RuntimeEnvironment; 
    720import jp.lang.RuntimeManager; 
    8  
    9 import jp.lang.PartyConfig; 
    1021 
    1122 
  • trunk/jp/src/jp/example/rmiserver/PartyServer_intf.java

    r2707 r2709  
    1 package jp.lang; 
     1/* *************************************************************************** 
     2 * JavaParty 
     3 * 
     4 * Copyright (C) 1996-2005 The JavaParty Team, University of Karlsruhe 
     5 * 
     6 * Permission is hereby granted to modify and use this software for research 
     7 * and teaching purposes. Modification for commercial purposes requires 
     8 * prior written permission by the author. 
     9 * 
     10 * The software, or modifications thereof, may be redistributed only 
     11 * if this copyright notice stays attached. 
     12 *****************************************************************************/ 
     13 
     14package jp.example.rmiserver; 
    215 
    316 
  • trunk/jp/src/jp/example/rmiserver/PartyWorker.java

    r2708 r2709  
    1 package jp.lang; 
     1/* *************************************************************************** 
     2 * JavaParty 
     3 * 
     4 * Copyright (C) 1996-2005 The JavaParty Team, University of Karlsruhe 
     5 * 
     6 * Permission is hereby granted to modify and use this software for research 
     7 * and teaching purposes. Modification for commercial purposes requires 
     8 * prior written permission by the author. 
     9 * 
     10 * The software, or modifications thereof, may be redistributed only 
     11 * if this copyright notice stays attached. 
     12 *****************************************************************************/ 
     13 
     14package jp.example.rmiserver; 
    215 
    316import jp.lang.ConfigJP; 
  • trunk/jp/src/jp/lang/ConfigJP.java

    r1663 r2709  
    2525public abstract class ConfigJP extends ConfigBase implements Constants { 
    2626    // default values 
    27     String  host     = null; 
    28     int     port     = -1; 
    29     String  code     = null; 
     27    public String  host     = null; 
     28    public int     port     = -1; 
     29    public String  code     = null; 
    3030 
    31     int     timeout  = 10; 
     31    public int     timeout  = 10; 
    3232 
    33     boolean verbose  = false; 
    34     boolean debug    = false; 
     33    public boolean verbose  = false; 
     34    public boolean debug    = false; 
    3535 
    3636    public String argumentDescription() { 
  • trunk/jp/src/jp/lang/Configuration.java

    r1664 r2709  
    360360    } 
    361361 
    362     protected RuntimeManager getRuntimeManager(int timeout) throws ConfigurationException { 
     362    public RuntimeManager getRuntimeManager(int timeout) throws ConfigurationException { 
    363363        if (debug) System.err.println("lookup runtime manager at " + this); 
    364364 
Note: See TracChangeset for help on using the changeset viewer.