Results 1 to 2 of 2
  1. #1
    care is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Default Help in storing Information

    sir,

    I want to store the physical and virtual information.Consider 5 physical machines
    Each physical machine may have or no virtual machine.

    consider

    1 physical machine contain 1 virtual machine
    2 physical machine contain 0 virtual machine
    3 physical machine contain 2 virtual machine
    4 physical machine contain 5 virtual machine
    5 physical machine contain 0 virtual machine

    Eg:

    and i want to store x and y information in both physical and virtual machines.

    if i want to access the virtual machine information, i want to access from corresponding physical machine.
    which data structure is efficient or can i use java bean..

    thanks in advance..

  2. #2
    miss.meli's Avatar
    miss.meli is offline Member
    Join Date
    Nov 2008
    Location
    Austin, TX
    Posts
    17
    Rep Power
    0

    Default

    I would use a separate constructor class to store the virtual information and which physical machine it is, then make those objects and store them on an array or linked list, whichever would be best for what you want to do with them. If it's mainly accessing, array is the way to go with it's random access at constant time.

    Hope this helps.
    miss.meli (-.-)zzZZ

Similar Threads

  1. Storing Array from HTTP Post
    By kskinner in forum New To Java
    Replies: 1
    Last Post: 09-08-2008, 07:00 AM
  2. Stuck at storing settings for Swing app
    By jurka in forum New To Java
    Replies: 2
    Last Post: 07-19-2008, 05:26 PM
  3. storing and retrieving a file as such
    By anil_manu in forum Advanced Java
    Replies: 0
    Last Post: 03-11-2008, 02:27 PM
  4. Storing data permanently
    By shaungoater in forum New To Java
    Replies: 2
    Last Post: 03-10-2008, 05:18 PM
  5. Storing Data
    By Khorod in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 06:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •