├── .travis.yml ├── settings.gradle ├── .gitignore ├── src └── main │ ├── icons │ ├── 34.gif │ ├── cd.png │ ├── add.png │ ├── disk.png │ ├── edit.png │ ├── exit.png │ ├── help.png │ ├── task.png │ ├── user.png │ ├── camera.png │ ├── cd_add.png │ ├── cross.png │ ├── delete.png │ ├── details.png │ ├── drive.png │ ├── module.png │ ├── monitor.png │ ├── network.png │ ├── reload.png │ ├── server.png │ ├── sound.png │ ├── store.png │ ├── tab_add.png │ ├── world.png │ ├── camera_go.png │ ├── cd_delete.png │ ├── cd_modify.png │ ├── computer.png │ ├── database.png │ ├── drive_add.png │ ├── drive_cd.png │ ├── harddisk.png │ ├── play_blue.png │ ├── stop_red.png │ ├── store_add.png │ ├── user_add.png │ ├── user_edit.png │ ├── camera_add.png │ ├── camera_edit.png │ ├── camera_start.png │ ├── camera_stop.png │ ├── computer_add.png │ ├── controller.png │ ├── database_add.png │ ├── disconnect.png │ ├── disk_upload.png │ ├── drive_delete.png │ ├── drive_disk.png │ ├── module_add.png │ ├── pause_blue.png │ ├── play_green.png │ ├── server_edit.png │ ├── server_error.png │ ├── server_link.png │ ├── server_start.png │ ├── server_stop.png │ ├── shape_shadow.png │ ├── store_browse.png │ ├── store_close.png │ ├── store_create.png │ ├── store_delete.png │ ├── store_open.png │ ├── tab_delete.png │ ├── user_create.png │ ├── user_delete.png │ ├── computer_edit.png │ ├── computer_link.png │ ├── computer_stop.png │ ├── control_power.png │ ├── database_link.png │ ├── disk_download.png │ ├── module_delete.png │ ├── module_disable.png │ ├── server_connect.png │ ├── server_delete.png │ ├── server_wrench.png │ ├── store_register.png │ ├── computer_delete.png │ ├── control_play_blue.png │ ├── server_lightning.png │ ├── store_unregister.png │ ├── user_set_password.png │ ├── control_power_blue.png │ └── icons-LICENSE │ ├── img │ ├── hyperbox.ico │ ├── hyperbox-logo.png │ ├── login-header.png │ ├── hyperbox-icon_128px.png │ ├── hyperbox-icon_16px.png │ ├── hyperbox-icon_32px.png │ ├── hyperbox-icon_64px.png │ └── hyperbox-LICENSE │ ├── hyperbox-client.desktop │ ├── java │ └── io │ │ └── kamax │ │ └── hboxc │ │ ├── gui │ │ ├── worker │ │ │ └── receiver │ │ │ │ ├── _HypervisorReceiver.java │ │ │ │ ├── _ConnectorBackendListReceiver.java │ │ │ │ ├── _ConsoleViewerListReceiver.java │ │ │ │ ├── _HypervisorModuleListReceiver.java │ │ │ │ ├── WorkerDataReceiver.java │ │ │ │ ├── _TaskReceiver.java │ │ │ │ ├── _HostReceiver.java │ │ │ │ ├── _ServerReceiver.java │ │ │ │ ├── _KeyboardTypeListReceiver.java │ │ │ │ ├── _AnswerWorkerReceiver.java │ │ │ │ ├── _ConnectorReceiver.java │ │ │ │ ├── _WorkerDataReceiver.java │ │ │ │ ├── _StoreListReceiver.java │ │ │ │ ├── _MachineReceiver.java │ │ │ │ ├── _SnapshotGetReceiver.java │ │ │ │ ├── _UserListReceiver.java │ │ │ │ ├── _NetModeListReceiver.java │ │ │ │ ├── _GuestNetworkInterfaceReceiver.java │ │ │ │ ├── _SnapshotListReceiver.java │ │ │ │ ├── _NetAdaptorListReceiver.java │ │ │ │ ├── _MachineScreenshotReceiver.java │ │ │ │ ├── _TaskListReceiver.java │ │ │ │ ├── _NetworkAttachModeReceiver.java │ │ │ │ ├── _NetworkAttachNameReceiver.java │ │ │ │ ├── _OsTypeListReceiver.java │ │ │ │ ├── _HypervisorLoaderListReceiver.java │ │ │ │ ├── _MachineListReceiver.java │ │ │ │ └── _NetworkInterfaceTypeReceiver.java │ │ ├── action │ │ │ ├── machine │ │ │ │ └── MachineLogGetAction.java │ │ │ ├── LoadingAction.java │ │ │ ├── hypervisor │ │ │ │ ├── _HypervisorSelector.java │ │ │ │ └── _SingleHypervisorSelector.java │ │ │ └── CloseAction.java │ │ ├── _Cancelable.java │ │ ├── _View.java │ │ ├── _Refreshable.java │ │ ├── storage │ │ │ ├── RemovableDriveViewer.java │ │ │ └── StorageDeviceViewer.java │ │ ├── _Saveable.java │ │ ├── _Initiable.java │ │ ├── snapshot │ │ │ ├── CurrentState.java │ │ │ └── _SnapshotSelector.java │ │ ├── notification │ │ │ ├── NotificationError.java │ │ │ ├── NotificationFailure.java │ │ │ ├── NotificationSuccess.java │ │ │ ├── NotificationWarning.java │ │ │ └── NotificationInfo.java │ │ ├── vm │ │ │ ├── _MachineSelector.java │ │ │ └── console │ │ │ │ └── viewer │ │ │ │ └── _ConsoleViewerSelector.java │ │ ├── server │ │ │ ├── _SingleServerSelector.java │ │ │ └── _ServerSelector.java │ │ ├── workers │ │ │ ├── ConnectorBackendListWorker.java │ │ │ ├── ConsolerViewerListWorker.java │ │ │ ├── _WorkerTracker.java │ │ │ ├── WorkerTrackerAdapter.java │ │ │ └── HypervisorGetWorker.java │ │ ├── connector │ │ │ ├── _SingleConnectorSelector.java │ │ │ └── _ConnectorSelector.java │ │ ├── store │ │ │ └── _StoreSelector.java │ │ ├── net │ │ │ └── _NetServiceEditor.java │ │ ├── settings │ │ │ └── GeneralSettingsViewer.java │ │ ├── tasks │ │ │ └── _TaskSelector.java │ │ ├── hypervisor │ │ │ ├── _GlobalConfigureView.java │ │ │ ├── _NetAdaptorConfigureView.java │ │ │ └── _HypervisorModel.java │ │ ├── security │ │ │ └── user │ │ │ │ └── _UserSelector.java │ │ ├── utils │ │ │ ├── MachineOutputComparator.java │ │ │ ├── StoreItemOutputComparator.java │ │ │ ├── HypervisorLoaderOutComparator.java │ │ │ └── StorageDeviceAttachmentOutComparator.java │ │ ├── data │ │ │ ├── generic │ │ │ │ ├── ServersGui.java │ │ │ │ ├── MachinesGui.java │ │ │ │ ├── SnapshotsGui.java │ │ │ │ ├── PermissionsGui.java │ │ │ │ └── HyperboxGui.java │ │ │ └── LoadingGui.java │ │ └── Config.java │ │ ├── server │ │ ├── _Console.java │ │ ├── task │ │ │ └── _Task.java │ │ ├── _GuestReader.java │ │ ├── _Device.java │ │ └── _Machine.java │ │ ├── event │ │ ├── _EventProcessor.java │ │ ├── ClientEventTypes.java │ │ ├── updater │ │ │ ├── UpdaterEvent.java │ │ │ ├── UpdaterCheckStarted.java │ │ │ ├── UpdaterCheckStopped.java │ │ │ └── UpdaterUpdateAvailableEvent.java │ │ ├── _EventWorker.java │ │ ├── storage │ │ │ ├── MediumAddedEvent.java │ │ │ ├── MediumRemovedEvent.java │ │ │ └── MediumUpdatedEvent.java │ │ ├── machine │ │ │ ├── MachineAddedEvent.java │ │ │ ├── MachineRemovedEvent.java │ │ │ ├── MachineDataChangedEvent.java │ │ │ ├── MachineSnapshotDataChangedEvent.java │ │ │ ├── MachineUpdatedEvent.java │ │ │ └── MachineStateChangedEvent.java │ │ ├── server │ │ │ ├── ServerModifiedEvent.java │ │ │ ├── ServerConnectedEvent.java │ │ │ └── ServerDisconnectedEvent.java │ │ ├── task │ │ │ ├── TaskAddedEvent.java │ │ │ └── TaskRemovedEvent.java │ │ ├── CoreStateEvent.java │ │ ├── connector │ │ │ ├── ConnectorRemovedEvent.java │ │ │ ├── ConnectorModifiedEvent.java │ │ │ ├── ConnectorEvent.java │ │ │ └── ConnectorAddedEvent.java │ │ ├── consoleviewer │ │ │ ├── ConsoleViewerAddedEvent.java │ │ │ ├── ConsoleViewerRemovedEvent.java │ │ │ ├── ConsoleViewerModifiedEvent.java │ │ │ └── ConsoleViewerEvent.java │ │ ├── _EventManager.java │ │ └── snapshot │ │ │ ├── SnapshotTakenEvent.java │ │ │ ├── SnapshotDeletedEvent.java │ │ │ ├── SnapshotModifiedEvent.java │ │ │ └── SnapshotRestoredEvent.java │ │ ├── constant │ │ ├── ClientEntity.java │ │ ├── ConsoleViewerAttributes.java │ │ └── ConnectorAttributes.java │ │ ├── state │ │ ├── CoreState.java │ │ ├── BackendStates.java │ │ ├── ConnectionState.java │ │ └── BackendConnectionState.java │ │ ├── _EventReceiver.java │ │ ├── controller │ │ ├── _ClientMessageReceiver.java │ │ └── action │ │ │ ├── AbstractClientControllerAction.java │ │ │ └── AbstractClientControllerMultiAction.java │ │ ├── core │ │ ├── _ConsoleViewer.java │ │ ├── _Entity.java │ │ ├── _ConsoleViewerReader.java │ │ ├── _ConsoleViewerWriter.java │ │ └── server │ │ │ └── ServerCredentials.java │ │ ├── updater │ │ ├── Channel.java │ │ └── _Release.java │ │ ├── factory │ │ ├── ServerFactory.java │ │ └── ModuleManagerFactory.java │ │ ├── exception │ │ ├── UpdaterScheduleException.java │ │ ├── UpdaterNoNewUpdateException.java │ │ ├── UpdaterNotEnabledException.java │ │ ├── ConsoleViewerNotFoundForType.java │ │ ├── ConnectorNotFoundException.java │ │ ├── ConsoleViewerNotFound.java │ │ ├── UpdaterException.java │ │ ├── ClientModuleException.java │ │ └── InputValidationException.java │ │ ├── comm │ │ ├── input │ │ │ └── BackendInput.java │ │ └── output │ │ │ └── BackendOutput.java │ │ ├── manager │ │ └── _Manager.java │ │ ├── HyperboxClientApplicationStart.java │ │ └── HyperboxClient.java │ └── scripts │ ├── hyperbox │ └── hyperbox.bat ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── README.md └── NOTICE /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'hbox-client' 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # IDEs 2 | .idea/ 3 | 4 | # Build 5 | .gradle/ 6 | build/ 7 | out/ 8 | lib/ 9 | -------------------------------------------------------------------------------- /src/main/icons/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/34.gif -------------------------------------------------------------------------------- /src/main/icons/cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/cd.png -------------------------------------------------------------------------------- /src/main/icons/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/add.png -------------------------------------------------------------------------------- /src/main/icons/disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/disk.png -------------------------------------------------------------------------------- /src/main/icons/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/edit.png -------------------------------------------------------------------------------- /src/main/icons/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/exit.png -------------------------------------------------------------------------------- /src/main/icons/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/help.png -------------------------------------------------------------------------------- /src/main/icons/task.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/task.png -------------------------------------------------------------------------------- /src/main/icons/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/user.png -------------------------------------------------------------------------------- /src/main/icons/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/camera.png -------------------------------------------------------------------------------- /src/main/icons/cd_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/cd_add.png -------------------------------------------------------------------------------- /src/main/icons/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/cross.png -------------------------------------------------------------------------------- /src/main/icons/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/delete.png -------------------------------------------------------------------------------- /src/main/icons/details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/details.png -------------------------------------------------------------------------------- /src/main/icons/drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/drive.png -------------------------------------------------------------------------------- /src/main/icons/module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/module.png -------------------------------------------------------------------------------- /src/main/icons/monitor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/monitor.png -------------------------------------------------------------------------------- /src/main/icons/network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/network.png -------------------------------------------------------------------------------- /src/main/icons/reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/reload.png -------------------------------------------------------------------------------- /src/main/icons/server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server.png -------------------------------------------------------------------------------- /src/main/icons/sound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/sound.png -------------------------------------------------------------------------------- /src/main/icons/store.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store.png -------------------------------------------------------------------------------- /src/main/icons/tab_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/tab_add.png -------------------------------------------------------------------------------- /src/main/icons/world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/world.png -------------------------------------------------------------------------------- /src/main/img/hyperbox.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/img/hyperbox.ico -------------------------------------------------------------------------------- /src/main/icons/camera_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/camera_go.png -------------------------------------------------------------------------------- /src/main/icons/cd_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/cd_delete.png -------------------------------------------------------------------------------- /src/main/icons/cd_modify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/cd_modify.png -------------------------------------------------------------------------------- /src/main/icons/computer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/computer.png -------------------------------------------------------------------------------- /src/main/icons/database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/database.png -------------------------------------------------------------------------------- /src/main/icons/drive_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/drive_add.png -------------------------------------------------------------------------------- /src/main/icons/drive_cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/drive_cd.png -------------------------------------------------------------------------------- /src/main/icons/harddisk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/harddisk.png -------------------------------------------------------------------------------- /src/main/icons/play_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/play_blue.png -------------------------------------------------------------------------------- /src/main/icons/stop_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/stop_red.png -------------------------------------------------------------------------------- /src/main/icons/store_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_add.png -------------------------------------------------------------------------------- /src/main/icons/user_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/user_add.png -------------------------------------------------------------------------------- /src/main/icons/user_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/user_edit.png -------------------------------------------------------------------------------- /src/main/icons/camera_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/camera_add.png -------------------------------------------------------------------------------- /src/main/icons/camera_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/camera_edit.png -------------------------------------------------------------------------------- /src/main/icons/camera_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/camera_start.png -------------------------------------------------------------------------------- /src/main/icons/camera_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/camera_stop.png -------------------------------------------------------------------------------- /src/main/icons/computer_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/computer_add.png -------------------------------------------------------------------------------- /src/main/icons/controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/controller.png -------------------------------------------------------------------------------- /src/main/icons/database_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/database_add.png -------------------------------------------------------------------------------- /src/main/icons/disconnect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/disconnect.png -------------------------------------------------------------------------------- /src/main/icons/disk_upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/disk_upload.png -------------------------------------------------------------------------------- /src/main/icons/drive_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/drive_delete.png -------------------------------------------------------------------------------- /src/main/icons/drive_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/drive_disk.png -------------------------------------------------------------------------------- /src/main/icons/module_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/module_add.png -------------------------------------------------------------------------------- /src/main/icons/pause_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/pause_blue.png -------------------------------------------------------------------------------- /src/main/icons/play_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/play_green.png -------------------------------------------------------------------------------- /src/main/icons/server_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_edit.png -------------------------------------------------------------------------------- /src/main/icons/server_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_error.png -------------------------------------------------------------------------------- /src/main/icons/server_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_link.png -------------------------------------------------------------------------------- /src/main/icons/server_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_start.png -------------------------------------------------------------------------------- /src/main/icons/server_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_stop.png -------------------------------------------------------------------------------- /src/main/icons/shape_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/shape_shadow.png -------------------------------------------------------------------------------- /src/main/icons/store_browse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_browse.png -------------------------------------------------------------------------------- /src/main/icons/store_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_close.png -------------------------------------------------------------------------------- /src/main/icons/store_create.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_create.png -------------------------------------------------------------------------------- /src/main/icons/store_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_delete.png -------------------------------------------------------------------------------- /src/main/icons/store_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_open.png -------------------------------------------------------------------------------- /src/main/icons/tab_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/tab_delete.png -------------------------------------------------------------------------------- /src/main/icons/user_create.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/user_create.png -------------------------------------------------------------------------------- /src/main/icons/user_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/user_delete.png -------------------------------------------------------------------------------- /src/main/img/hyperbox-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/img/hyperbox-logo.png -------------------------------------------------------------------------------- /src/main/img/login-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/img/login-header.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/icons/computer_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/computer_edit.png -------------------------------------------------------------------------------- /src/main/icons/computer_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/computer_link.png -------------------------------------------------------------------------------- /src/main/icons/computer_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/computer_stop.png -------------------------------------------------------------------------------- /src/main/icons/control_power.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/control_power.png -------------------------------------------------------------------------------- /src/main/icons/database_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/database_link.png -------------------------------------------------------------------------------- /src/main/icons/disk_download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/disk_download.png -------------------------------------------------------------------------------- /src/main/icons/module_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/module_delete.png -------------------------------------------------------------------------------- /src/main/icons/module_disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/module_disable.png -------------------------------------------------------------------------------- /src/main/icons/server_connect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_connect.png -------------------------------------------------------------------------------- /src/main/icons/server_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_delete.png -------------------------------------------------------------------------------- /src/main/icons/server_wrench.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_wrench.png -------------------------------------------------------------------------------- /src/main/icons/store_register.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_register.png -------------------------------------------------------------------------------- /src/main/icons/computer_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/computer_delete.png -------------------------------------------------------------------------------- /src/main/icons/control_play_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/control_play_blue.png -------------------------------------------------------------------------------- /src/main/icons/server_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/server_lightning.png -------------------------------------------------------------------------------- /src/main/icons/store_unregister.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/store_unregister.png -------------------------------------------------------------------------------- /src/main/icons/user_set_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/user_set_password.png -------------------------------------------------------------------------------- /src/main/img/hyperbox-icon_128px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/img/hyperbox-icon_128px.png -------------------------------------------------------------------------------- /src/main/img/hyperbox-icon_16px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/img/hyperbox-icon_16px.png -------------------------------------------------------------------------------- /src/main/img/hyperbox-icon_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/img/hyperbox-icon_32px.png -------------------------------------------------------------------------------- /src/main/img/hyperbox-icon_64px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/img/hyperbox-icon_64px.png -------------------------------------------------------------------------------- /src/main/icons/control_power_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperbox/client/HEAD/src/main/icons/control_power_blue.png -------------------------------------------------------------------------------- /src/main/img/hyperbox-LICENSE: -------------------------------------------------------------------------------- 1 | Hyperbox Icons, Logo and all files starting with "hyperbox" 2 | Copyright (c) 2013 Max Dor. All rights reserved. 3 | -------------------------------------------------------------------------------- /src/main/icons/icons-LICENSE: -------------------------------------------------------------------------------- 1 | All icons are part of the "Silk Icon Set" and "Silk Companion Icon Set" 2 | See /doc/legal for more details 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hyperbox Client 2 | 3 | To get started on Hyperbox, please visit the [hyperbox](https://github.com/hyperbox/hyperbox "HBox @ GitHub") repository. 4 | -------------------------------------------------------------------------------- /src/main/hyperbox-client.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Name=Hyperbox 4 | Type=Application 5 | Categories=Utility;System; 6 | Comment=Manage your virtual infrastructure 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_HypervisorReceiver.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.worker.receiver; 2 | 3 | import io.kamax.hbox.comm.out.hypervisor.HypervisorOut; 4 | 5 | 6 | public interface _HypervisorReceiver extends _WorkerDataReceiver { 7 | 8 | public void put(HypervisorOut hypOut); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_ConnectorBackendListReceiver.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.worker.receiver; 2 | 3 | import io.kamax.hboxc.comm.output.BackendOutput; 4 | 5 | import java.util.List; 6 | 7 | public interface _ConnectorBackendListReceiver extends _WorkerDataReceiver { 8 | 9 | public void add(List objOutList); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_ConsoleViewerListReceiver.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.worker.receiver; 2 | 3 | import io.kamax.hboxc.comm.output.ConsoleViewerOutput; 4 | 5 | import java.util.List; 6 | 7 | 8 | public interface _ConsoleViewerListReceiver extends _WorkerDataReceiver { 9 | 10 | public void add(List objOutList); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_HypervisorModuleListReceiver.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.worker.receiver; 2 | 3 | import io.kamax.hbox.comm.out.hypervisor.HypervisorLoaderOut; 4 | 5 | import java.util.List; 6 | 7 | public interface _HypervisorModuleListReceiver extends _WorkerDataReceiver { 8 | 9 | public void add(List objOutList); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/WorkerDataReceiver.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.worker.receiver; 2 | 3 | import io.kamax.hboxc.gui.Gui; 4 | import io.kamax.tools.logging.KxLog; 5 | import org.slf4j.Logger; 6 | 7 | import java.lang.invoke.MethodHandles; 8 | 9 | public class WorkerDataReceiver implements _WorkerDataReceiver { 10 | 11 | private static final Logger log = KxLog.make(MethodHandles.lookup().lookupClass()); 12 | 13 | @Override 14 | public void loadingStarted() { 15 | // stub 16 | 17 | } 18 | 19 | @Override 20 | public void loadingFinished(boolean isSuccessful, Throwable t) { 21 | if (!isSuccessful) { 22 | log.error("Tracing Exception", t); 23 | Gui.showError(t); 24 | } 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Hyperbox - Virtual Infrastructure Manager 2 | Copyright (C) 2013 Max Dor 3 | 4 | https://apps.kamax.io/hyperbox/ 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU Affero General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU Affero General Public License for more details. 15 | 16 | You should have received a copy of the GNU Affero General Public License 17 | along with this program. If not, see . 18 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/action/machine/MachineLogGetAction.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.action.machine; 2 | 3 | import io.kamax.hbox.comm.HypervisorTasks; 4 | import io.kamax.hboxc.gui.builder.IconBuilder; 5 | import io.kamax.hboxc.gui.vm.MachineLogFileViewer; 6 | 7 | import javax.swing.*; 8 | import java.awt.event.ActionEvent; 9 | 10 | 11 | public class MachineLogGetAction extends AbstractAction { 12 | 13 | /** 14 | * 15 | */ 16 | private static final long serialVersionUID = -3163242452645805100L; 17 | private String _srvId; 18 | private String _vmId; 19 | 20 | public MachineLogGetAction(String srvId, String vmId) { 21 | super("View Log Files", IconBuilder.getTask(HypervisorTasks.MachineLogFileGet)); 22 | _srvId = srvId; 23 | _vmId = vmId; 24 | } 25 | 26 | @Override 27 | public void actionPerformed(ActionEvent ae) { 28 | MachineLogFileViewer.show(_srvId, _vmId); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/_Cancelable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui; 22 | 23 | public interface _Cancelable { 24 | 25 | public void cancel(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/server/_Console.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.server; 22 | 23 | public interface _Console extends _Device { 24 | 25 | // stub 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/server/task/_Task.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.server.task; 22 | 23 | public interface _Task { 24 | 25 | public void cancel(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/_EventProcessor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event; 22 | 23 | public interface _EventProcessor { 24 | 25 | public void post(Object o); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/_View.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui; 22 | 23 | import javax.swing.*; 24 | 25 | public interface _View { 26 | 27 | public JPanel getPanel(); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/constant/ClientEntity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.constant; 22 | 23 | public enum ClientEntity { 24 | 25 | Backend, 26 | Connector, 27 | ConsoleViewer 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/_Refreshable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui; 23 | 24 | public interface _Refreshable { 25 | 26 | public void refresh(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/state/CoreState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.state; 22 | 23 | public enum CoreState { 24 | 25 | Starting, 26 | Started, 27 | Stopping, 28 | Stopped 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/state/BackendStates.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.state; 22 | 23 | public enum BackendStates { 24 | 25 | Starting, 26 | Started, 27 | Stopping, 28 | Stopped 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/ClientEventTypes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event; 22 | 23 | public enum ClientEventTypes { 24 | 25 | BackendState, 26 | BackendConnState, 27 | CoreState, 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/scripts/hyperbox: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Hyperbox - Virtual Infrastructure Manager 3 | # Copyright (C) 2013 Max Dor 4 | # 5 | # https://apps.kamax.io/hyperbox 6 | # 7 | # This program is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation under version 2 of the License. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License along 17 | # with this program; if not, write to the Free Software Foundation, Inc., 18 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 | 20 | export HBOX_CLIENT_BASE_DIR=$(dirname $0) 21 | export JAVA_OPTS="-splash:$HBOX_CLIENT_BASE_DIR/icons/login-header.png" 22 | 23 | "$HBOX_CLIENT_BASE_DIR/bin/hbox-client" "$@" 24 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/_EventReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc; 22 | 23 | import io.kamax.hbox.comm.out.event.EventOut; 24 | 25 | public interface _EventReceiver { 26 | 27 | void post(EventOut evOut); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/action/LoadingAction.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.action; 2 | 3 | import io.kamax.hboxc.gui.builder.IconBuilder; 4 | import io.kamax.tools.logging.KxLog; 5 | import org.slf4j.Logger; 6 | 7 | import javax.swing.*; 8 | import java.awt.event.ActionEvent; 9 | import java.lang.invoke.MethodHandles; 10 | 11 | 12 | public class LoadingAction extends AbstractAction { 13 | 14 | private static final Logger log = KxLog.make(MethodHandles.lookup().lookupClass()); 15 | 16 | private static LoadingAction action = new LoadingAction(); 17 | 18 | public LoadingAction() { 19 | this(null); 20 | } 21 | 22 | public LoadingAction(String text) { 23 | super(text, IconBuilder.LoadingIcon); 24 | setEnabled(false); 25 | } 26 | 27 | @Override 28 | public void actionPerformed(ActionEvent e) { 29 | log.error("Tracing Exception", new Exception("Trying to use the loading action!")); 30 | } 31 | 32 | public static LoadingAction get() { 33 | return action; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/storage/RemovableDriveViewer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.storage; 22 | 23 | public final class RemovableDriveViewer extends StorageDeviceViewer { 24 | 25 | // TODO complete 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/state/ConnectionState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.state; 22 | 23 | public enum ConnectionState { 24 | 25 | Connecting, 26 | Connected, 27 | Disconnecting, 28 | Disconnected, 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/action/hypervisor/_HypervisorSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.action.hypervisor; 22 | 23 | public interface _HypervisorSelector extends _SingleHypervisorSelector { 24 | 25 | // stub 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/_Saveable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | 25 | public interface _Saveable { 26 | 27 | public void save() throws HyperboxException; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/state/BackendConnectionState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.state; 22 | 23 | public enum BackendConnectionState { 24 | 25 | Connecting, 26 | Connected, 27 | Disconnecting, 28 | Disconnected, 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/_Initiable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | 25 | public interface _Initiable { 26 | 27 | public void init() throws HyperboxException; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/snapshot/CurrentState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.snapshot; 22 | 23 | public class CurrentState { 24 | 25 | @Override 26 | public String toString() { 27 | return "Current State"; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/scripts/hyperbox.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Hyperbox - Virtual Infrastructure Manager 3 | @rem Copyright (C) 2021 Max Dor 4 | @rem 5 | @rem https://apps.kamax.io/hyperbox/ 6 | @rem 7 | @rem This program is free software: you can redistribute it and/or modify 8 | @rem it under the terms of the GNU Affero General Public License as published by 9 | @rem the Free Software Foundation, either version 3 of the License, or 10 | @rem (at your option) any later version. 11 | @rem 12 | @rem This program is distributed in the hope that it will be useful, 13 | @rem but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | @rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | @rem GNU Affero General Public License for more details. 16 | @rem 17 | @rem You should have received a copy of the GNU Affero General Public License 18 | @rem along with this program. If not, see . 19 | @rem 20 | 21 | @echo off 22 | 23 | set DIRNAME=%~dp0 24 | if "%DIRNAME%" == "" set DIRNAME=. 25 | 26 | set JAVA_OPTS=-splash:"%DIRNAME%\icons\login-header.png" 27 | "%DIRNAME%\bin\hbox-client.bat" 28 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/action/hypervisor/_SingleHypervisorSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.action.hypervisor; 22 | 23 | public interface _SingleHypervisorSelector { 24 | 25 | public String getConnectorId(); 26 | 27 | public String getServerId(); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/notification/NotificationError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.notification; 22 | 23 | public class NotificationError extends Notification { 24 | 25 | private static final long serialVersionUID = -3217838045354562367L; 26 | 27 | // stub 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_TaskReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.TaskOut; 24 | 25 | public interface _TaskReceiver extends _WorkerDataReceiver { 26 | 27 | public void put(TaskOut tskOut); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/constant/ConsoleViewerAttributes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.constant; 23 | 24 | public enum ConsoleViewerAttributes { 25 | 26 | Id, 27 | HypervisorTypeId, 28 | ModuleId, 29 | ViewerPath, 30 | Args, 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/controller/_ClientMessageReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.controller; 22 | 23 | import io.kamax.hbox.comm._RequestReceiver; 24 | 25 | public interface _ClientMessageReceiver extends _RequestReceiver { 26 | 27 | public void post(MessageInput mIn); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/notification/NotificationFailure.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.notification; 22 | 23 | public class NotificationFailure extends Notification { 24 | 25 | private static final long serialVersionUID = 6178896956254931331L; 26 | 27 | // stub 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/vm/_MachineSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.vm; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _MachineSelector { 28 | 29 | public List getMachines(); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_HostReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.host.HostOut; 24 | 25 | public interface _HostReceiver extends _WorkerDataReceiver { 26 | 27 | public void put(HostOut hostOut); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/core/_ConsoleViewer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.core; 23 | 24 | public interface _ConsoleViewer extends _ConsoleViewerWriter, _ConsoleViewerReader { 25 | 26 | public void save(); 27 | 28 | public void remove(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/notification/NotificationSuccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.notification; 22 | 23 | 24 | public class NotificationSuccess extends Notification { 25 | 26 | private static final long serialVersionUID = 5371108309279024819L; 27 | 28 | // stub 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/notification/NotificationWarning.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.notification; 22 | 23 | 24 | public class NotificationWarning extends Notification { 25 | 26 | private static final long serialVersionUID = -7971579756649895201L; 27 | 28 | // stub 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/server/_SingleServerSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.server; 23 | 24 | import io.kamax.hbox.comm.out.ServerOut; 25 | 26 | public interface _SingleServerSelector { 27 | 28 | public ServerOut getServer(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_ServerReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | 25 | public interface _ServerReceiver extends _WorkerDataReceiver { 26 | 27 | public void put(ServerOut srvOut); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/workers/ConnectorBackendListWorker.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.workers; 2 | 3 | import io.kamax.hboxc.comm.output.BackendOutput; 4 | import io.kamax.hboxc.gui.Gui; 5 | import io.kamax.hboxc.gui.utils.AxSwingWorker; 6 | import io.kamax.hboxc.gui.worker.receiver._ConnectorBackendListReceiver; 7 | 8 | import java.util.List; 9 | 10 | 11 | public class ConnectorBackendListWorker extends AxSwingWorker<_ConnectorBackendListReceiver, Void, BackendOutput> { 12 | 13 | public ConnectorBackendListWorker(_ConnectorBackendListReceiver recv) { 14 | super(recv); 15 | } 16 | 17 | @Override 18 | protected Void innerDoInBackground() throws Exception { 19 | for (BackendOutput bOut : Gui.getReader().listBackends()) { 20 | publish(bOut); 21 | } 22 | 23 | return null; 24 | } 25 | 26 | @Override 27 | protected void process(List list) { 28 | getReceiver().add(list); 29 | } 30 | 31 | public static void execute(_ConnectorBackendListReceiver recv) { 32 | new ConnectorBackendListWorker(recv).execute(); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/server/_GuestReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.server; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.GuestNetworkInterfaceOut; 24 | 25 | public interface _GuestReader { 26 | 27 | public GuestNetworkInterfaceOut findNetworkInterface(String macAddress); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/updater/UpdaterEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.updater; 22 | 23 | import io.kamax.hbox.event.Event; 24 | 25 | public abstract class UpdaterEvent extends Event { 26 | 27 | public UpdaterEvent(Enum eventId) { 28 | super(eventId); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_KeyboardTypeListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import java.util.List; 24 | 25 | public interface _KeyboardTypeListReceiver extends _WorkerDataReceiver { 26 | 27 | public void add(List keyboardList); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/updater/Channel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.updater; 22 | 23 | public enum Channel { 24 | 25 | /** 26 | * Stable build following roadmap 27 | */ 28 | Stable, 29 | 30 | /** 31 | * Builds from repository, not stable 32 | */ 33 | Fresh 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/_EventWorker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event; 22 | 23 | import io.kamax.hbox.comm.out.event.EventOut; 24 | 25 | public interface _EventWorker { 26 | 27 | public String getId(); 28 | 29 | public String getEventId(); 30 | 31 | public void work(EventOut evOut); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/server/_ServerSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.server; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _ServerSelector extends _SingleServerSelector { 28 | 29 | public List getServers(); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_AnswerWorkerReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 - Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | * 20 | */ 21 | 22 | package io.kamax.hboxc.gui.worker.receiver; 23 | 24 | import io.kamax.hbox.comm._AnswerReceiver; 25 | 26 | 27 | public interface _AnswerWorkerReceiver extends _WorkerDataReceiver, _AnswerReceiver { 28 | 29 | // stub 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_ConnectorReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hboxc.comm.output.ConnectorOutput; 24 | 25 | public interface _ConnectorReceiver extends _WorkerDataReceiver { 26 | 27 | public void put(ConnectorOutput conOut); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/notification/NotificationInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.notification; 22 | 23 | public class NotificationInfo extends Notification { 24 | 25 | private static final long serialVersionUID = -6634148310060298711L; 26 | 27 | public NotificationInfo() { 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/workers/ConsolerViewerListWorker.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.workers; 2 | 3 | import io.kamax.hboxc.comm.output.ConsoleViewerOutput; 4 | import io.kamax.hboxc.gui.Gui; 5 | import io.kamax.hboxc.gui.utils.AxSwingWorker; 6 | import io.kamax.hboxc.gui.worker.receiver._ConsoleViewerListReceiver; 7 | 8 | import java.util.List; 9 | 10 | 11 | public class ConsolerViewerListWorker extends AxSwingWorker<_ConsoleViewerListReceiver, Void, ConsoleViewerOutput> { 12 | 13 | public ConsolerViewerListWorker(_ConsoleViewerListReceiver recv) { 14 | super(recv); 15 | } 16 | 17 | @Override 18 | protected Void innerDoInBackground() throws Exception { 19 | for (ConsoleViewerOutput con : Gui.getReader().listConsoleViewers()) { 20 | publish(con); 21 | } 22 | 23 | return null; 24 | } 25 | 26 | @Override 27 | protected void process(List objOutList) { 28 | getReceiver().add(objOutList); 29 | } 30 | 31 | public static void execute(_ConsoleViewerListReceiver recv) { 32 | new ConsolerViewerListWorker(recv).execute(); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/connector/_SingleConnectorSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.connector; 23 | 24 | import io.kamax.hboxc.comm.output.ConnectorOutput; 25 | 26 | public interface _SingleConnectorSelector { 27 | 28 | public ConnectorOutput getConnector(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/store/_StoreSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.store; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _StoreSelector { 28 | 29 | public ServerOut getServer(); 30 | 31 | public List getSelection(); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/server/_Device.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.server; 22 | 23 | import io.kamax.hboxc.core._Entity; 24 | 25 | public interface _Device extends _Entity { 26 | 27 | public _Machine getMachine(); 28 | 29 | @Override 30 | public String getId(); 31 | 32 | public String getType(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_WorkerDataReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.worker.receiver; 23 | 24 | public interface _WorkerDataReceiver { 25 | 26 | public void loadingStarted(); 27 | 28 | public void loadingFinished(boolean isSuccessful, Throwable t); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/updater/UpdaterCheckStarted.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.updater; 22 | 23 | import io.kamax.hboxc.event.ClientEvents; 24 | 25 | public class UpdaterCheckStarted extends UpdaterEvent { 26 | 27 | public UpdaterCheckStarted() { 28 | super(ClientEvents.UpdaterCheckStarted); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/updater/UpdaterCheckStopped.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.updater; 22 | 23 | import io.kamax.hboxc.event.ClientEvents; 24 | 25 | public class UpdaterCheckStopped extends UpdaterEvent { 26 | 27 | public UpdaterCheckStopped() { 28 | super(ClientEvents.UpdaterCheckStopped); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_StoreListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.StoreOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _StoreListReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List stoOutList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_MachineReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.worker.receiver; 23 | 24 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 25 | 26 | public interface _MachineReceiver extends _WorkerDataReceiver { 27 | 28 | public void put(MachineOut mOut); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_SnapshotGetReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.SnapshotOut; 24 | 25 | public interface _SnapshotGetReceiver extends _WorkerDataReceiver { 26 | 27 | public void put(String srvId, String vmId, SnapshotOut snapOut); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_UserListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.security.UserOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _UserListReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List usrOutList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/factory/ServerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.factory; 23 | 24 | import io.kamax.hboxc.core.server.Server; 25 | import io.kamax.hboxc.server._Server; 26 | 27 | public class ServerFactory { 28 | 29 | public static _Server get() { 30 | return new Server(); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_NetModeListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.network.NetModeOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _NetModeListReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List netModes); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/UpdaterScheduleException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.exception; 22 | 23 | 24 | public class UpdaterScheduleException extends UpdaterException { 25 | 26 | private static final long serialVersionUID = 1240133987182742940L; 27 | 28 | public UpdaterScheduleException(String s) { 29 | super(s); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_GuestNetworkInterfaceReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.GuestNetworkInterfaceOut; 24 | 25 | public interface _GuestNetworkInterfaceReceiver extends _WorkerDataReceiver { 26 | 27 | public void put(GuestNetworkInterfaceOut gNicOut); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_SnapshotListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.SnapshotOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _SnapshotListReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List objOutList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/core/_Entity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.core; 22 | 23 | import io.kamax.tools.setting._Settable; 24 | 25 | import java.util.Set; 26 | 27 | public interface _Entity extends _Settable { 28 | 29 | public String getId(); 30 | 31 | public void unsetSetting(String id); 32 | 33 | public void unsetSettings(Set ids); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/updater/UpdaterUpdateAvailableEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.updater; 22 | 23 | import io.kamax.hboxc.event.ClientEvents; 24 | 25 | public class UpdaterUpdateAvailableEvent extends UpdaterEvent { 26 | 27 | public UpdaterUpdateAvailableEvent() { 28 | super(ClientEvents.UpdaterUpdateAvailable); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/net/_NetServiceEditor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.net; 22 | 23 | import io.kamax.hbox.comm.io.NetServiceIO; 24 | 25 | import javax.swing.*; 26 | 27 | public interface _NetServiceEditor { 28 | 29 | public String getServiceId(); 30 | 31 | public JComponent getComponent(); 32 | 33 | public NetServiceIO getInput(); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_NetAdaptorListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.network.NetAdaptorOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _NetAdaptorListReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List adaptOutList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_MachineScreenshotReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.worker.receiver; 23 | 24 | import io.kamax.hbox.comm.out.hypervisor.ScreenshotOut; 25 | 26 | public interface _MachineScreenshotReceiver extends _WorkerDataReceiver { 27 | 28 | public void put(ScreenshotOut scrOut); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_TaskListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.worker.receiver; 23 | 24 | import io.kamax.hbox.comm.out.TaskOut; 25 | 26 | import java.util.List; 27 | 28 | public interface _TaskListReceiver extends _WorkerDataReceiver { 29 | 30 | public void add(List objOutList); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/workers/_WorkerTracker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 - Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.workers; 22 | 23 | import io.kamax.hboxc.gui.utils.AxSwingWorker; 24 | 25 | public interface _WorkerTracker { 26 | 27 | public static final _WorkerTracker EMPTY = new WorkerTrackerAdapter(); 28 | 29 | public AxSwingWorker register(AxSwingWorker worker); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/connector/_ConnectorSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.connector; 23 | 24 | import io.kamax.hboxc.comm.output.ConnectorOutput; 25 | 26 | import java.util.List; 27 | 28 | public interface _ConnectorSelector extends _SingleConnectorSelector { 29 | 30 | public List listConnectors(); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/workers/WorkerTrackerAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 - Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.workers; 22 | 23 | import io.kamax.hboxc.gui.utils.AxSwingWorker; 24 | 25 | public class WorkerTrackerAdapter implements _WorkerTracker { 26 | 27 | @Override 28 | public AxSwingWorker register(AxSwingWorker worker) { 29 | return worker; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/server/_Machine.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.server; 22 | 23 | import io.kamax.hbox.comm.in.SnapshotIn; 24 | import io.kamax.hboxc.core._Entity; 25 | 26 | public interface _Machine extends _Entity { 27 | 28 | public _Server getServer(); 29 | 30 | public _Console getConsole(); 31 | 32 | public void takeSnapshot(SnapshotIn snapshotIn); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/comm/input/BackendInput.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.comm.input; 23 | 24 | import io.kamax.hbox.comm.in.ObjectIn; 25 | import io.kamax.hbox.constant.EntityType; 26 | 27 | public class BackendInput extends ObjectIn { 28 | 29 | public BackendInput() { 30 | super(EntityType.Backend); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/vm/console/viewer/_ConsoleViewerSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.vm.console.viewer; 23 | 24 | import io.kamax.hboxc.comm.output.ConsoleViewerOutput; 25 | 26 | import java.util.List; 27 | 28 | public interface _ConsoleViewerSelector { 29 | 30 | public List getConsoleViewers(); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_NetworkAttachModeReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.network.NetworkAttachModeOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _NetworkAttachModeReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List objOutList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_NetworkAttachNameReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.network.NetworkAttachNameOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _NetworkAttachNameReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List objOutList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/constant/ConnectorAttributes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.constant; 23 | 24 | public enum ConnectorAttributes { 25 | 26 | Id, 27 | Label, 28 | Address, 29 | Port, 30 | BackendId, 31 | isConnected, 32 | ConnectionState, 33 | Credentials, 34 | ServerId, 35 | Server, 36 | Username, 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_OsTypeListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.worker.receiver; 23 | 24 | import io.kamax.hbox.comm.out.hypervisor.OsTypeOut; 25 | 26 | import java.util.List; 27 | 28 | public interface _OsTypeListReceiver extends _WorkerDataReceiver { 29 | 30 | public void add(List objOutList); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/core/_ConsoleViewerReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.core; 23 | 24 | public interface _ConsoleViewerReader { 25 | 26 | public String getId(); 27 | 28 | public String getHypervisorId(); 29 | 30 | public String getModuleId(); 31 | 32 | public String getViewerPath(); 33 | 34 | public String getArgs(); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/storage/MediumAddedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.storage; 22 | 23 | import io.kamax.hbox.comm.out.storage.MediumOut; 24 | import io.kamax.hboxc.event.ClientEvents; 25 | 26 | public class MediumAddedEvent extends MediumEvent { 27 | 28 | public MediumAddedEvent(MediumOut medOut) { 29 | super(ClientEvents.MediumAdd, medOut); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_HypervisorLoaderListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.HypervisorLoaderOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _HypervisorLoaderListReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List hypLoadList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_MachineListReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.worker.receiver; 23 | 24 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 25 | 26 | import java.util.List; 27 | 28 | public interface _MachineListReceiver extends _WorkerDataReceiver { 29 | 30 | public void add(List objOutList); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/worker/receiver/_NetworkInterfaceTypeReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.worker.receiver; 22 | 23 | import io.kamax.hbox.comm.out.network.NetworkInterfaceTypeOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _NetworkInterfaceTypeReceiver extends _WorkerDataReceiver { 28 | 29 | public void add(List objOutList); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/core/_ConsoleViewerWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.core; 23 | 24 | public interface _ConsoleViewerWriter { 25 | 26 | public void setHypervisorId(String hypervisorId); 27 | 28 | public void setModuleId(String moduleId); 29 | 30 | public void setViewer(String viewerPath); 31 | 32 | public void setArgs(String args); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/storage/MediumRemovedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.storage; 22 | 23 | import io.kamax.hbox.comm.out.storage.MediumOut; 24 | import io.kamax.hboxc.event.ClientEvents; 25 | 26 | public class MediumRemovedEvent extends MediumEvent { 27 | 28 | public MediumRemovedEvent(MediumOut medOut) { 29 | super(ClientEvents.MediumRemoved, medOut); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/storage/MediumUpdatedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.storage; 22 | 23 | import io.kamax.hbox.comm.out.storage.MediumOut; 24 | import io.kamax.hboxc.event.ClientEvents; 25 | 26 | public class MediumUpdatedEvent extends MediumEvent { 27 | 28 | public MediumUpdatedEvent(MediumOut medOut) { 29 | super(ClientEvents.MediumUpdate, medOut); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/snapshot/_SnapshotSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.snapshot; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | import io.kamax.hbox.comm.out.hypervisor.SnapshotOut; 25 | 26 | import java.util.List; 27 | 28 | public interface _SnapshotSelector { 29 | 30 | public List getSelection(); 31 | 32 | public MachineOut getMachine(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/settings/GeneralSettingsViewer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.settings; 23 | 24 | import javax.swing.*; 25 | 26 | public class GeneralSettingsViewer { 27 | 28 | public JComponent getComponet() { 29 | return new JPanel(); 30 | } 31 | 32 | public void load() { 33 | // TODO Auto-generated method stub 34 | 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/machine/MachineAddedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.machine; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | import io.kamax.hboxc.event.ClientEvents; 25 | 26 | public final class MachineAddedEvent extends MachineEvent { 27 | 28 | public MachineAddedEvent(String srvId, MachineOut mOut) { 29 | super(ClientEvents.MachineAdd, srvId, mOut); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/server/ServerModifiedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.server; 23 | 24 | import io.kamax.hbox.comm.out.ServerOut; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class ServerModifiedEvent extends ServerEvent { 28 | 29 | public ServerModifiedEvent(ServerOut srv) { 30 | super(ClientEvents.ServerModified, srv); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/machine/MachineRemovedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.machine; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | import io.kamax.hboxc.event.ClientEvents; 25 | 26 | public final class MachineRemovedEvent extends MachineEvent { 27 | 28 | public MachineRemovedEvent(String srvId, MachineOut mOut) { 29 | super(ClientEvents.MachineRemoved, srvId, mOut); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/updater/_Release.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.updater; 22 | 23 | import io.kamax.tools.Version; 24 | 25 | import java.net.URL; 26 | import java.util.Date; 27 | 28 | public interface _Release { 29 | 30 | public String getChannel(); 31 | 32 | public Version getVersion(); 33 | 34 | public Date getDate(); 35 | 36 | public URL getChangeLogURL(); 37 | 38 | public URL getDownloadURL(); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/task/TaskAddedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.task; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | import io.kamax.hbox.comm.out.TaskOut; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class TaskAddedEvent extends TaskEvent { 28 | 29 | public TaskAddedEvent(ServerOut srvOut, TaskOut taskOut) { 30 | super(ClientEvents.TaskAdded, srvOut, taskOut); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/task/TaskRemovedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.task; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | import io.kamax.hbox.comm.out.TaskOut; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class TaskRemovedEvent extends TaskEvent { 28 | 29 | public TaskRemovedEvent(ServerOut srvOut, TaskOut taskOut) { 30 | super(ClientEvents.TaskRemoved, srvOut, taskOut); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/machine/MachineDataChangedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.machine; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | import io.kamax.hbox.event.HyperboxEvents; 25 | 26 | public class MachineDataChangedEvent extends MachineUpdatedEvent { 27 | 28 | public MachineDataChangedEvent(String srvId, MachineOut mOut) { 29 | super(HyperboxEvents.MachineDataChange, srvId, mOut); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/tasks/_TaskSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.tasks; 22 | 23 | import io.kamax.hbox.comm.out.TaskOut; 24 | 25 | import java.util.List; 26 | 27 | public interface _TaskSelector { 28 | 29 | /** 30 | * Give the list of Task IDs currently selected by the user on this TaskSelector object 31 | * 32 | * @return a List of String IDs for the tasks 33 | */ 34 | public List getSelection(); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/CoreStateEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event; 22 | 23 | import io.kamax.hbox.event.Event; 24 | import io.kamax.hboxc.state.CoreState; 25 | 26 | public class CoreStateEvent extends Event { 27 | 28 | public CoreStateEvent(CoreState state) { 29 | super(ClientEventTypes.CoreState); 30 | set(state); 31 | } 32 | 33 | public CoreState getState() { 34 | return get(CoreState.class); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/hypervisor/_GlobalConfigureView.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.hypervisor; 22 | 23 | import io.kamax.hbox.comm.in.HypervisorIn; 24 | import io.kamax.hbox.comm.out.hypervisor.HypervisorOut; 25 | 26 | import javax.swing.*; 27 | 28 | public interface _GlobalConfigureView { 29 | 30 | public JComponent getComponent(); 31 | 32 | public void update(HypervisorOut hypOut); 33 | 34 | public HypervisorIn getUserInput(); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/hypervisor/_NetAdaptorConfigureView.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.hypervisor; 22 | 23 | import io.kamax.hbox.comm.in.NetAdaptorIn; 24 | import io.kamax.hbox.comm.out.network.NetAdaptorOut; 25 | 26 | import javax.swing.*; 27 | 28 | public interface _NetAdaptorConfigureView { 29 | 30 | public JComponent getComponent(); 31 | 32 | public void update(NetAdaptorOut nicOut); 33 | 34 | public NetAdaptorIn getInput(); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/connector/ConnectorRemovedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.connector; 23 | 24 | import io.kamax.hboxc.comm.output.ConnectorOutput; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class ConnectorRemovedEvent extends ConnectorEvent { 28 | 29 | public ConnectorRemovedEvent(ConnectorOutput conOut) { 30 | super(ClientEvents.ConnectorModified, conOut); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/security/user/_UserSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.security.user; 23 | 24 | import java.util.List; 25 | 26 | public interface _UserSelector { 27 | 28 | public String getServerId(); 29 | 30 | /** 31 | * Get the User IDs corresponding to the user selection 32 | * 33 | * @return List of User IDs as String 34 | */ 35 | public List getSelection(); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/storage/StorageDeviceViewer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.storage; 22 | 23 | import net.miginfocom.swing.MigLayout; 24 | 25 | import javax.swing.*; 26 | 27 | public abstract class StorageDeviceViewer { 28 | 29 | protected JPanel panel; 30 | 31 | public StorageDeviceViewer() { 32 | panel = new JPanel(new MigLayout("ins 0")); 33 | } 34 | 35 | public JPanel getPanel() { 36 | return panel; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/connector/ConnectorModifiedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.connector; 23 | 24 | import io.kamax.hboxc.comm.output.ConnectorOutput; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class ConnectorModifiedEvent extends ConnectorEvent { 28 | 29 | public ConnectorModifiedEvent(ConnectorOutput conOut) { 30 | super(ClientEvents.ConnectorModified, conOut); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/machine/MachineSnapshotDataChangedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.machine; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | import io.kamax.hboxc.event.ClientEvents; 25 | 26 | public class MachineSnapshotDataChangedEvent extends MachineEvent { 27 | 28 | public MachineSnapshotDataChangedEvent(String srvId, MachineOut mOut) { 29 | super(ClientEvents.MachineSnapshotDataChanged, srvId, mOut); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/UpdaterNoNewUpdateException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.exception; 22 | 23 | 24 | public class UpdaterNoNewUpdateException extends UpdaterException { 25 | 26 | private static final long serialVersionUID = 1162687424191301991L; 27 | 28 | public UpdaterNoNewUpdateException() { 29 | super("No new updates were found"); 30 | } 31 | 32 | public UpdaterNoNewUpdateException(String s) { 33 | super(s); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/factory/ModuleManagerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.factory; 22 | 23 | import io.kamax.hboxc.module.DefaultModuleManager; 24 | import io.kamax.hboxc.module._ModuleManager; 25 | 26 | public class ModuleManagerFactory { 27 | 28 | private ModuleManagerFactory() { 29 | throw new RuntimeException("Not allowed"); 30 | } 31 | 32 | public static _ModuleManager get() { 33 | return new DefaultModuleManager(); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/consoleviewer/ConsoleViewerAddedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.consoleviewer; 23 | 24 | import io.kamax.hboxc.comm.output.ConsoleViewerOutput; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class ConsoleViewerAddedEvent extends ConsoleViewerEvent { 28 | 29 | public ConsoleViewerAddedEvent(ConsoleViewerOutput data) { 30 | super(ClientEvents.ConsoleViewerAdd, data); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/UpdaterNotEnabledException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.exception; 22 | 23 | 24 | public class UpdaterNotEnabledException extends UpdaterException { 25 | 26 | private static final long serialVersionUID = 3099018976890762344L; 27 | 28 | public UpdaterNotEnabledException() { 29 | super("Updater Scheduled checks are not enabled"); 30 | } 31 | 32 | public UpdaterNotEnabledException(String s) { 33 | super(s); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/comm/output/BackendOutput.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.comm.output; 23 | 24 | import io.kamax.hbox.comm.out.ObjectOut; 25 | import io.kamax.hboxc.constant.ClientEntity; 26 | 27 | public class BackendOutput extends ObjectOut { 28 | 29 | public BackendOutput(String id) { 30 | super(ClientEntity.Backend, id); 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return getId(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/consoleviewer/ConsoleViewerRemovedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.consoleviewer; 23 | 24 | import io.kamax.hboxc.comm.output.ConsoleViewerOutput; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class ConsoleViewerRemovedEvent extends ConsoleViewerEvent { 28 | 29 | public ConsoleViewerRemovedEvent(ConsoleViewerOutput data) { 30 | super(ClientEvents.ConsoleViewerRemove, data); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/utils/MachineOutputComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.utils; 23 | 24 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 25 | 26 | import java.util.Comparator; 27 | 28 | public class MachineOutputComparator implements Comparator { 29 | 30 | @Override 31 | public int compare(MachineOut obj1, MachineOut obj2) { 32 | return obj1.getName().compareToIgnoreCase(obj2.getName()); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/utils/StoreItemOutputComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.gui.utils; 23 | 24 | import io.kamax.hbox.comm.out.StoreItemOut; 25 | 26 | import java.util.Comparator; 27 | 28 | public class StoreItemOutputComparator implements Comparator { 29 | 30 | @Override 31 | public int compare(StoreItemOut obj1, StoreItemOut obj2) { 32 | return obj1.getName().compareToIgnoreCase(obj2.getName()); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/consoleviewer/ConsoleViewerModifiedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.consoleviewer; 23 | 24 | import io.kamax.hboxc.comm.output.ConsoleViewerOutput; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class ConsoleViewerModifiedEvent extends ConsoleViewerEvent { 28 | 29 | public ConsoleViewerModifiedEvent(ConsoleViewerOutput data) { 30 | super(ClientEvents.ConsoleViewerUpdate, data); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/workers/HypervisorGetWorker.java: -------------------------------------------------------------------------------- 1 | package io.kamax.hboxc.gui.workers; 2 | 3 | import io.kamax.hbox.comm.out.hypervisor.HypervisorOut; 4 | import io.kamax.hboxc.gui.Gui; 5 | import io.kamax.hboxc.gui.utils.AxSwingWorker; 6 | import io.kamax.hboxc.gui.worker.receiver._HypervisorReceiver; 7 | 8 | import java.util.concurrent.ExecutionException; 9 | 10 | public class HypervisorGetWorker extends AxSwingWorker<_HypervisorReceiver, HypervisorOut, Void> { 11 | 12 | private String srvId; 13 | 14 | public HypervisorGetWorker(_HypervisorReceiver recv, String srvId) { 15 | super(recv); 16 | this.srvId = srvId; 17 | } 18 | 19 | @Override 20 | protected HypervisorOut innerDoInBackground() throws Exception { 21 | return Gui.getServer(srvId).getHypervisor().getInfo(); 22 | } 23 | 24 | @Override 25 | protected void innerDone() throws InterruptedException, ExecutionException { 26 | getReceiver().put(get()); 27 | } 28 | 29 | public static void execute(_HypervisorReceiver recv, String srvId) { 30 | new HypervisorGetWorker(recv, srvId).execute(); 31 | } 32 | 33 | public static void execute(_WorkerTracker tracker, _HypervisorReceiver recv, String srvId) { 34 | tracker.register(new HypervisorGetWorker(recv, srvId)).execute(); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/manager/_Manager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.manager; 23 | 24 | import io.kamax.hbox.comm.in.ServerIn; 25 | import io.kamax.hbox.exception.HyperboxException; 26 | import io.kamax.hboxc.server._Server; 27 | 28 | import java.util.List; 29 | 30 | public interface _Manager { 31 | 32 | public void init() throws HyperboxException; 33 | 34 | public List<_Server> listServers(); 35 | 36 | public _Server getServer(ServerIn srvIn); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/ConsoleViewerNotFoundForType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.exception; 23 | 24 | 25 | public class ConsoleViewerNotFoundForType extends ConsoleViewerNotFound { 26 | 27 | private static final long serialVersionUID = -8764337383567310331L; 28 | 29 | public ConsoleViewerNotFoundForType(String hypervisorTypeId, String moduleId) { 30 | super("No console viewer was found for: " + hypervisorTypeId + ":" + moduleId); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/data/generic/ServersGui.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.data.generic; 22 | 23 | import io.kamax.hbox.constant.EntityType; 24 | import io.kamax.hboxc.gui.data.EntityGui; 25 | 26 | public class ServersGui extends EntityGui { 27 | 28 | public final static String id = "Servers"; 29 | 30 | public ServersGui() { 31 | super(EntityType.Server.getId(), id, true); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return id; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/data/generic/MachinesGui.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.data.generic; 22 | 23 | import io.kamax.hbox.constant.EntityType; 24 | import io.kamax.hboxc.gui.data.EntityGui; 25 | 26 | public class MachinesGui extends EntityGui { 27 | 28 | public final static String id = "Machines"; 29 | 30 | public MachinesGui() { 31 | super(EntityType.Machine.getId(), id, true); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return id; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/utils/HypervisorLoaderOutComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 - Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.utils; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.HypervisorLoaderOut; 24 | 25 | import java.util.Comparator; 26 | 27 | public class HypervisorLoaderOutComparator implements Comparator { 28 | 29 | @Override 30 | public int compare(HypervisorLoaderOut o1, HypervisorLoaderOut o2) { 31 | return o1.getHypervisorId().compareToIgnoreCase(o2.getHypervisorId()); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/data/generic/SnapshotsGui.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.data.generic; 22 | 23 | import io.kamax.hbox.constant.EntityType; 24 | import io.kamax.hboxc.gui.data.EntityGui; 25 | 26 | public class SnapshotsGui extends EntityGui { 27 | 28 | public final static String id = "Snapshots"; 29 | 30 | public SnapshotsGui() { 31 | super(EntityType.Snapshot.getId(), id, true); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return id; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/HyperboxClientApplicationStart.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | import io.kamax.hboxc.controller.Controller; 25 | 26 | import java.util.Arrays; 27 | import java.util.HashSet; 28 | 29 | public final class HyperboxClientApplicationStart { 30 | 31 | public static void main(String[] args) throws HyperboxException { 32 | Hyperbox.processArgs(new HashSet<>(Arrays.asList(args))); 33 | 34 | new Controller().start(); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/ConnectorNotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.exception; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | 25 | 26 | public class ConnectorNotFoundException extends HyperboxException { 27 | 28 | private static final long serialVersionUID = -9173546700178836268L; 29 | 30 | public ConnectorNotFoundException() { 31 | this("Connector not found"); 32 | } 33 | 34 | public ConnectorNotFoundException(String s) { 35 | super(s); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/data/generic/PermissionsGui.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.data.generic; 22 | 23 | import io.kamax.hbox.constant.EntityType; 24 | import io.kamax.hboxc.gui.data.EntityGui; 25 | 26 | public class PermissionsGui extends EntityGui { 27 | 28 | public final static String id = "Permissions"; 29 | 30 | public PermissionsGui() { 31 | super(EntityType.Permission.getId(), id, true); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return id; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/_EventManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | 25 | public interface _EventManager extends _EventProcessor { 26 | 27 | public void start() throws HyperboxException; 28 | 29 | public void start(_EventProcessor postProcessor) throws HyperboxException; 30 | 31 | public void stop(); 32 | 33 | public void register(Object o); 34 | 35 | public void unregister(Object o); 36 | 37 | public void add(_EventProcessor postProcessor); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/consoleviewer/ConsoleViewerEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.consoleviewer; 23 | 24 | import io.kamax.hbox.event.Event; 25 | import io.kamax.hboxc.comm.output.ConsoleViewerOutput; 26 | 27 | public class ConsoleViewerEvent extends Event { 28 | 29 | public ConsoleViewerEvent(Enum s, ConsoleViewerOutput data) { 30 | super(s, data); 31 | } 32 | 33 | public ConsoleViewerOutput getViewer() { 34 | return get(ConsoleViewerOutput.class); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/machine/MachineUpdatedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.machine; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | 25 | public abstract class MachineUpdatedEvent extends MachineEvent { 26 | 27 | public MachineUpdatedEvent(Enum id, String srvId, MachineOut mOut) { 28 | super(id, srvId, mOut); 29 | } 30 | 31 | @Override 32 | public String toString() { 33 | return "Machine " + getUuid() + " | Server " + getServerId() + " | Changed @ " + getTime(); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/ConsoleViewerNotFound.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.exception; 23 | 24 | import io.kamax.hbox.exception.HyperboxException; 25 | 26 | 27 | public class ConsoleViewerNotFound extends HyperboxException { 28 | 29 | private static final long serialVersionUID = -1503014251751925937L; 30 | 31 | public ConsoleViewerNotFound() { 32 | super("No console viewer was found"); 33 | } 34 | 35 | public ConsoleViewerNotFound(String s) { 36 | super(s); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/data/LoadingGui.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.data; 22 | 23 | public class LoadingGui extends EntityGui { 24 | 25 | private static String id = "Loading..."; 26 | private static LoadingGui me; 27 | 28 | static { 29 | me = new LoadingGui(); 30 | } 31 | 32 | public static LoadingGui get() { 33 | return me; 34 | } 35 | 36 | public LoadingGui() { 37 | super(id, id); 38 | } 39 | 40 | @Override 41 | public String toString() { 42 | return id; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/connector/ConnectorEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.connector; 23 | 24 | import io.kamax.hbox.event.Event; 25 | import io.kamax.hboxc.comm.output.ConnectorOutput; 26 | 27 | public class ConnectorEvent extends Event { 28 | 29 | public ConnectorEvent(Enum s, ConnectorOutput conOut) { 30 | super(s); 31 | set(ConnectorOutput.class, conOut); 32 | } 33 | 34 | public ConnectorOutput getConnector() { 35 | return get(ConnectorOutput.class); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/snapshot/SnapshotTakenEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.snapshot; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 25 | import io.kamax.hbox.comm.out.hypervisor.SnapshotOut; 26 | import io.kamax.hboxc.event.ClientEvents; 27 | 28 | public class SnapshotTakenEvent extends SnapshotEvent { 29 | 30 | public SnapshotTakenEvent(ServerOut srvOut, MachineOut mOut, SnapshotOut snapOut) { 31 | super(ClientEvents.SnapshotTaken, srvOut, mOut, snapOut); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/controller/action/AbstractClientControllerAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.controller.action; 22 | 23 | public abstract class AbstractClientControllerAction implements _ClientControllerAction { 24 | 25 | @Override 26 | public Class[] getRequiredClasses() { 27 | return new Class[0]; 28 | } 29 | 30 | @Override 31 | public Enum[] getRequiredEnums() { 32 | return new Enum[0]; 33 | } 34 | 35 | @Override 36 | public String[] getRequiredData() { 37 | return new String[0]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/snapshot/SnapshotDeletedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.snapshot; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 25 | import io.kamax.hbox.comm.out.hypervisor.SnapshotOut; 26 | import io.kamax.hboxc.event.ClientEvents; 27 | 28 | public class SnapshotDeletedEvent extends SnapshotEvent { 29 | 30 | public SnapshotDeletedEvent(ServerOut srvOut, MachineOut mOut, SnapshotOut snapOut) { 31 | super(ClientEvents.SnapshotDeleted, srvOut, mOut, snapOut); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/snapshot/SnapshotModifiedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.snapshot; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 25 | import io.kamax.hbox.comm.out.hypervisor.SnapshotOut; 26 | import io.kamax.hboxc.event.ClientEvents; 27 | 28 | public class SnapshotModifiedEvent extends SnapshotEvent { 29 | 30 | public SnapshotModifiedEvent(ServerOut srvOut, MachineOut mOut, SnapshotOut snapOut) { 31 | super(ClientEvents.SnapshotModified, srvOut, mOut, snapOut); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/snapshot/SnapshotRestoredEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.snapshot; 22 | 23 | import io.kamax.hbox.comm.out.ServerOut; 24 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 25 | import io.kamax.hbox.comm.out.hypervisor.SnapshotOut; 26 | import io.kamax.hboxc.event.ClientEvents; 27 | 28 | public class SnapshotRestoredEvent extends SnapshotEvent { 29 | 30 | public SnapshotRestoredEvent(ServerOut srvOut, MachineOut mOut, SnapshotOut snapOut) { 31 | super(ClientEvents.SnapshotRestored, srvOut, mOut, snapOut); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/HyperboxClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc; 22 | 23 | import io.kamax.hboxc.front._Front; 24 | 25 | public class HyperboxClient { 26 | 27 | public static final String CFGKEY_BASE_DIR = "client.base.dir"; 28 | public static final String CFGVAL_BASE_DIR = "."; 29 | 30 | private static _Front view; 31 | 32 | public static void initView(_Front view) { 33 | if (HyperboxClient.view == null) { 34 | HyperboxClient.view = view; 35 | } 36 | } 37 | 38 | public static _Front getView() { 39 | return view; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/utils/StorageDeviceAttachmentOutComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 - Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | * 20 | */ 21 | 22 | package io.kamax.hboxc.gui.utils; 23 | 24 | import io.kamax.hbox.comm.out.storage.StorageDeviceAttachmentOut; 25 | 26 | import java.util.Comparator; 27 | 28 | 29 | public class StorageDeviceAttachmentOutComparator implements Comparator { 30 | 31 | @Override 32 | public int compare(StorageDeviceAttachmentOut o1, StorageDeviceAttachmentOut o2) { 33 | return (o1.getPortId() + ":" + o1.getDeviceId()).compareTo((o2.getPortId() + ":" + o2.getDeviceId())); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/UpdaterException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.exception; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | 25 | 26 | public abstract class UpdaterException extends HyperboxException { 27 | 28 | private static final long serialVersionUID = 5148477826715455800L; 29 | 30 | public UpdaterException(String s) { 31 | super(s); 32 | } 33 | 34 | public UpdaterException(Throwable t) { 35 | super(t.getMessage(), t); 36 | } 37 | 38 | public UpdaterException(String s, Throwable t) { 39 | super(s, t); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/data/generic/HyperboxGui.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.data.generic; 22 | 23 | import io.kamax.hbox.constant.EntityType; 24 | import io.kamax.hboxc.gui.data.EntityGui; 25 | 26 | public class HyperboxGui extends EntityGui { 27 | 28 | public HyperboxGui() { 29 | super(EntityType.Hyperbox.getId(), EntityType.Hyperbox.getId(), true); 30 | } 31 | 32 | @Override 33 | public String toString() { 34 | return EntityType.Hyperbox.getId(); 35 | } 36 | 37 | @Override 38 | public boolean isLeaf() { 39 | return false; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/core/server/ServerCredentials.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.core.server; 23 | 24 | import io.kamax.hbox.comm.in.UserIn; 25 | 26 | public class ServerCredentials { 27 | 28 | private String srvId; 29 | private UserIn usrIn; 30 | 31 | public ServerCredentials(String srvId, UserIn usrIn) { 32 | this.srvId = srvId; 33 | this.usrIn = usrIn; 34 | } 35 | 36 | public String getServerId() { 37 | return srvId; 38 | } 39 | 40 | public UserIn getCredentials() { 41 | return usrIn; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/ClientModuleException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 - Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.exception; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | 25 | 26 | public class ClientModuleException extends HyperboxException { 27 | 28 | private static final long serialVersionUID = -4843176123434550301L; 29 | 30 | public ClientModuleException(String s) { 31 | super(s); 32 | } 33 | 34 | public ClientModuleException(Throwable t) { 35 | super(t); 36 | } 37 | 38 | public ClientModuleException(String s, Throwable t) { 39 | super(s, t); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/server/ServerConnectedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.server; 23 | 24 | import io.kamax.hbox.comm.out.ServerOut; 25 | import io.kamax.hbox.states.ServerConnectionState; 26 | 27 | public class ServerConnectedEvent extends ServerConnectionStateEvent { 28 | 29 | public ServerConnectedEvent(ServerOut srv) { 30 | super(srv, ServerConnectionState.Connected); 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return "Server ID " + getServer().getId() + " connected @ " + getTime(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/connector/ConnectorAddedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.connector; 23 | 24 | import io.kamax.hboxc.comm.output.ConnectorOutput; 25 | import io.kamax.hboxc.event.ClientEvents; 26 | 27 | public class ConnectorAddedEvent extends ConnectorEvent { 28 | 29 | public ConnectorAddedEvent(ConnectorOutput conOut) { 30 | super(ClientEvents.ConnectorAdded, conOut); 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return "Connector " + getConnector().getLabel() + " was added @ " + getTime(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/Config.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui; 22 | 23 | public class Config { 24 | 25 | public static final String MainFramePosY = "gui.main.pos.y"; 26 | public static final String MainFramePosX = "gui.main.pos.x"; 27 | public static final String MainFrameWidth = "gui.main.width"; 28 | public static final String MainFrameHeight = "gui.main.height"; 29 | public static final String MainFrameState = "gui.main.state"; 30 | 31 | public static final String MAIN_VIEW_VSPLIT_POS = "gui.main.vsplit.pos"; 32 | 33 | private Config() { 34 | // no instance 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/exception/InputValidationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 - Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.exception; 22 | 23 | import io.kamax.hbox.exception.HyperboxException; 24 | 25 | 26 | public class InputValidationException extends HyperboxException { 27 | 28 | private static final long serialVersionUID = 8584229425729854700L; 29 | 30 | public InputValidationException(String s) { 31 | super(s); 32 | } 33 | 34 | public InputValidationException(Throwable t) { 35 | super(t); 36 | } 37 | 38 | public InputValidationException(String s, Throwable t) { 39 | super(s, t); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/server/ServerDisconnectedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * hyperbox at altherian dot org 5 | * 6 | * https://apps.kamax.io/hyperbox 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | package io.kamax.hboxc.event.server; 23 | 24 | import io.kamax.hbox.comm.out.ServerOut; 25 | import io.kamax.hbox.states.ServerConnectionState; 26 | 27 | public class ServerDisconnectedEvent extends ServerConnectionStateEvent { 28 | 29 | public ServerDisconnectedEvent(ServerOut srv) { 30 | super(srv, ServerConnectionState.Disconnected); 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return "Server ID " + getServer().getId() + " disconnected @ " + getTime(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/event/machine/MachineStateChangedEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.event.machine; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.MachineOut; 24 | import io.kamax.hbox.event.HyperboxEvents; 25 | 26 | public class MachineStateChangedEvent extends MachineUpdatedEvent { 27 | 28 | public MachineStateChangedEvent(String srvId, MachineOut mOut) { 29 | super(HyperboxEvents.MachineState, srvId, mOut); 30 | } 31 | 32 | @Override 33 | public String toString() { 34 | return "Machine " + getUuid() + " | State changed to " + getMachine().getState() + " @ " + getTime(); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/action/CloseAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2014 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.action; 22 | 23 | import javax.swing.*; 24 | import java.awt.*; 25 | import java.awt.event.ActionEvent; 26 | 27 | 28 | public class CloseAction extends AbstractAction { 29 | 30 | private static final long serialVersionUID = -2768998694158914972L; 31 | private Component obj; 32 | 33 | public CloseAction(Component obj) { 34 | super("Close"); 35 | this.obj = obj; 36 | setEnabled(true); 37 | } 38 | 39 | @Override 40 | public void actionPerformed(ActionEvent e) { 41 | obj.setVisible(false); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/gui/hypervisor/_HypervisorModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2015 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.gui.hypervisor; 22 | 23 | import io.kamax.hbox.comm.out.hypervisor.HypervisorLoaderOut; 24 | 25 | import javax.swing.*; 26 | import java.util.List; 27 | 28 | public interface _HypervisorModel { 29 | 30 | public List getSupported(); 31 | 32 | public _GlobalConfigureView getConfigureView(); 33 | 34 | public _NetAdaptorConfigureView getNetAdaptorConfig(String srvId, String modeId, String adaptId); 35 | 36 | public ListCellRenderer getTypeRenderer(ListCellRenderer parent); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/io/kamax/hboxc/controller/action/AbstractClientControllerMultiAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Hyperbox - Virtual Infrastructure Manager 3 | * Copyright (C) 2013 Max Dor 4 | * 5 | * https://apps.kamax.io/hyperbox 6 | * 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | package io.kamax.hboxc.controller.action; 22 | 23 | import io.kamax.hbox.comm.AnswerType; 24 | 25 | public abstract class AbstractClientControllerMultiAction extends AbstractClientControllerAction { 26 | 27 | @Override 28 | public AnswerType getStartReturn() { 29 | return AnswerType.STARTED; 30 | } 31 | 32 | @Override 33 | public AnswerType getFinishReturn() { 34 | return AnswerType.COMPLETED; 35 | } 36 | 37 | @Override 38 | public AnswerType getFailReturn() { 39 | return AnswerType.FAILED; 40 | } 41 | 42 | } 43 | --------------------------------------------------------------------------------