Frontiers of Computer Science

, Volume 6, Issue 6, pp 725–740 | Cite as

Towards module-based automatic partitioning of Java applications

  • Ying Zhang
  • Gang Huang
  • Wei Zhang
  • Xuanzhe Liu
  • Hong Mei
Research Article


When reengineering a monolithic application to be a distributed one, programmers always have to decide how many distributed parts the application should be partitioned, and write many codes related to where a partwill be placed on network nodes and how these parts communicate with each other through the network. These codes usually have nothing to do with the business functions of the application, and they are laborious to write. In addition, as the distribution architecture of the application is finalized beforehand, it may not adapt well to the ever-changing execution environment. In this paper, we propose DPartner, an automatic partitioning system, to help programmers create a distributed Java application without explicitly writing the distribution-related codes. Unlike the other partitioning systems, DPartner does not partition an application directly into the coarse-grained client and server. Instead, it first partitions the application into several modules where each module performs a relatively independent business function of the application. Then it makes these modules be distributable through automatic bytecode rewriting. These modules can distribute in different nodes and cooperate to work just as the original monolithic application. Such a module-based partitioning approach enables a relatively easy reshaping of the distribution architecture of an application, which facilitates the application adapt to the environmental changes without manual recoding or repartitioning with regard to distribution. This paper gives the detailed design of DPartner, and evaluates it using real-world applications. The evaluation results demonstrate the effectiveness and efficiency of DPartner.


application partitioning distributed computing DPartner 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
  2. 2.
  3. 3.
    Tilevich E, Smaragdakis Y. J-Orchestra: enhancing Java programs with distribution capabilities. ACM Transactions on Software Engineering and Methodology (TOSEM), 2009, 19(1): 1CrossRefGoogle Scholar
  4. 4.
    Philippsen M, Zenger M. Javaparty-transparent remote objects in Java. Concurrency Practice and Experience, 1997, 9(11): 1225–1242CrossRefGoogle Scholar
  5. 5.
    Wang L, Franz M. Automatic partitioning of object-oriented programs for resource-constrained mobile devices with multiple distribution objectives. In: Proceedings of the 14th IEEE International Conference on Parallel and Distributed Systems, ICPADS’08. 2008, 369–376Google Scholar
  6. 6.
    Messer A, Greenberg I, Bernadat P, Milojicic D, Chen D, Giuli T, Gu X. Towards a distributed platform for resource-constrained devices. In: Proceedings of the 22nd International Conference on Distributed Computing Systems, 2002. ICPADS’02. 2002, 43–51Google Scholar
  7. 7.
    Cuervo E, Balasubramanian A, Cho D, Wolman A, Saroiu S, Chandra R, Bahl P. Maui: making smartphones last longer with code offload. In: Proceedings of the 8th International Conference on Mobile Systems, Applications, and Services. 2010, 49–62Google Scholar
  8. 8.
    Åhlund A. An approach towards user-centric application mobility. Master Thesis, Umea University, Sweden, 2009Google Scholar
  9. 9.
    Riva O, Nadeem T, Borcea C, Iftode L. Context-aware migratory services in ad hoc networks. IEEE Transactions on Mobile Computing, 2007, 6(12): 1313–1328CrossRefGoogle Scholar
  10. 10.
    Åhlund A, Mitra K, Johansson D, Åhlund C, Zaslavsky A. Contextaware application mobility support in pervasive computing environments. In: Proceedings of the 6th International Conference on Mobile Technology, Application & Systems. 2009, 21Google Scholar
  11. 11.
  12. 12.
  13. 13.
    Eclipse and Equinox.
  14. 14.
  15. 15.
    Arisholm E, Briand L, Foyen A. Dynamic coupling measurement for object-oriented software. IEEE Transactions on Software Engineering, 2004, 30(8): 491–506CrossRefGoogle Scholar
  16. 16.
  17. 17.
    Maletic J, Marcus A. Supporting program comprehension using semantic and structural information. In: Proceedings of the 23rd International Conference on Software Engineering. 2001, 103–112Google Scholar
  18. 18.
    Girvan M, Newman M. Community structure in social and biological networks. Proceedings of the National Academy of Sciences of the United States of America, 2002, 99(12): 7821–7826MathSciNetMATHCrossRefGoogle Scholar
  19. 19.
    Han J, Kamber M. Data Mining: Concepts and Techniques. Morgan Kaufmann, 2006Google Scholar
  20. 20.
    Tilevich E, Smaragdakis Y. Portable and efficient distributed threads for Java. Middleware 2004, 2004, 478–492Google Scholar
  21. 21.
  22. 22.
  23. 23.
  24. 24.
    Shen J, Sun X, Huang G, Jiao W, Sun Y, Mei H. Towards a unified formal model for supporting mechanisms of dynamic component update. In: Proceedings of ACM SIGSOFT Software Engineering Notes. 2005, 80–89Google Scholar
  25. 25.
    Gu X, Nahrstedt K, Messer A, Greenberg I, Milojicic D. Adaptive offloading for pervasive computing. IEEE Pervasive Computing, 2004, 3(3): 66–73CrossRefGoogle Scholar
  26. 26.
    Hunt G, Scott M. The coign automatic distributed partitioning system. Operating Systems Review, 1998, 33: 187–200Google Scholar
  27. 27.
  28. 28.
    Rellermeyer J, Alonso G, Roscoe T. R-OSGi: distributed applications through software modularization. In: Proceedings of the ACM/IFIP/USENIX 2007 International Conference on Middleware. 2007, 1–20Google Scholar
  29. 29.
    Lobosco M, Silva A F, Loques O, Amorim C L. A new distributed jvm for cluster computing. Euro-Par 2003 Parallel Processing, 2003, 1207–1215Google Scholar
  30. 30.
    Yu W, Cox A. Java/dsm: a platform for heterogeneous computing. Concurrency: Practice and Experience, 1997, 9(11): 1213–1224CrossRefGoogle Scholar
  31. 31.
  32. 32.

Copyright information

© Higher Education Press and Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Ying Zhang
    • 1
    • 2
  • Gang Huang
    • 1
    • 2
  • Wei Zhang
    • 1
    • 2
  • Xuanzhe Liu
    • 1
    • 2
  • Hong Mei
    • 1
    • 2
  1. 1.Key Laboratory of High Confidence Software Technologies (Peking University)Ministry of EducationBeijingChina
  2. 2.School of Electronics Engineering and Computer SciencePeking UniversityBeijingChina

Personalised recommendations