Class VmManager

java.lang.Object
org.jrd.backend.data.VmManager

public class VmManager extends Object
This class is used for creating/removing/updating information about available Java Virtual Machines.
  • Field Details

    • vmInfoSet

      private Set<VmInfo> vmInfoSet
    • actionListeners

      private Set<ActionListener> actionListeners
    • changed

      boolean changed
  • Constructor Details

    • VmManager

      public VmManager()
  • Method Details

    • loadSavedFsVms

      private void loadSavedFsVms()
    • updateLocalVMs

      public void updateLocalVMs()
      Obtains list of Virtual Machines. This list is then compared to vmInfoSet. Old Vms are removed and new are added.
    • createRemoteVM

      public VmInfo createRemoteVM(String hostname, int port)
    • createRemoteVM

      public VmInfo createRemoteVM(String hostname, int port, String idOverride)
    • createFsVM

      public VmInfo createFsVM(List<File> cp, String name, boolean shouldBeSaved)
    • getNextAvailableFsVmPid

      private int getNextAvailableFsVmPid()
    • removeVm

      public boolean removeVm(VmInfo target)
    • findVmFromPid

      public VmInfo findVmFromPid(String param)
    • findVmFromPidNoException

      public VmInfo findVmFromPidNoException(String param)
    • getVmInfoByID

      public VmInfo getVmInfoByID(String vmId)
    • getVmInfoSet

      public Set<VmInfo> getVmInfoSet()
    • subscribeToVMChange

      public void subscribeToVMChange(ActionListener listener)
    • notifyListeners

      public void notifyListeners()
    • hasChanged

      private boolean hasChanged()
    • setChanged

      private void setChanged()
    • clearChanged

      private void clearChanged()