From dfd14c05bc117df8de627c48d4615fc9d995bbe0 Mon Sep 17 00:00:00 2001
From: Shireesh Anjal
Date: Wed, 2 Feb 2011 15:10:03 +0530
Subject: initial commit
---
com.gluster.storage.management.client/.classpath | 9 +
com.gluster.storage.management.client/.project | 28 +
.../.settings/org.eclipse.jdt.core.prefs | 8 +
.../META-INF/MANIFEST.MF | 13 +
.../build.properties | 8 +
.../lib/jersey-client-1.4.jar | Bin 0 -> 124421 bytes
.../lib/jersey-core-1.4.jar | Bin 0 -> 455517 bytes
.../storage/management/client/AuthManager.java | 32 +
.../storage/management/client/RESTClientTest.java | 24 +
com.gluster.storage.management.core/.classpath | 7 +
com.gluster.storage.management.core/.project | 28 +
.../.settings/org.eclipse.jdt.core.prefs | 8 +
.../META-INF/MANIFEST.MF | 12 +
.../build.properties | 4 +
.../management/core/constants/CoreConstants.java | 27 +
.../core/exceptions/GlusterRuntimeException.java | 12 +
.../storage/management/core/model/AuthStatus.java | 17 +
.../storage/management/core/model/Cluster.java | 52 +
.../management/core/model/ConnectionDetails.java | 45 +
.../core/model/DefaultClusterListener.java | 32 +
.../storage/management/core/model/Disk.java | 81 ++
.../storage/management/core/model/Entity.java | 56 +
.../storage/management/core/model/EntityGroup.java | 28 +
.../storage/management/core/model/Event.java | 18 +
.../storage/management/core/model/Filterable.java | 19 +
.../management/core/model/GlusterDataModel.java | 24 +
.../management/core/model/GlusterDummyModel.java | 264 +++++
.../management/core/model/GlusterServer.java | 65 ++
.../management/core/model/IClusterListener.java | 19 +
.../storage/management/core/model/LogMessage.java | 57 +
.../management/core/model/NetworkInterface.java | 48 +
.../storage/management/core/model/Server.java | 126 +++
.../storage/management/core/model/User.java | 22 +
.../storage/management/core/model/Volume.java | 228 ++++
.../storage/management/core/utils/Crypt.java | 560 ++++++++++
.../storage/management/core/utils/DateUtil.java | 17 +
.../storage/management/core/utils/FileUtil.java | 22 +
.../gluster/storage/management/core/utils/MD5.java | 505 +++++++++
.../storage/management/core/utils/MD5Crypt.java | 341 ++++++
.../storage/management/core/utils/NumberUtil.java | 12 +
.../management/core/utils/ProcessResult.java | 64 ++
.../storage/management/core/utils/ProcessUtil.java | 97 ++
.../storage/management/core/utils/StringUtils.java | 10 +
.../storage/management/core/utils/UnixCrypt.java | 684 ++++++++++++
.../management/core/utils/sample_jaas.config | 3 +
.../.project | 17 +
.../build.properties | 2 +
.../feature.xml | 236 ++++
.../rootfiles/gluster-management-console.jnlp | 35 +
.../rootfiles/index.html | 8 +
.../rootfiles/splash.bmp | Bin 0 -> 377610 bytes
.../.project | 17 +
.../build.properties | 1 +
.../feature.xml | 735 +++++++++++++
com.gluster.storage.management.gui/.classpath | 8 +
com.gluster.storage.management.gui/.project | 28 +
.../.settings/org.eclipse.jdt.core.prefs | 8 +
.../META-INF/MANIFEST.MF | 29 +
.../build.properties | 17 +
.../icons/arrow-down.png | Bin 0 -> 703 bytes
.../icons/arrow-up.png | Bin 0 -> 712 bytes
.../icons/cluster.png | Bin 0 -> 622 bytes
.../icons/disk-migrate.png | Bin 0 -> 781 bytes
.../icons/disk-uninitialized.png | Bin 0 -> 708 bytes
com.gluster.storage.management.gui/icons/disk.png | Bin 0 -> 620 bytes
com.gluster.storage.management.gui/icons/disks.png | Bin 0 -> 691 bytes
.../icons/folder.png | Bin 0 -> 537 bytes
.../icons/gluster_icon.png | Bin 0 -> 3131 bytes
com.gluster.storage.management.gui/icons/group.png | Bin 0 -> 753 bytes
com.gluster.storage.management.gui/icons/gsn.png | Bin 0 -> 923 bytes
com.gluster.storage.management.gui/icons/mail.ico | Bin 0 -> 26694 bytes
.../icons/minus-white.png | Bin 0 -> 682 bytes
.../icons/network-interface.png | Bin 0 -> 577 bytes
.../icons/network-interfaces.png | Bin 0 -> 413 bytes
.../icons/network-interfaces1.png | Bin 0 -> 563 bytes
.../icons/plus-white.png | Bin 0 -> 703 bytes
.../icons/preferences.png | Bin 0 -> 916 bytes
.../icons/progress-bar.png | Bin 0 -> 261 bytes
.../icons/question.png | Bin 0 -> 766 bytes
.../icons/sample.gif | Bin 0 -> 983 bytes
.../icons/sample.icns | Bin 0 -> 35301 bytes
.../icons/sample2.gif | Bin 0 -> 318 bytes
.../icons/sample3.gif | Bin 0 -> 173 bytes
.../icons/search.png | Bin 0 -> 736 bytes
.../icons/server-add-big.png | Bin 0 -> 2057 bytes
.../icons/server-add.png | Bin 0 -> 781 bytes
.../icons/server-remove.png | Bin 0 -> 775 bytes
.../icons/server.png | Bin 0 -> 667 bytes
.../icons/servers.png | Bin 0 -> 654 bytes
.../icons/star-small.png | Bin 0 -> 447 bytes
.../icons/status-offline-circle.png | Bin 0 -> 729 bytes
.../icons/status-offline-small.png | Bin 0 -> 322 bytes
.../icons/status-offline.png | Bin 0 -> 544 bytes
.../icons/status-online-circle.png | Bin 0 -> 724 bytes
.../icons/status-online-small.png | Bin 0 -> 361 bytes
.../icons/status-online.png | Bin 0 -> 634 bytes
com.gluster.storage.management.gui/icons/stop.png | Bin 0 -> 700 bytes
.../icons/ui-check-box-mix.png | Bin 0 -> 414 bytes
.../icons/ui-check-box-uncheck.png | Bin 0 -> 355 bytes
.../icons/ui-check-box.png | Bin 0 -> 435 bytes
.../icons/volume-create-big.png | Bin 0 -> 2442 bytes
.../icons/volume-create.png | Bin 0 -> 899 bytes
.../icons/volume-delete.png | Bin 0 -> 891 bytes
.../icons/volume-edit.png | Bin 0 -> 731 bytes
.../icons/volume-rebalance.png | Bin 0 -> 753 bytes
.../icons/volume-start.png | Bin 0 -> 898 bytes
.../icons/volume-stop-1.png | Bin 0 -> 700 bytes
.../icons/volume-stop.png | Bin 0 -> 752 bytes
.../icons/volume.png | Bin 0 -> 633 bytes
.../icons/volume1.png | Bin 0 -> 436 bytes
.../icons/volumes.png | Bin 0 -> 504 bytes
.../icons/volumes1.png | Bin 0 -> 755 bytes
.../icons/volumes2.png | Bin 0 -> 825 bytes
.../icons/volumes3.png | Bin 0 -> 613 bytes
com.gluster.storage.management.gui/icons/world.png | Bin 0 -> 923 bytes
.../images/gauge.png | Bin 0 -> 45242 bytes
.../images/gauge_small.png | Bin 0 -> 13875 bytes
.../images/progress_image_empty.png | Bin 0 -> 185 bytes
.../images/progress_image_filled_danger.png | Bin 0 -> 185 bytes
.../images/progress_image_filled_safe.png | Bin 0 -> 201 bytes
.../images/progress_image_left.png | Bin 0 -> 185 bytes
.../images/progress_image_right.png | Bin 0 -> 185 bytes
com.gluster.storage.management.gui/plugin.xml | 824 ++++++++++++++
com.gluster.storage.management.gui/preferences.ini | 1 +
com.gluster.storage.management.gui/splash.bmp | Bin 0 -> 377610 bytes
.../splash/gluster_about.jpg | Bin 0 -> 4072 bytes
.../splash/splash-dialog.bmp | Bin 0 -> 312054 bytes
.../splash/splash-dialog.png | Bin 0 -> 5552 bytes
.../gluster/storage/management/gui/Activator.java | 65 ++
.../storage/management/gui/Application.java | 98 ++
.../gui/ApplicationActionBarAdvisor.java | 79 ++
.../gui/ApplicationWorkbenchAdvisor.java | 27 +
.../gui/ApplicationWorkbenchWindowAdvisor.java | 42 +
.../management/gui/DiskTableLabelProvider.java | 70 ++
.../management/gui/EntityGroupContentProvider.java | 26 +
.../gui/GlusterServerTableLabelProvider.java | 57 +
.../storage/management/gui/ICommandIds.java | 15 +
.../storage/management/gui/IEntityListener.java | 19 +
.../gluster/storage/management/gui/IImageKeys.java | 44 +
.../gui/NetworkInterfaceTableLabelProvider.java | 22 +
.../storage/management/gui/Perspective.java | 21 +
.../gui/ServerDiskTableLabelProvider.java | 72 ++
.../management/gui/ServerTableLabelProvider.java | 30 +
.../management/gui/TableLabelProviderAdapter.java | 40 +
.../gui/VolumeLogTableLabelProvider.java | 30 +
.../gui/VolumeOptionsTableLabelProvider.java | 24 +
.../management/gui/VolumeTableLabelProvider.java | 64 ++
.../gui/actions/AbstractActionDelegate.java | 38 +
.../management/gui/actions/AddServerAction.java | 18 +
.../management/gui/actions/CreateVolumeAction.java | 23 +
.../management/gui/actions/DeleteVolumeAction.java | 15 +
.../management/gui/actions/EditVolumeAction.java | 15 +
.../management/gui/actions/IActionSetIDs.java | 15 +
.../management/gui/actions/MigrateDiskAction.java | 53 +
.../gui/actions/MigrateVolumeAction.java | 15 +
.../management/gui/actions/PreferencesAction.java | 18 +
.../gui/actions/RebalanceVolumeAction.java | 15 +
.../management/gui/actions/RemoveServerAction.java | 18 +
.../management/gui/actions/StartVolumeAction.java | 18 +
.../management/gui/actions/StopVolumeAction.java | 15 +
.../gui/actions/TestPopupMenuAction.java | 44 +
.../gui/dialogs/CreateVolumeDisksPage.java | 159 +++
.../management/gui/dialogs/CreateVolumePage1.java | 131 +++
.../management/gui/dialogs/CreateVolumeWizard.java | 23 +
.../management/gui/dialogs/MigrateDiskPage1.java | 185 ++++
.../management/gui/dialogs/MigrateDiskWizard.java | 30 +
.../management/gui/dialogs/SelectDisksDialog.java | 77 ++
.../storage/management/gui/editor/Messages.java | 23 +
.../management/gui/editor/SettingsPage.java | 158 +++
.../management/gui/editor/SettingsPage1.java | 173 +++
.../storage/management/gui/editor/ThirdPage.java | 147 +++
.../storage/management/gui/editor/TimeZones.java | 161 +++
.../gui/editor/messages_en_IN.properties | 96 ++
.../management/gui/jobs/InitializeDiskJob.java | 66 ++
.../storage/management/gui/login/LoginDialog.java | 192 ++++
.../gui/preferences/ClusterPreferencePage.java | 65 ++
.../gui/preferences/ConsolePreferencePage.java | 65 ++
.../gui/preferences/GlusterPreferencePage.java | 65 ++
.../gui/preferences/PreferenceConstants.java | 16 +
.../gui/preferences/PreferenceInitializer.java | 26 +
.../management/gui/toolbar/IToolbarManager.java | 17 +
.../management/gui/toolbar/ToolbarManager.java | 84 ++
.../storage/management/gui/utils/DatePicker.java | 513 +++++++++
.../management/gui/utils/DatePickerCombo.java | 1124 ++++++++++++++++++++
.../gui/utils/DiskViewerEditingSupport.java | 39 +
.../management/gui/utils/EntityViewerFilter.java | 60 ++
.../storage/management/gui/utils/GUIHelper.java | 313 ++++++
.../management/gui/utils/HyperlinkCellEditor.java | 50 +
.../gui/validators/StringRequiredValidator.java | 41 +
.../gui/views/details/AbstractDisksPage.java | 297 ++++++
.../management/gui/views/details/DetailsView.java | 93 ++
.../management/gui/views/details/DisksPage.java | 53 +
.../gui/views/details/GlusterServersPage.java | 146 +++
.../gui/views/details/ServerDisksPage.java | 50 +
.../gui/views/details/ServerLogsPage.java | 161 +++
.../management/gui/views/details/ServersPage.java | 153 +++
.../gui/views/details/SmartControlAdapter.java | 35 +
.../management/gui/views/details/TabCreator.java | 31 +
.../gui/views/details/TabCreatorFactory.java | 14 +
.../gui/views/details/TabCreatorFactoryImpl.java | 53 +
.../gui/views/details/TestComposite.java | 67 ++
.../gui/views/details/VolumeLogsPage.java | 178 ++++
.../gui/views/details/VolumeOptionsPage.java | 134 +++
.../management/gui/views/details/VolumesPage.java | 139 +++
.../details/tabcreators/ClusterTabCreator.java | 190 ++++
.../EntityGroupGlusterServerTabCreator.java | 118 ++
.../tabcreators/EntityGroupServerTabCreator.java | 42 +
.../tabcreators/EntityGroupVolumeTabCreator.java | 99 ++
.../tabcreators/GlusterServerTabCreator.java | 243 +++++
.../tabcreators/PieChartViewerComposite.java | 258 +++++
.../details/tabcreators/ServerTabCreator.java | 55 +
.../details/tabcreators/VolumeTabCreator.java | 251 +++++
.../gui/views/navigator/ClusterAdapterFactory.java | 80 ++
.../navigator/NavigationTreeLabelDecorator.java | 68 ++
.../gui/views/navigator/NavigationView.java | 61 ++
.../gui/views/navigator/RootAdapter.java | 103 ++
.../src/com/swtdesigner/ResourceManager.java | 405 +++++++
.../src/com/swtdesigner/SWTResourceManager.java | 437 ++++++++
com.gluster.storage.management.server/.classpath | 18 +
com.gluster.storage.management.server/.project | 36 +
.../.settings/.jsdtscope | 12 +
.../.settings/org.eclipse.jdt.core.prefs | 8 +
.../org.eclipse.ltk.core.refactoring.prefs | 3 +
.../.settings/org.eclipse.wst.common.component | 9 +
.../org.eclipse.wst.common.project.facet.core.xml | 10 +
.../org.eclipse.wst.jsdt.ui.superType.container | 1 +
.../org.eclipse.wst.jsdt.ui.superType.name | 1 +
.../org.eclipse.wst.ws.service.policy.prefs | 3 +
.../WebContent/META-INF/MANIFEST.MF | 3 +
.../WebContent/WEB-INF/lib/asm-3.1.jar | Bin 0 -> 43033 bytes
.../com.gluster.storage.management.core_1.0.0.jar | Bin 0 -> 70343 bytes
.../WEB-INF/lib/jackson-core-asl-1.5.5.jar | Bin 0 -> 171958 bytes
.../WebContent/WEB-INF/lib/jackson-jaxrs-1.5.5.jar | Bin 0 -> 17065 bytes
.../WEB-INF/lib/jackson-mapper-asl-1.5.5.jar | Bin 0 -> 485699 bytes
.../WebContent/WEB-INF/lib/jackson-xc-1.5.5.jar | Bin 0 -> 24745 bytes
.../WebContent/WEB-INF/lib/jersey-client-1.4.jar | Bin 0 -> 124421 bytes
.../WebContent/WEB-INF/lib/jersey-core-1.4.jar | Bin 0 -> 455517 bytes
.../WebContent/WEB-INF/lib/jersey-json-1.4.jar | Bin 0 -> 142827 bytes
.../WebContent/WEB-INF/lib/jersey-server-1.4.jar | Bin 0 -> 677600 bytes
.../WebContent/WEB-INF/lib/jettison-1.1.jar | Bin 0 -> 67758 bytes
.../WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar | Bin 0 -> 46367 bytes
.../WebContent/WEB-INF/web.xml | 25 +
.../management/server/services/AuthManager.java | 63 ++
.../storage/management/server/services/Hello.java | 32 +
com.sun.jersey/.classpath | 7 +
com.sun.jersey/.project | 28 +
.../.settings/org.eclipse.jdt.core.prefs | 8 +
com.sun.jersey/META-INF/MANIFEST.MF | 42 +
com.sun.jersey/META-INF/jersey-module-version | 1 +
.../com.sun.jersey/jersey-client/pom.properties | 5 +
.../maven/com.sun.jersey/jersey-client/pom.xml | 124 +++
.../com.sun.jersey/jersey-core/pom.properties | 5 +
.../maven/com.sun.jersey/jersey-core/pom.xml | 228 ++++
.../com.sun.jersey.spi.HeaderDelegateProvider | 9 +
.../com.sun.jersey.spi.inject.InjectableProvider | 5 +
.../services/javax.ws.rs.ext.MessageBodyReader | 27 +
.../services/javax.ws.rs.ext.MessageBodyWriter | 22 +
com.sun.jersey/build.properties | 5 +
.../api/client/AbstractClientRequestAdapter.class | Bin 0 -> 694 bytes
.../jersey/api/client/AsyncUniformInterface.class | Bin 0 -> 4076 bytes
.../jersey/api/client/AsyncViewResource$1.class | Bin 0 -> 1237 bytes
.../jersey/api/client/AsyncViewResource$2.class | Bin 0 -> 1827 bytes
.../api/client/AsyncViewResource$Builder.class | Bin 0 -> 6291 bytes
.../sun/jersey/api/client/AsyncViewResource.class | Bin 0 -> 16510 bytes
.../api/client/AsyncViewUniformInterface.class | Bin 0 -> 1863 bytes
.../sun/jersey/api/client/AsyncWebResource$1.class | Bin 0 -> 1844 bytes
.../sun/jersey/api/client/AsyncWebResource$2.class | Bin 0 -> 2028 bytes
.../sun/jersey/api/client/AsyncWebResource$3.class | Bin 0 -> 2666 bytes
.../sun/jersey/api/client/AsyncWebResource$4.class | Bin 0 -> 1472 bytes
.../sun/jersey/api/client/AsyncWebResource$5.class | Bin 0 -> 1475 bytes
.../sun/jersey/api/client/AsyncWebResource$6.class | Bin 0 -> 1821 bytes
.../api/client/AsyncWebResource$Builder.class | Bin 0 -> 10899 bytes
.../sun/jersey/api/client/AsyncWebResource.class | Bin 0 -> 22853 bytes
.../com/sun/jersey/api/client/Client$1.class | Bin 0 -> 1596 bytes
.../com/sun/jersey/api/client/Client$2.class | Bin 0 -> 1070 bytes
.../com/sun/jersey/api/client/Client$3.class | Bin 0 -> 3133 bytes
.../com/sun/jersey/api/client/Client$4$1.class | Bin 0 -> 1174 bytes
.../com/sun/jersey/api/client/Client$4.class | Bin 0 -> 3306 bytes
.../Client$ComponentProcessorFactoryImpl$1.class | Bin 0 -> 1380 bytes
.../Client$ComponentProcessorFactoryImpl.class | Bin 0 -> 1805 bytes
.../client/Client$ContextInjectableProvider.class | Bin 0 -> 922 bytes
.../com/sun/jersey/api/client/Client.class | Bin 0 -> 16936 bytes
.../com/sun/jersey/api/client/ClientHandler.class | Bin 0 -> 315 bytes
.../jersey/api/client/ClientHandlerException.class | Bin 0 -> 785 bytes
.../jersey/api/client/ClientRequest$Builder.class | Bin 0 -> 1134 bytes
.../com/sun/jersey/api/client/ClientRequest.class | Bin 0 -> 2781 bytes
.../jersey/api/client/ClientRequestAdapter.class | Bin 0 -> 301 bytes
.../jersey/api/client/ClientResponse$Status.class | Bin 0 -> 5916 bytes
.../com/sun/jersey/api/client/ClientResponse.class | Bin 0 -> 12454 bytes
.../jersey/api/client/CommittingOutputStream.class | Bin 0 -> 1660 bytes
.../jersey/api/client/ComponentsClientConfig.class | Bin 0 -> 2509 bytes
.../com/sun/jersey/api/client/GenericType.class | Bin 0 -> 1954 bytes
.../jersey/api/client/PartialRequestBuilder.class | Bin 0 -> 4496 bytes
.../com/sun/jersey/api/client/RequestBuilder.class | Bin 0 -> 1557 bytes
...minatingClientHandler$RequestEntityWriter.class | Bin 0 -> 469 bytes
...tingClientHandler$RequestEntityWriterImpl.class | Bin 0 -> 5198 bytes
...ClientHandler$RequestEntityWriterListener.class | Bin 0 -> 450 bytes
.../api/client/TerminatingClientHandler.class | Bin 0 -> 7666 bytes
.../sun/jersey/api/client/UniformInterface.class | Bin 0 -> 2290 bytes
.../api/client/UniformInterfaceException.class | Bin 0 -> 1428 bytes
.../com/sun/jersey/api/client/ViewResource$1.class | Bin 0 -> 239 bytes
.../jersey/api/client/ViewResource$Builder.class | Bin 0 -> 5853 bytes
.../com/sun/jersey/api/client/ViewResource.class | Bin 0 -> 14030 bytes
.../jersey/api/client/ViewUniformInterface.class | Bin 0 -> 1517 bytes
.../com/sun/jersey/api/client/WebResource$1.class | Bin 0 -> 236 bytes
.../jersey/api/client/WebResource$Builder.class | Bin 0 -> 7520 bytes
.../com/sun/jersey/api/client/WebResource.class | Bin 0 -> 16400 bytes
.../jersey/api/client/WebResourceLinkHeaders.class | Bin 0 -> 1692 bytes
.../api/client/async/AsyncClientHandler.class | Bin 0 -> 520 bytes
.../jersey/api/client/async/FutureListener.class | Bin 0 -> 367 bytes
.../jersey/api/client/async/ITypeListener.class | Bin 0 -> 510 bytes
.../sun/jersey/api/client/async/TypeListener.class | Bin 0 -> 1535 bytes
.../jersey/api/client/config/ClientConfig.class | Bin 0 -> 973 bytes
.../api/client/config/DefaultClientConfig.class | Bin 0 -> 2176 bytes
.../jersey/api/client/filter/ClientFilter.class | Bin 0 -> 875 bytes
.../api/client/filter/ClientRequestContainer.class | Bin 0 -> 2696 bytes
.../filter/ConnectionListenerFilter$Adapter.class | Bin 0 -> 1468 bytes
.../client/filter/ConnectionListenerFilter.class | Bin 0 -> 2769 bytes
.../api/client/filter/ContainerListener.class | Bin 0 -> 718 bytes
.../sun/jersey/api/client/filter/Filterable.class | Bin 0 -> 1667 bytes
.../filter/GZIPContentEncodingFilter$Adapter.class | Bin 0 -> 1183 bytes
.../client/filter/GZIPContentEncodingFilter.class | Bin 0 -> 2591 bytes
.../api/client/filter/HTTPBasicAuthFilter.class | Bin 0 -> 1885 bytes
.../api/client/filter/HTTPDigestAuthFilter$1.class | Bin 0 -> 1194 bytes
.../client/filter/HTTPDigestAuthFilter$QOP.class | Bin 0 -> 1274 bytes
.../client/filter/HTTPDigestAuthFilter$State.class | Bin 0 -> 1288 bytes
.../api/client/filter/HTTPDigestAuthFilter.class | Bin 0 -> 9074 bytes
.../api/client/filter/LoggingFilter$Adapter.class | Bin 0 -> 1565 bytes
.../filter/LoggingFilter$LoggingOutputStream.class | Bin 0 -> 1752 bytes
.../jersey/api/client/filter/LoggingFilter.class | Bin 0 -> 7692 bytes
.../client/filter/OnStartConnectionListener.class | Bin 0 -> 280 bytes
.../api/client/filter/ReportingInputStream.class | Bin 0 -> 2244 bytes
.../api/client/filter/ReportingOutputStream.class | Bin 0 -> 1424 bytes
.../com/sun/jersey/api/representation/Form.class | Bin 0 -> 396 bytes
.../com/sun/jersey/api/uri/UriBuilderImpl.class | Bin 0 -> 15555 bytes
.../com/sun/jersey/api/uri/UriComponent$1.class | Bin 0 -> 840 bytes
.../api/uri/UriComponent$PathSegmentImpl.class | Bin 0 -> 2041 bytes
.../com/sun/jersey/api/uri/UriComponent$Type.class | Bin 0 -> 1712 bytes
.../com/sun/jersey/api/uri/UriComponent.class | Bin 0 -> 14401 bytes
.../com/sun/jersey/api/uri/UriPattern$1.class | Bin 0 -> 227 bytes
.../uri/UriPattern$EmptyStringMatchResult.class | Bin 0 -> 1420 bytes
.../api/uri/UriPattern$GroupIndexMatchResult.class | Bin 0 -> 1693 bytes
.../com/sun/jersey/api/uri/UriPattern.class | Bin 0 -> 5127 bytes
.../com/sun/jersey/api/uri/UriTemplate$1.class | Bin 0 -> 1568 bytes
.../com/sun/jersey/api/uri/UriTemplate.class | Bin 0 -> 13740 bytes
.../uri/UriTemplateParser$CharacterIterator.class | Bin 0 -> 333 bytes
...UriTemplateParser$StringCharacterIterator.class | Bin 0 -> 1249 bytes
.../com/sun/jersey/api/uri/UriTemplateParser.class | Bin 0 -> 8188 bytes
.../sun/jersey/client/impl/ClientRequestImpl.class | Bin 0 -> 4872 bytes
.../async/FutureClientResponseListener$1.class | Bin 0 -> 729 bytes
.../impl/async/FutureClientResponseListener.class | Bin 0 -> 2781 bytes
.../com/sun/jersey/client/osgi/Activator.class | Bin 0 -> 1984 bytes
.../com/sun/jersey/client/proxy/ViewProxy.class | Bin 0 -> 1623 bytes
.../jersey/client/proxy/ViewProxyProvider.class | Bin 0 -> 401 bytes
.../client/urlconnection/HTTPSProperties.class | Bin 0 -> 2004 bytes
.../urlconnection/HttpURLConnectionFactory.class | Bin 0 -> 291 bytes
.../URLConnectionClientHandler$1$1.class | Bin 0 -> 1589 bytes
.../URLConnectionClientHandler$1.class | Bin 0 -> 2165 bytes
...ectionClientHandler$URLConnectionResponse.class | Bin 0 -> 2241 bytes
.../urlconnection/URLConnectionClientHandler.class | Bin 0 -> 7565 bytes
.../jersey/core/header/AcceptableLanguageTag.class | Bin 0 -> 1621 bytes
.../jersey/core/header/AcceptableMediaType.class | Bin 0 -> 2292 bytes
.../sun/jersey/core/header/AcceptableToken.class | Bin 0 -> 1281 bytes
...tentDisposition$ContentDispositionBuilder.class | Bin 0 -> 2275 bytes
.../jersey/core/header/ContentDisposition.class | Bin 0 -> 5395 bytes
...osition$FormDataContentDispositionBuilder.class | Bin 0 -> 1673 bytes
.../core/header/FormDataContentDisposition.class | Bin 0 -> 2688 bytes
.../sun/jersey/core/header/HttpDateFormat$1.class | Bin 0 -> 805 bytes
.../sun/jersey/core/header/HttpDateFormat.class | Bin 0 -> 2710 bytes
.../sun/jersey/core/header/InBoundHeaders.class | Bin 0 -> 597 bytes
.../com/sun/jersey/core/header/LanguageTag.class | Bin 0 -> 4150 bytes
.../core/header/LinkHeader$LinkHeaderBuilder.class | Bin 0 -> 3297 bytes
.../com/sun/jersey/core/header/LinkHeader.class | Bin 0 -> 7303 bytes
.../com/sun/jersey/core/header/LinkHeaders.class | Bin 0 -> 2061 bytes
.../sun/jersey/core/header/MatchingEntityTag.class | Bin 0 -> 1881 bytes
.../com/sun/jersey/core/header/MediaTypes$1.class | Bin 0 -> 1236 bytes
.../com/sun/jersey/core/header/MediaTypes$2.class | Bin 0 -> 1569 bytes
.../com/sun/jersey/core/header/MediaTypes$3.class | Bin 0 -> 1236 bytes
.../com/sun/jersey/core/header/MediaTypes$4.class | Bin 0 -> 787 bytes
.../com/sun/jersey/core/header/MediaTypes.class | Bin 0 -> 6248 bytes
.../sun/jersey/core/header/OutBoundHeaders.class | Bin 0 -> 601 bytes
.../jersey/core/header/ParameterizedHeader.class | Bin 0 -> 2044 bytes
.../com/sun/jersey/core/header/QualityFactor.class | Bin 0 -> 361 bytes
.../core/header/QualitySourceMediaType.class | Bin 0 -> 3444 bytes
.../com/sun/jersey/core/header/Token.class | Bin 0 -> 1416 bytes
.../reader/CookiesParser$MutableCookie.class | Bin 0 -> 980 bytes
.../reader/CookiesParser$MutableNewCookie.class | Bin 0 -> 1161 bytes
.../jersey/core/header/reader/CookiesParser.class | Bin 0 -> 3908 bytes
.../core/header/reader/HttpHeaderListAdapter.class | Bin 0 -> 2297 bytes
.../core/header/reader/HttpHeaderReader$1.class | Bin 0 -> 1271 bytes
.../core/header/reader/HttpHeaderReader$2.class | Bin 0 -> 1249 bytes
.../core/header/reader/HttpHeaderReader$3.class | Bin 0 -> 1277 bytes
.../core/header/reader/HttpHeaderReader$4.class | Bin 0 -> 1303 bytes
.../core/header/reader/HttpHeaderReader$5.class | Bin 0 -> 1286 bytes
.../core/header/reader/HttpHeaderReader$6.class | Bin 0 -> 2220 bytes
.../core/header/reader/HttpHeaderReader$7.class | Bin 0 -> 1317 bytes
.../core/header/reader/HttpHeaderReader$8.class | Bin 0 -> 1335 bytes
.../core/header/reader/HttpHeaderReader$9.class | Bin 0 -> 1090 bytes
.../header/reader/HttpHeaderReader$Event.class | Bin 0 -> 1416 bytes
.../HttpHeaderReader$ListElementCreator.class | Bin 0 -> 550 bytes
.../core/header/reader/HttpHeaderReader.class | Bin 0 -> 13836 bytes
.../core/header/reader/HttpHeaderReaderImpl.class | Bin 0 -> 7183 bytes
.../impl/provider/entity/BaseFormProvider.class | Bin 0 -> 4212 bytes
.../impl/provider/entity/ByteArrayProvider.class | Bin 0 -> 4660 bytes
...teArrayDataSource$DSByteArrayOutputStream.class | Bin 0 -> 897 bytes
.../DataSourceProvider$ByteArrayDataSource.class | Bin 0 -> 2198 bytes
.../impl/provider/entity/DataSourceProvider.class | Bin 0 -> 4914 bytes
.../impl/provider/entity/DocumentProvider.class | Bin 0 -> 6087 bytes
.../impl/provider/entity/EntityHolderReader.class | Bin 0 -> 4164 bytes
.../core/impl/provider/entity/FileProvider.class | Bin 0 -> 5461 bytes
.../entity/FormMultivaluedMapProvider.class | Bin 0 -> 4874 bytes
.../core/impl/provider/entity/FormProvider.class | Bin 0 -> 4226 bytes
.../impl/provider/entity/Inflector$Replacer.class | Bin 0 -> 1985 bytes
.../core/impl/provider/entity/Inflector.class | Bin 0 -> 8907 bytes
.../impl/provider/entity/InputStreamProvider.class | Bin 0 -> 4791 bytes
.../provider/entity/MimeMultipartProvider.class | Bin 0 -> 5039 bytes
.../core/impl/provider/entity/ReaderProvider.class | Bin 0 -> 4322 bytes
.../provider/entity/RenderedImageProvider.class | Bin 0 -> 6619 bytes
.../entity/SourceProvider$DOMSourceReader.class | Bin 0 -> 4212 bytes
.../entity/SourceProvider$SAXSourceReader.class | Bin 0 -> 4219 bytes
.../entity/SourceProvider$SourceWriter.class | Bin 0 -> 5927 bytes
.../entity/SourceProvider$StreamSourceReader.class | Bin 0 -> 2829 bytes
.../core/impl/provider/entity/SourceProvider.class | Bin 0 -> 788 bytes
.../provider/entity/StreamingOutputProvider.class | Bin 0 -> 3409 bytes
.../core/impl/provider/entity/StringProvider.class | Bin 0 -> 3982 bytes
.../entity/XMLJAXBElementProvider$App.class | Bin 0 -> 1308 bytes
.../entity/XMLJAXBElementProvider$General.class | Bin 0 -> 1424 bytes
.../entity/XMLJAXBElementProvider$Text.class | Bin 0 -> 1297 bytes
.../provider/entity/XMLJAXBElementProvider.class | Bin 0 -> 3375 bytes
.../entity/XMLListElementProvider$App.class | Bin 0 -> 1304 bytes
.../entity/XMLListElementProvider$General.class | Bin 0 -> 1420 bytes
.../entity/XMLListElementProvider$Text.class | Bin 0 -> 1293 bytes
.../provider/entity/XMLListElementProvider.class | Bin 0 -> 4230 bytes
.../entity/XMLRootElementProvider$App.class | Bin 0 -> 1308 bytes
.../entity/XMLRootElementProvider$General.class | Bin 0 -> 1424 bytes
.../entity/XMLRootElementProvider$Text.class | Bin 0 -> 1297 bytes
.../provider/entity/XMLRootElementProvider.class | Bin 0 -> 3063 bytes
.../entity/XMLRootObjectProvider$App.class | Bin 0 -> 1304 bytes
.../entity/XMLRootObjectProvider$General.class | Bin 0 -> 1420 bytes
.../entity/XMLRootObjectProvider$Text.class | Bin 0 -> 1293 bytes
.../provider/entity/XMLRootObjectProvider.class | Bin 0 -> 5638 bytes
.../provider/header/CacheControlProvider.class | Bin 0 -> 8174 bytes
.../core/impl/provider/header/CookieProvider.class | Bin 0 -> 2292 bytes
.../core/impl/provider/header/DateProvider.class | Bin 0 -> 2052 bytes
.../impl/provider/header/EntityTagProvider.class | Bin 0 -> 3115 bytes
.../impl/provider/header/LinkHeaderProvider.class | Bin 0 -> 1625 bytes
.../core/impl/provider/header/LocaleProvider.class | Bin 0 -> 2262 bytes
.../impl/provider/header/MediaTypeProvider.class | Bin 0 -> 3800 bytes
.../impl/provider/header/NewCookieProvider.class | Bin 0 -> 2587 bytes
.../core/impl/provider/header/StringProvider.class | Bin 0 -> 1360 bytes
.../core/impl/provider/header/URIProvider.class | Bin 0 -> 1828 bytes
.../core/impl/provider/header/WriterUtil.class | Bin 0 -> 1835 bytes
.../xml/DocumentBuilderFactoryProvider.class | Bin 0 -> 1802 bytes
.../xml/LazySingletonContextProvider$1.class | Bin 0 -> 1356 bytes
.../xml/LazySingletonContextProvider.class | Bin 0 -> 3089 bytes
.../provider/xml/SAXParserContextProvider.class | Bin 0 -> 2712 bytes
.../ThreadLocalSingletonContextProvider$1.class | Bin 0 -> 1109 bytes
.../ThreadLocalSingletonContextProvider$2.class | Bin 0 -> 1463 bytes
.../xml/ThreadLocalSingletonContextProvider.class | Bin 0 -> 2830 bytes
.../provider/xml/TransformerFactoryProvider.class | Bin 0 -> 1400 bytes
.../xml/XMLStreamReaderContextProvider.class | Bin 0 -> 1580 bytes
.../com/sun/jersey/core/osgi/Activator$1.class | Bin 0 -> 2217 bytes
.../com/sun/jersey/core/osgi/Activator$2.class | Bin 0 -> 1286 bytes
.../core/osgi/Activator$BundleFactoryLoader.class | Bin 0 -> 3410 bytes
.../core/osgi/Activator$OsgiServiceFinder$1.class | Bin 0 -> 2757 bytes
.../core/osgi/Activator$OsgiServiceFinder$2.class | Bin 0 -> 1807 bytes
.../core/osgi/Activator$OsgiServiceFinder.class | Bin 0 -> 2843 bytes
.../com/sun/jersey/core/osgi/Activator.class | Bin 0 -> 7588 bytes
.../com/sun/jersey/core/osgi/OsgiLocator.class | Bin 0 -> 3661 bytes
.../AbstractMessageReaderWriterProvider.class | Bin 0 -> 2500 bytes
.../jersey/core/provider/CompletableReader.class | Bin 0 -> 286 bytes
.../sun/jersey/core/provider/EntityHolder.class | Bin 0 -> 961 bytes
.../jaxb/AbstractJAXBElementProvider.class | Bin 0 -> 6539 bytes
.../core/provider/jaxb/AbstractJAXBProvider.class | Bin 0 -> 6719 bytes
.../jaxb/AbstractListElementProvider.class | Bin 0 -> 9894 bytes
.../jaxb/AbstractRootElementProvider.class | Bin 0 -> 6064 bytes
.../jersey/core/reflection/AnnotatedMethod.class | Bin 0 -> 9176 bytes
.../sun/jersey/core/reflection/MethodList$1.class | Bin 0 -> 1151 bytes
.../sun/jersey/core/reflection/MethodList$2.class | Bin 0 -> 1067 bytes
.../sun/jersey/core/reflection/MethodList$3.class | Bin 0 -> 1196 bytes
.../sun/jersey/core/reflection/MethodList$4.class | Bin 0 -> 1232 bytes
.../sun/jersey/core/reflection/MethodList$5.class | Bin 0 -> 1152 bytes
.../sun/jersey/core/reflection/MethodList$6.class | Bin 0 -> 1530 bytes
.../sun/jersey/core/reflection/MethodList$7.class | Bin 0 -> 1155 bytes
.../sun/jersey/core/reflection/MethodList$8.class | Bin 0 -> 1533 bytes
.../jersey/core/reflection/MethodList$Filter.class | Bin 0 -> 295 bytes
.../sun/jersey/core/reflection/MethodList.class | Bin 0 -> 6414 bytes
.../core/reflection/ReflectionHelper$1.class | Bin 0 -> 1113 bytes
.../core/reflection/ReflectionHelper$2.class | Bin 0 -> 939 bytes
.../ReflectionHelper$ClassTypePair.class | Bin 0 -> 753 bytes
...lectionHelper$DeclaringClassInterfacePair.class | Bin 0 -> 1170 bytes
.../ReflectionHelper$TypeClassPair.class | Bin 0 -> 643 bytes
.../jersey/core/reflection/ReflectionHelper.class | Bin 0 -> 13958 bytes
.../core/spi/component/AnnotatedContext.class | Bin 0 -> 1390 bytes
.../spi/component/ComponentConstructor$1.class | Bin 0 -> 279 bytes
...omponentConstructor$ConstructorComparator.class | Bin 0 -> 2664 bytes
...nentConstructor$ConstructorInjectablePair.class | Bin 0 -> 1905 bytes
.../core/spi/component/ComponentConstructor.class | Bin 0 -> 8161 bytes
.../core/spi/component/ComponentContext.class | Bin 0 -> 281 bytes
.../core/spi/component/ComponentDestructor.class | Bin 0 -> 2175 bytes
.../core/spi/component/ComponentInjector$1.class | Bin 0 -> 1667 bytes
.../core/spi/component/ComponentInjector.class | Bin 0 -> 5845 bytes
.../core/spi/component/ComponentProvider.class | Bin 0 -> 194 bytes
.../spi/component/ComponentProviderFactory.class | Bin 0 -> 404 bytes
.../jersey/core/spi/component/ComponentScope.class | Bin 0 -> 1694 bytes
.../component/ProviderFactory$Destroyable.class | Bin 0 -> 281 bytes
...roviderFactory$SingletonComponentProvider.class | Bin 0 -> 2207 bytes
.../core/spi/component/ProviderFactory.class | Bin 0 -> 6375 bytes
.../component/ProviderServices$ProviderClass.class | Bin 0 -> 931 bytes
.../ProviderServices$ProviderListener.class | Bin 0 -> 390 bytes
.../core/spi/component/ProviderServices.class | Bin 0 -> 12218 bytes
.../spi/component/ioc/IoCComponentProcessor.class | Bin 0 -> 238 bytes
.../ioc/IoCComponentProcessorFactory.class | Bin 0 -> 413 bytes
.../IoCComponentProcessorFactoryInitializer.class | Bin 0 -> 286 bytes
.../spi/component/ioc/IoCComponentProvider.class | Bin 0 -> 218 bytes
.../ioc/IoCComponentProviderFactory.class | Bin 0 -> 895 bytes
.../core/spi/component/ioc/IoCDestroyable.class | Bin 0 -> 189 bytes
.../ioc/IoCFullyManagedComponentProvider.class | Bin 0 -> 323 bytes
.../ioc/IoCInstantiatedComponentProvider.class | Bin 0 -> 322 bytes
.../ioc/IoCManagedComponentProvider.class | Bin 0 -> 325 bytes
.../IoCProviderFactory$FullyManagedSingleton.class | Bin 0 -> 763 bytes
.../IoCProviderFactory$InstantiatedSingleton.class | Bin 0 -> 3130 bytes
.../ioc/IoCProviderFactory$ManagedSingleton.class | Bin 0 -> 1518 bytes
...oCProviderFactory$ProxiedSingletonWrapper.class | Bin 0 -> 2246 bytes
.../spi/component/ioc/IoCProviderFactory.class | Bin 0 -> 5304 bytes
.../ioc/IoCProxiedComponentProvider.class | Bin 0 -> 341 bytes
.../core/spi/factory/AbstractRuntimeDelegate.class | Bin 0 -> 3628 bytes
.../spi/factory/ContextResolverFactory$1$1.class | Bin 0 -> 954 bytes
.../spi/factory/ContextResolverFactory$1$2.class | Bin 0 -> 1058 bytes
.../spi/factory/ContextResolverFactory$1.class | Bin 0 -> 5959 bytes
...extResolverFactory$ContextResolverAdapter.class | Bin 0 -> 2399 bytes
...esolverFactory$NullContextResolverAdapter.class | Bin 0 -> 1106 bytes
.../core/spi/factory/ContextResolverFactory.class | Bin 0 -> 8129 bytes
.../spi/factory/InjectableProviderFactory$1.class | Bin 0 -> 1437 bytes
.../spi/factory/InjectableProviderFactory$2.class | Bin 0 -> 1446 bytes
...bleProviderFactory$MetaInjectableProvider.class | Bin 0 -> 1107 bytes
.../spi/factory/InjectableProviderFactory.class | Bin 0 -> 10828 bytes
.../core/spi/factory/MessageBodyFactory$1.class | Bin 0 -> 1919 bytes
.../core/spi/factory/MessageBodyFactory$2.class | Bin 0 -> 1818 bytes
.../MessageBodyFactory$DistanceComparator.class | Bin 0 -> 2642 bytes
.../MessageBodyFactory$MessageBodyWriterPair.class | Bin 0 -> 911 bytes
.../core/spi/factory/MessageBodyFactory.class | Bin 0 -> 17696 bytes
.../core/spi/factory/ResponseBuilderHeaders.class | Bin 0 -> 3024 bytes
.../core/spi/factory/ResponseBuilderImpl.class | Bin 0 -> 9348 bytes
.../jersey/core/spi/factory/ResponseImpl$1.class | Bin 0 -> 1149 bytes
.../sun/jersey/core/spi/factory/ResponseImpl.class | Bin 0 -> 3524 bytes
.../core/spi/factory/VariantListBuilderImpl.class | Bin 0 -> 3518 bytes
.../jersey/core/spi/scanning/FilesScanner$1.class | Bin 0 -> 1348 bytes
.../jersey/core/spi/scanning/FilesScanner.class | Bin 0 -> 2970 bytes
.../core/spi/scanning/JarFileScanner$1.class | Bin 0 -> 1168 bytes
.../jersey/core/spi/scanning/JarFileScanner.class | Bin 0 -> 2128 bytes
.../PackageNamesScanner$ResourcesProvider$1.class | Bin 0 -> 1147 bytes
.../PackageNamesScanner$ResourcesProvider.class | Bin 0 -> 2043 bytes
.../core/spi/scanning/PackageNamesScanner.class | Bin 0 -> 6427 bytes
.../com/sun/jersey/core/spi/scanning/Scanner.class | Bin 0 -> 277 bytes
.../core/spi/scanning/ScannerException.class | Bin 0 -> 781 bytes
.../jersey/core/spi/scanning/ScannerListener.class | Bin 0 -> 300 bytes
.../spi/scanning/uri/BundleSchemeScanner$1.class | Bin 0 -> 1402 bytes
.../spi/scanning/uri/BundleSchemeScanner.class | Bin 0 -> 2292 bytes
.../spi/scanning/uri/FileSchemeScanner$1.class | Bin 0 -> 1404 bytes
.../core/spi/scanning/uri/FileSchemeScanner.class | Bin 0 -> 2706 bytes
.../spi/scanning/uri/JarZipSchemeScanner$1.class | Bin 0 -> 1387 bytes
.../spi/scanning/uri/JarZipSchemeScanner.class | Bin 0 -> 3068 bytes
.../core/spi/scanning/uri/UriSchemeScanner.class | Bin 0 -> 414 bytes
.../spi/scanning/uri/VfsSchemeScanner$1$1.class | Bin 0 -> 913 bytes
.../core/spi/scanning/uri/VfsSchemeScanner$1.class | Bin 0 -> 2306 bytes
.../core/spi/scanning/uri/VfsSchemeScanner.class | Bin 0 -> 3495 bytes
.../com/sun/jersey/core/util/Base64.class | Bin 0 -> 6199 bytes
.../com/sun/jersey/core/util/Closing$Closure.class | Bin 0 -> 294 bytes
.../com/sun/jersey/core/util/Closing.class | Bin 0 -> 1163 bytes
.../jersey/core/util/FeaturesAndProperties.class | Bin 0 -> 911 bytes
.../com/sun/jersey/core/util/KeyComparator.class | Bin 0 -> 385 bytes
.../jersey/core/util/KeyComparatorHashMap$1.class | Bin 0 -> 261 bytes
.../core/util/KeyComparatorHashMap$Entry.class | Bin 0 -> 3070 bytes
.../util/KeyComparatorHashMap$EntryIterator.class | Bin 0 -> 1697 bytes
.../core/util/KeyComparatorHashMap$EntrySet.class | Bin 0 -> 2304 bytes
.../util/KeyComparatorHashMap$HashIterator.class | Bin 0 -> 2635 bytes
.../util/KeyComparatorHashMap$KeyIterator.class | Bin 0 -> 1492 bytes
.../util/KeyComparatorHashMap$ValueIterator.class | Bin 0 -> 1520 bytes
.../jersey/core/util/KeyComparatorHashMap.class | Bin 0 -> 15153 bytes
.../core/util/KeyComparatorLinkedHashMap$1.class | Bin 0 -> 279 bytes
.../util/KeyComparatorLinkedHashMap$Entry.class | Bin 0 -> 2918 bytes
.../KeyComparatorLinkedHashMap$EntryIterator.class | Bin 0 -> 1811 bytes
.../KeyComparatorLinkedHashMap$KeyIterator.class | Bin 0 -> 1606 bytes
...omparatorLinkedHashMap$LinkedHashIterator.class | Bin 0 -> 2698 bytes
.../KeyComparatorLinkedHashMap$ValueIterator.class | Bin 0 -> 1634 bytes
.../core/util/KeyComparatorLinkedHashMap.class | Bin 0 -> 6825 bytes
.../com/sun/jersey/core/util/LazyVal.class | Bin 0 -> 999 bytes
.../sun/jersey/core/util/MultivaluedMapImpl.class | Bin 0 -> 6524 bytes
.../com/sun/jersey/core/util/ReaderWriter.class | Bin 0 -> 3696 bytes
.../core/util/StringIgnoreCaseKeyComparator.class | Bin 0 -> 1622 bytes
.../util/StringKeyIgnoreCaseMultivaluedMap.class | Bin 0 -> 3678 bytes
...ingKeyObjectValueIgnoreCaseMultivaluedMap.class | Bin 0 -> 3018 bytes
...ingKeyStringValueIgnoreCaseMultivaluedMap.class | Bin 0 -> 4455 bytes
.../com/sun/jersey/core/util/ThrowHelper.class | Bin 0 -> 731 bytes
.../core/util/UnmodifiableMultivaluedMap.class | Bin 0 -> 4103 bytes
.../com/sun/jersey/impl/ApiMessages.class | Bin 0 -> 709 bytes
.../com/sun/jersey/impl/ImplMessages.class | Bin 0 -> 18801 bytes
.../com/sun/jersey/impl/SpiMessages.class | Bin 0 -> 3882 bytes
com.sun.jersey/com/sun/jersey/impl/api.properties | 40 +
com.sun.jersey/com/sun/jersey/impl/impl.properties | 63 ++
com.sun.jersey/com/sun/jersey/impl/spi.properties | 9 +
.../com/sun/jersey/localization/Localizable.class | Bin 0 -> 473 bytes
.../jersey/localization/LocalizableMessage.class | Bin 0 -> 1022 bytes
.../localization/LocalizableMessageFactory.class | Bin 0 -> 813 bytes
.../com/sun/jersey/localization/Localizer.class | Bin 0 -> 3227 bytes
.../com/sun/jersey/spi/CloseableService.class | Bin 0 -> 171 bytes
.../sun/jersey/spi/HeaderDelegateProvider.class | Bin 0 -> 475 bytes
.../com/sun/jersey/spi/MessageBodyWorkers.class | Bin 0 -> 2229 bytes
.../spi/StringReader$ValidateDefaultValue.class | Bin 0 -> 594 bytes
.../com/sun/jersey/spi/StringReader.class | Bin 0 -> 395 bytes
.../com/sun/jersey/spi/StringReaderProvider.class | Bin 0 -> 471 bytes
.../com/sun/jersey/spi/StringReaderWorkers.class | Bin 0 -> 442 bytes
.../com/sun/jersey/spi/inject/ClientSide.class | Bin 0 -> 334 bytes
.../com/sun/jersey/spi/inject/ConstrainedTo.class | Bin 0 -> 563 bytes
.../sun/jersey/spi/inject/ConstrainedToType.class | Bin 0 -> 328 bytes
.../com/sun/jersey/spi/inject/Errors$1.class | Bin 0 -> 703 bytes
.../com/sun/jersey/spi/inject/Errors$Closure.class | Bin 0 -> 320 bytes
.../jersey/spi/inject/Errors$ErrorMessage.class | Bin 0 -> 1466 bytes
.../spi/inject/Errors$ErrorMessagesException.class | Bin 0 -> 1072 bytes
.../com/sun/jersey/spi/inject/Errors.class | Bin 0 -> 7265 bytes
.../com/sun/jersey/spi/inject/Inject.class | Bin 0 -> 572 bytes
.../com/sun/jersey/spi/inject/Injectable.class | Bin 0 -> 248 bytes
.../sun/jersey/spi/inject/InjectableProvider.class | Bin 0 -> 595 bytes
...ctableProviderContext$InjectableScopePair.class | Bin 0 -> 777 bytes
.../spi/inject/InjectableProviderContext.class | Bin 0 -> 2279 bytes
.../inject/PerRequestTypeInjectableProvider.class | Bin 0 -> 2299 bytes
.../com/sun/jersey/spi/inject/ServerSide.class | Bin 0 -> 334 bytes
.../inject/SingletonTypeInjectableProvider.class | Bin 0 -> 2384 bytes
.../spi/service/ServiceConfigurationError.class | Bin 0 -> 554 bytes
.../sun/jersey/spi/service/ServiceFinder$1.class | Bin 0 -> 244 bytes
.../ServiceFinder$AbstractLazyIterator.class | Bin 0 -> 4785 bytes
...viceFinder$DefaultServiceIteratorProvider.class | Bin 0 -> 1956 bytes
.../service/ServiceFinder$LazyClassIterator.class | Bin 0 -> 3291 bytes
.../service/ServiceFinder$LazyObjectIterator.class | Bin 0 -> 4538 bytes
.../ServiceFinder$ServiceIteratorProvider.class | Bin 0 -> 2341 bytes
.../com/sun/jersey/spi/service/ServiceFinder.class | Bin 0 -> 17391 bytes
.../com/sun/ws/rs/ext/RuntimeDelegateImpl.class | Bin 0 -> 895 bytes
com.sun.jersey/javax/ws/rs/ApplicationPath.class | Bin 0 -> 424 bytes
com.sun.jersey/javax/ws/rs/Consumes.class | Bin 0 -> 502 bytes
com.sun.jersey/javax/ws/rs/CookieParam.class | Bin 0 -> 448 bytes
com.sun.jersey/javax/ws/rs/DELETE.class | Bin 0 -> 422 bytes
com.sun.jersey/javax/ws/rs/DefaultValue.class | Bin 0 -> 450 bytes
com.sun.jersey/javax/ws/rs/Encoded.class | Bin 0 -> 480 bytes
com.sun.jersey/javax/ws/rs/FormParam.class | Bin 0 -> 444 bytes
com.sun.jersey/javax/ws/rs/GET.class | Bin 0 -> 413 bytes
com.sun.jersey/javax/ws/rs/HEAD.class | Bin 0 -> 416 bytes
com.sun.jersey/javax/ws/rs/HeaderParam.class | Bin 0 -> 488 bytes
com.sun.jersey/javax/ws/rs/HttpMethod.class | Bin 0 -> 661 bytes
com.sun.jersey/javax/ws/rs/MatrixParam.class | Bin 0 -> 448 bytes
com.sun.jersey/javax/ws/rs/OPTIONS.class | Bin 0 -> 425 bytes
com.sun.jersey/javax/ws/rs/POST.class | Bin 0 -> 416 bytes
com.sun.jersey/javax/ws/rs/PUT.class | Bin 0 -> 413 bytes
com.sun.jersey/javax/ws/rs/Path.class | Bin 0 -> 416 bytes
com.sun.jersey/javax/ws/rs/PathParam.class | Bin 0 -> 444 bytes
com.sun.jersey/javax/ws/rs/Produces.class | Bin 0 -> 502 bytes
com.sun.jersey/javax/ws/rs/QueryParam.class | Bin 0 -> 446 bytes
.../javax/ws/rs/WebApplicationException.class | Bin 0 -> 2073 bytes
com.sun.jersey/javax/ws/rs/core/Application.class | Bin 0 -> 866 bytes
com.sun.jersey/javax/ws/rs/core/CacheControl.class | Bin 0 -> 4882 bytes
com.sun.jersey/javax/ws/rs/core/Context.class | Bin 0 -> 454 bytes
com.sun.jersey/javax/ws/rs/core/Cookie.class | Bin 0 -> 3232 bytes
com.sun.jersey/javax/ws/rs/core/EntityTag.class | Bin 0 -> 2242 bytes
.../javax/ws/rs/core/GenericEntity.class | Bin 0 -> 3095 bytes
com.sun.jersey/javax/ws/rs/core/HttpHeaders.class | Bin 0 -> 2099 bytes
com.sun.jersey/javax/ws/rs/core/MediaType$1.class | Bin 0 -> 1069 bytes
com.sun.jersey/javax/ws/rs/core/MediaType.class | Bin 0 -> 6049 bytes
.../javax/ws/rs/core/MultivaluedMap.class | Bin 0 -> 454 bytes
com.sun.jersey/javax/ws/rs/core/NewCookie.class | Bin 0 -> 4266 bytes
com.sun.jersey/javax/ws/rs/core/PathSegment.class | Bin 0 -> 325 bytes
com.sun.jersey/javax/ws/rs/core/Request.class | Bin 0 -> 847 bytes
.../ws/rs/core/Response$ResponseBuilder.class | Bin 0 -> 2842 bytes
.../javax/ws/rs/core/Response$Status$Family.class | Bin 0 -> 1400 bytes
.../javax/ws/rs/core/Response$Status.class | Bin 0 -> 3988 bytes
.../javax/ws/rs/core/Response$StatusType.class | Bin 0 -> 462 bytes
com.sun.jersey/javax/ws/rs/core/Response.class | Bin 0 -> 5165 bytes
.../javax/ws/rs/core/SecurityContext.class | Bin 0 -> 523 bytes
.../javax/ws/rs/core/StreamingOutput.class | Bin 0 -> 263 bytes
com.sun.jersey/javax/ws/rs/core/UriBuilder.class | Bin 0 -> 3068 bytes
.../javax/ws/rs/core/UriBuilderException.class | Bin 0 -> 818 bytes
com.sun.jersey/javax/ws/rs/core/UriInfo.class | Bin 0 -> 1159 bytes
.../ws/rs/core/Variant$VariantListBuilder.class | Bin 0 -> 1071 bytes
com.sun.jersey/javax/ws/rs/core/Variant.class | Bin 0 -> 3210 bytes
.../javax/ws/rs/ext/ContextResolver.class | Bin 0 -> 287 bytes
.../javax/ws/rs/ext/ExceptionMapper.class | Bin 0 -> 310 bytes
.../javax/ws/rs/ext/FactoryFinder$1.class | Bin 0 -> 1052 bytes
com.sun.jersey/javax/ws/rs/ext/FactoryFinder.class | Bin 0 -> 3684 bytes
.../javax/ws/rs/ext/MessageBodyReader.class | Bin 0 -> 950 bytes
.../javax/ws/rs/ext/MessageBodyWriter.class | Bin 0 -> 1220 bytes
com.sun.jersey/javax/ws/rs/ext/Provider.class | Bin 0 -> 423 bytes
com.sun.jersey/javax/ws/rs/ext/Providers.class | Bin 0 -> 1258 bytes
.../ws/rs/ext/RuntimeDelegate$HeaderDelegate.class | Bin 0 -> 543 bytes
.../javax/ws/rs/ext/RuntimeDelegate.class | Bin 0 -> 3999 bytes
693 files changed, 15832 insertions(+)
create mode 100644 com.gluster.storage.management.client/.classpath
create mode 100644 com.gluster.storage.management.client/.project
create mode 100644 com.gluster.storage.management.client/.settings/org.eclipse.jdt.core.prefs
create mode 100644 com.gluster.storage.management.client/META-INF/MANIFEST.MF
create mode 100644 com.gluster.storage.management.client/build.properties
create mode 100644 com.gluster.storage.management.client/lib/jersey-client-1.4.jar
create mode 100644 com.gluster.storage.management.client/lib/jersey-core-1.4.jar
create mode 100644 com.gluster.storage.management.client/src/com/gluster/storage/management/client/AuthManager.java
create mode 100644 com.gluster.storage.management.client/src/com/gluster/storage/management/client/RESTClientTest.java
create mode 100644 com.gluster.storage.management.core/.classpath
create mode 100644 com.gluster.storage.management.core/.project
create mode 100644 com.gluster.storage.management.core/.settings/org.eclipse.jdt.core.prefs
create mode 100644 com.gluster.storage.management.core/META-INF/MANIFEST.MF
create mode 100644 com.gluster.storage.management.core/build.properties
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/CoreConstants.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/exceptions/GlusterRuntimeException.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/AuthStatus.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Cluster.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/ConnectionDetails.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/DefaultClusterListener.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Disk.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Entity.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/EntityGroup.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Event.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Filterable.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDataModel.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDummyModel.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterServer.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/IClusterListener.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/LogMessage.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/NetworkInterface.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Server.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/User.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Volume.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/Crypt.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/DateUtil.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/FileUtil.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5Crypt.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/NumberUtil.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessResult.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessUtil.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/StringUtils.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/UnixCrypt.java
create mode 100644 com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/sample_jaas.config
create mode 100644 com.gluster.storage.management.gui.feature.webstart/.project
create mode 100644 com.gluster.storage.management.gui.feature.webstart/build.properties
create mode 100644 com.gluster.storage.management.gui.feature.webstart/feature.xml
create mode 100644 com.gluster.storage.management.gui.feature.webstart/rootfiles/gluster-management-console.jnlp
create mode 100644 com.gluster.storage.management.gui.feature.webstart/rootfiles/index.html
create mode 100644 com.gluster.storage.management.gui.feature.webstart/rootfiles/splash.bmp
create mode 100644 com.gluster.storage.management.gui.feature/.project
create mode 100644 com.gluster.storage.management.gui.feature/build.properties
create mode 100644 com.gluster.storage.management.gui.feature/feature.xml
create mode 100644 com.gluster.storage.management.gui/.classpath
create mode 100644 com.gluster.storage.management.gui/.project
create mode 100644 com.gluster.storage.management.gui/.settings/org.eclipse.jdt.core.prefs
create mode 100644 com.gluster.storage.management.gui/META-INF/MANIFEST.MF
create mode 100644 com.gluster.storage.management.gui/build.properties
create mode 100644 com.gluster.storage.management.gui/icons/arrow-down.png
create mode 100644 com.gluster.storage.management.gui/icons/arrow-up.png
create mode 100644 com.gluster.storage.management.gui/icons/cluster.png
create mode 100644 com.gluster.storage.management.gui/icons/disk-migrate.png
create mode 100644 com.gluster.storage.management.gui/icons/disk-uninitialized.png
create mode 100644 com.gluster.storage.management.gui/icons/disk.png
create mode 100644 com.gluster.storage.management.gui/icons/disks.png
create mode 100644 com.gluster.storage.management.gui/icons/folder.png
create mode 100644 com.gluster.storage.management.gui/icons/gluster_icon.png
create mode 100644 com.gluster.storage.management.gui/icons/group.png
create mode 100644 com.gluster.storage.management.gui/icons/gsn.png
create mode 100644 com.gluster.storage.management.gui/icons/mail.ico
create mode 100644 com.gluster.storage.management.gui/icons/minus-white.png
create mode 100644 com.gluster.storage.management.gui/icons/network-interface.png
create mode 100644 com.gluster.storage.management.gui/icons/network-interfaces.png
create mode 100644 com.gluster.storage.management.gui/icons/network-interfaces1.png
create mode 100644 com.gluster.storage.management.gui/icons/plus-white.png
create mode 100644 com.gluster.storage.management.gui/icons/preferences.png
create mode 100644 com.gluster.storage.management.gui/icons/progress-bar.png
create mode 100644 com.gluster.storage.management.gui/icons/question.png
create mode 100644 com.gluster.storage.management.gui/icons/sample.gif
create mode 100644 com.gluster.storage.management.gui/icons/sample.icns
create mode 100644 com.gluster.storage.management.gui/icons/sample2.gif
create mode 100644 com.gluster.storage.management.gui/icons/sample3.gif
create mode 100644 com.gluster.storage.management.gui/icons/search.png
create mode 100644 com.gluster.storage.management.gui/icons/server-add-big.png
create mode 100644 com.gluster.storage.management.gui/icons/server-add.png
create mode 100644 com.gluster.storage.management.gui/icons/server-remove.png
create mode 100644 com.gluster.storage.management.gui/icons/server.png
create mode 100644 com.gluster.storage.management.gui/icons/servers.png
create mode 100644 com.gluster.storage.management.gui/icons/star-small.png
create mode 100644 com.gluster.storage.management.gui/icons/status-offline-circle.png
create mode 100644 com.gluster.storage.management.gui/icons/status-offline-small.png
create mode 100644 com.gluster.storage.management.gui/icons/status-offline.png
create mode 100644 com.gluster.storage.management.gui/icons/status-online-circle.png
create mode 100644 com.gluster.storage.management.gui/icons/status-online-small.png
create mode 100644 com.gluster.storage.management.gui/icons/status-online.png
create mode 100644 com.gluster.storage.management.gui/icons/stop.png
create mode 100644 com.gluster.storage.management.gui/icons/ui-check-box-mix.png
create mode 100644 com.gluster.storage.management.gui/icons/ui-check-box-uncheck.png
create mode 100644 com.gluster.storage.management.gui/icons/ui-check-box.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-create-big.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-create.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-delete.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-edit.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-rebalance.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-start.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-stop-1.png
create mode 100644 com.gluster.storage.management.gui/icons/volume-stop.png
create mode 100644 com.gluster.storage.management.gui/icons/volume.png
create mode 100644 com.gluster.storage.management.gui/icons/volume1.png
create mode 100644 com.gluster.storage.management.gui/icons/volumes.png
create mode 100644 com.gluster.storage.management.gui/icons/volumes1.png
create mode 100644 com.gluster.storage.management.gui/icons/volumes2.png
create mode 100644 com.gluster.storage.management.gui/icons/volumes3.png
create mode 100644 com.gluster.storage.management.gui/icons/world.png
create mode 100644 com.gluster.storage.management.gui/images/gauge.png
create mode 100644 com.gluster.storage.management.gui/images/gauge_small.png
create mode 100644 com.gluster.storage.management.gui/images/progress_image_empty.png
create mode 100644 com.gluster.storage.management.gui/images/progress_image_filled_danger.png
create mode 100644 com.gluster.storage.management.gui/images/progress_image_filled_safe.png
create mode 100644 com.gluster.storage.management.gui/images/progress_image_left.png
create mode 100644 com.gluster.storage.management.gui/images/progress_image_right.png
create mode 100644 com.gluster.storage.management.gui/plugin.xml
create mode 100644 com.gluster.storage.management.gui/preferences.ini
create mode 100644 com.gluster.storage.management.gui/splash.bmp
create mode 100644 com.gluster.storage.management.gui/splash/gluster_about.jpg
create mode 100644 com.gluster.storage.management.gui/splash/splash-dialog.bmp
create mode 100644 com.gluster.storage.management.gui/splash/splash-dialog.png
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Activator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Application.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationActionBarAdvisor.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchAdvisor.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchWindowAdvisor.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/DiskTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/EntityGroupContentProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/GlusterServerTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ICommandIds.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IEntityListener.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IImageKeys.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/NetworkInterfaceTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Perspective.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerDiskTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/TableLabelProviderAdapter.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeLogTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeOptionsTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeTableLabelProvider.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AbstractActionDelegate.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AddServerAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/CreateVolumeAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DeleteVolumeAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/EditVolumeAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/IActionSetIDs.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateDiskAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateVolumeAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/PreferencesAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RebalanceVolumeAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RemoveServerAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/TestPopupMenuAction.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeDisksPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumePage1.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeWizard.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskPage1.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskWizard.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/SelectDisksDialog.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/Messages.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage1.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/ThirdPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/TimeZones.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/messages_en_IN.properties
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/jobs/InitializeDiskJob.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/login/LoginDialog.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ClusterPreferencePage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ConsolePreferencePage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/GlusterPreferencePage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceConstants.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceInitializer.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/IToolbarManager.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/ToolbarManager.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePicker.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePickerCombo.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DiskViewerEditingSupport.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/EntityViewerFilter.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/GUIHelper.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/HyperlinkCellEditor.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/validators/StringRequiredValidator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/AbstractDisksPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DetailsView.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DisksPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/GlusterServersPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerDisksPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerLogsPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServersPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/SmartControlAdapter.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/TabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/TabCreatorFactory.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/TabCreatorFactoryImpl.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/TestComposite.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/VolumeLogsPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/VolumeOptionsPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/VolumesPage.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/ClusterTabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/EntityGroupGlusterServerTabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/EntityGroupServerTabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/EntityGroupVolumeTabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/GlusterServerTabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/PieChartViewerComposite.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/ServerTabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/tabcreators/VolumeTabCreator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/navigator/ClusterAdapterFactory.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/navigator/NavigationTreeLabelDecorator.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/navigator/NavigationView.java
create mode 100644 com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/navigator/RootAdapter.java
create mode 100644 com.gluster.storage.management.gui/src/com/swtdesigner/ResourceManager.java
create mode 100644 com.gluster.storage.management.gui/src/com/swtdesigner/SWTResourceManager.java
create mode 100644 com.gluster.storage.management.server/.classpath
create mode 100644 com.gluster.storage.management.server/.project
create mode 100644 com.gluster.storage.management.server/.settings/.jsdtscope
create mode 100644 com.gluster.storage.management.server/.settings/org.eclipse.jdt.core.prefs
create mode 100644 com.gluster.storage.management.server/.settings/org.eclipse.ltk.core.refactoring.prefs
create mode 100644 com.gluster.storage.management.server/.settings/org.eclipse.wst.common.component
create mode 100644 com.gluster.storage.management.server/.settings/org.eclipse.wst.common.project.facet.core.xml
create mode 100644 com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.container
create mode 100644 com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.name
create mode 100644 com.gluster.storage.management.server/.settings/org.eclipse.wst.ws.service.policy.prefs
create mode 100644 com.gluster.storage.management.server/WebContent/META-INF/MANIFEST.MF
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/asm-3.1.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/com.gluster.storage.management.core_1.0.0.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-core-asl-1.5.5.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-jaxrs-1.5.5.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-mapper-asl-1.5.5.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-xc-1.5.5.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-client-1.4.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-core-1.4.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-json-1.4.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-server-1.4.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jettison-1.1.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar
create mode 100644 com.gluster.storage.management.server/WebContent/WEB-INF/web.xml
create mode 100644 com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/AuthManager.java
create mode 100644 com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/Hello.java
create mode 100644 com.sun.jersey/.classpath
create mode 100644 com.sun.jersey/.project
create mode 100644 com.sun.jersey/.settings/org.eclipse.jdt.core.prefs
create mode 100644 com.sun.jersey/META-INF/MANIFEST.MF
create mode 100644 com.sun.jersey/META-INF/jersey-module-version
create mode 100644 com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.properties
create mode 100644 com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.xml
create mode 100644 com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.properties
create mode 100644 com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.xml
create mode 100644 com.sun.jersey/META-INF/services/com.sun.jersey.spi.HeaderDelegateProvider
create mode 100644 com.sun.jersey/META-INF/services/com.sun.jersey.spi.inject.InjectableProvider
create mode 100644 com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyReader
create mode 100644 com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyWriter
create mode 100644 com.sun.jersey/build.properties
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AbstractClientRequestAdapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncUniformInterface.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$Builder.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncViewUniformInterface.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$3.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$4.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$5.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$6.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$Builder.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$3.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$4$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$4.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client$ContextInjectableProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/Client.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ClientHandler.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ClientHandlerException.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ClientRequest$Builder.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ClientRequest.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ClientRequestAdapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ClientResponse$Status.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ClientResponse.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/CommittingOutputStream.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ComponentsClientConfig.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/GenericType.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/PartialRequestBuilder.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/RequestBuilder.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/UniformInterface.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/UniformInterfaceException.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ViewResource$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ViewResource$Builder.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ViewResource.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/ViewUniformInterface.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/WebResource$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/WebResource$Builder.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/WebResource.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/WebResourceLinkHeaders.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/async/AsyncClientHandler.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/async/FutureListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/async/ITypeListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/async/TypeListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/config/ClientConfig.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/config/DefaultClientConfig.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/ClientFilter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/ClientRequestContainer.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter$Adapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/ContainerListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/Filterable.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter$Adapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/HTTPBasicAuthFilter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$QOP.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$State.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$Adapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$LoggingOutputStream.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/OnStartConnectionListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/ReportingInputStream.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/client/filter/ReportingOutputStream.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/representation/Form.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriBuilderImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriComponent$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriComponent$PathSegmentImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriComponent$Type.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriComponent.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriPattern$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriPattern$EmptyStringMatchResult.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriPattern$GroupIndexMatchResult.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriPattern.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriTemplate$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriTemplate.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$CharacterIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$StringCharacterIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/impl/ClientRequestImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/osgi/Activator.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/proxy/ViewProxy.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/proxy/ViewProxyProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/urlconnection/HTTPSProperties.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/urlconnection/HttpURLConnectionFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$URLConnectionResponse.class
create mode 100644 com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/AcceptableLanguageTag.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/AcceptableMediaType.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/AcceptableToken.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/ContentDisposition$ContentDispositionBuilder.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/ContentDisposition.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition$FormDataContentDispositionBuilder.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/InBoundHeaders.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/LanguageTag.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/LinkHeader$LinkHeaderBuilder.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/LinkHeader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/LinkHeaders.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/MatchingEntityTag.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/MediaTypes$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/MediaTypes$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/MediaTypes$3.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/MediaTypes$4.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/MediaTypes.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/OutBoundHeaders.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/ParameterizedHeader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/QualityFactor.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/QualitySourceMediaType.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/Token.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableCookie.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableNewCookie.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderListAdapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$3.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$4.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$5.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$6.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$7.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$8.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$9.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$Event.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$ListElementCreator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReaderImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/BaseFormProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ByteArrayProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource$DSByteArrayOutputStream.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DocumentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/EntityHolderReader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FileProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormMultivaluedMapProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector$Replacer.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/InputStreamProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/MimeMultipartProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ReaderProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/RenderedImageProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$DOMSourceReader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SAXSourceReader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SourceWriter.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$StreamSourceReader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StreamingOutputProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StringProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$App.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$General.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$Text.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$App.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$General.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$Text.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$App.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$General.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$Text.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$App.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$General.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$Text.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/CacheControlProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/CookieProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/DateProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/EntityTagProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/LinkHeaderProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/LocaleProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/MediaTypeProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/NewCookieProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/StringProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/URIProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/header/WriterUtil.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/DocumentBuilderFactoryProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/SAXParserContextProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/TransformerFactoryProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/impl/provider/xml/XMLStreamReaderContextProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/Activator$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/Activator$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/Activator$BundleFactoryLoader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/Activator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/osgi/OsgiLocator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/provider/AbstractMessageReaderWriterProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/provider/CompletableReader.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/provider/EntityHolder.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBElementProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractListElementProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractRootElementProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/AnnotatedMethod.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$3.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$4.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$5.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$6.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$7.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$8.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList$Filter.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/MethodList.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$ClassTypePair.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$DeclaringClassInterfacePair.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$TypeClassPair.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/AnnotatedContext.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorComparator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorInjectablePair.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentContext.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentDestructor.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProviderFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ComponentScope.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$Destroyable.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$SingletonComponentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderClass.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessor.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactoryInitializer.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProviderFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCDestroyable.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCFullyManagedComponentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCInstantiatedComponentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCManagedComponentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$FullyManagedSingleton.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$InstantiatedSingleton.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ManagedSingleton.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ProxiedSingletonWrapper.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProxiedComponentProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$ContextResolverAdapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$NullContextResolverAdapter.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$MetaInjectableProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$2.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$DistanceComparator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$MessageBodyWriterPair.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderHeaders.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/factory/VariantListBuilderImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/Scanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerException.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerListener.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/UriSchemeScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/Base64.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/Closing$Closure.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/Closing.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/FeaturesAndProperties.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$Entry.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntryIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntrySet.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$HashIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$KeyIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$ValueIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$Entry.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$EntryIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$KeyIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$LinkedHashIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$ValueIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/LazyVal.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/MultivaluedMapImpl.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/ReaderWriter.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/StringIgnoreCaseKeyComparator.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/StringKeyIgnoreCaseMultivaluedMap.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/StringKeyObjectValueIgnoreCaseMultivaluedMap.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/StringKeyStringValueIgnoreCaseMultivaluedMap.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/ThrowHelper.class
create mode 100644 com.sun.jersey/com/sun/jersey/core/util/UnmodifiableMultivaluedMap.class
create mode 100644 com.sun.jersey/com/sun/jersey/impl/ApiMessages.class
create mode 100644 com.sun.jersey/com/sun/jersey/impl/ImplMessages.class
create mode 100644 com.sun.jersey/com/sun/jersey/impl/SpiMessages.class
create mode 100644 com.sun.jersey/com/sun/jersey/impl/api.properties
create mode 100644 com.sun.jersey/com/sun/jersey/impl/impl.properties
create mode 100644 com.sun.jersey/com/sun/jersey/impl/spi.properties
create mode 100644 com.sun.jersey/com/sun/jersey/localization/Localizable.class
create mode 100644 com.sun.jersey/com/sun/jersey/localization/LocalizableMessage.class
create mode 100644 com.sun.jersey/com/sun/jersey/localization/LocalizableMessageFactory.class
create mode 100644 com.sun.jersey/com/sun/jersey/localization/Localizer.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/CloseableService.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/HeaderDelegateProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/MessageBodyWorkers.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/StringReader$ValidateDefaultValue.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/StringReader.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/StringReaderProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/StringReaderWorkers.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/ClientSide.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedTo.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedToType.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/Errors$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/Errors$Closure.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessage.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessagesException.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/Errors.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/Inject.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/Injectable.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/InjectableProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext$InjectableScopePair.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/PerRequestTypeInjectableProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/ServerSide.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/inject/SingletonTypeInjectableProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceConfigurationError.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$1.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$AbstractLazyIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$DefaultServiceIteratorProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyClassIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyObjectIterator.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$ServiceIteratorProvider.class
create mode 100644 com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder.class
create mode 100644 com.sun.jersey/com/sun/ws/rs/ext/RuntimeDelegateImpl.class
create mode 100644 com.sun.jersey/javax/ws/rs/ApplicationPath.class
create mode 100644 com.sun.jersey/javax/ws/rs/Consumes.class
create mode 100644 com.sun.jersey/javax/ws/rs/CookieParam.class
create mode 100644 com.sun.jersey/javax/ws/rs/DELETE.class
create mode 100644 com.sun.jersey/javax/ws/rs/DefaultValue.class
create mode 100644 com.sun.jersey/javax/ws/rs/Encoded.class
create mode 100644 com.sun.jersey/javax/ws/rs/FormParam.class
create mode 100644 com.sun.jersey/javax/ws/rs/GET.class
create mode 100644 com.sun.jersey/javax/ws/rs/HEAD.class
create mode 100644 com.sun.jersey/javax/ws/rs/HeaderParam.class
create mode 100644 com.sun.jersey/javax/ws/rs/HttpMethod.class
create mode 100644 com.sun.jersey/javax/ws/rs/MatrixParam.class
create mode 100644 com.sun.jersey/javax/ws/rs/OPTIONS.class
create mode 100644 com.sun.jersey/javax/ws/rs/POST.class
create mode 100644 com.sun.jersey/javax/ws/rs/PUT.class
create mode 100644 com.sun.jersey/javax/ws/rs/Path.class
create mode 100644 com.sun.jersey/javax/ws/rs/PathParam.class
create mode 100644 com.sun.jersey/javax/ws/rs/Produces.class
create mode 100644 com.sun.jersey/javax/ws/rs/QueryParam.class
create mode 100644 com.sun.jersey/javax/ws/rs/WebApplicationException.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Application.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/CacheControl.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Context.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Cookie.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/EntityTag.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/GenericEntity.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/HttpHeaders.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/MediaType$1.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/MediaType.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/MultivaluedMap.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/NewCookie.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/PathSegment.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Request.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Response$ResponseBuilder.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Response$Status$Family.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Response$Status.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Response$StatusType.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Response.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/SecurityContext.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/StreamingOutput.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/UriBuilder.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/UriBuilderException.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/UriInfo.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Variant$VariantListBuilder.class
create mode 100644 com.sun.jersey/javax/ws/rs/core/Variant.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/ContextResolver.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/ExceptionMapper.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/FactoryFinder$1.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/FactoryFinder.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/MessageBodyReader.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/MessageBodyWriter.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/Provider.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/Providers.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate$HeaderDelegate.class
create mode 100644 com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate.class
diff --git a/com.gluster.storage.management.client/.classpath b/com.gluster.storage.management.client/.classpath
new file mode 100644
index 00000000..4422c8d9
--- /dev/null
+++ b/com.gluster.storage.management.client/.classpath
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.client/.project b/com.gluster.storage.management.client/.project
new file mode 100644
index 00000000..647c8a91
--- /dev/null
+++ b/com.gluster.storage.management.client/.project
@@ -0,0 +1,28 @@
+
+
+ com.gluster.storage.management.client
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.pde.ManifestBuilder
+
+
+
+
+ org.eclipse.pde.SchemaBuilder
+
+
+
+
+
+ org.eclipse.pde.PluginNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/com.gluster.storage.management.client/.settings/org.eclipse.jdt.core.prefs b/com.gluster.storage.management.client/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f8b5cc38
--- /dev/null
+++ b/com.gluster.storage.management.client/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Wed Dec 29 15:47:13 IST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/com.gluster.storage.management.client/META-INF/MANIFEST.MF b/com.gluster.storage.management.client/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..a5cc4530
--- /dev/null
+++ b/com.gluster.storage.management.client/META-INF/MANIFEST.MF
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Gluster Storage Platform Client
+Bundle-SymbolicName: com.gluster.storage.management.client
+Bundle-Version: 1.0.0
+Bundle-Vendor: GLUSTER
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: com.gluster.storage.management.core;bundle-version="1.0.0",
+ com.sun.jersey;bundle-version="1.4.0"
+Export-Package: com.gluster.storage.management.client
+Bundle-ClassPath: lib/jersey-client-1.4.jar,
+ lib/jersey-core-1.4.jar,
+ .
diff --git a/com.gluster.storage.management.client/build.properties b/com.gluster.storage.management.client/build.properties
new file mode 100644
index 00000000..d16687f5
--- /dev/null
+++ b/com.gluster.storage.management.client/build.properties
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = .,\
+ lib/jersey-client-1.4.jar,\
+ lib/jersey-core-1.4.jar,\
+ META-INF/
+src.includes = lib/jersey-client-1.4.jar,\
+ lib/jersey-core-1.4.jar
diff --git a/com.gluster.storage.management.client/lib/jersey-client-1.4.jar b/com.gluster.storage.management.client/lib/jersey-client-1.4.jar
new file mode 100644
index 00000000..e7debb0f
Binary files /dev/null and b/com.gluster.storage.management.client/lib/jersey-client-1.4.jar differ
diff --git a/com.gluster.storage.management.client/lib/jersey-core-1.4.jar b/com.gluster.storage.management.client/lib/jersey-core-1.4.jar
new file mode 100644
index 00000000..ae78fe33
Binary files /dev/null and b/com.gluster.storage.management.client/lib/jersey-core-1.4.jar differ
diff --git a/com.gluster.storage.management.client/src/com/gluster/storage/management/client/AuthManager.java b/com.gluster.storage.management.client/src/com/gluster/storage/management/client/AuthManager.java
new file mode 100644
index 00000000..3adae9d0
--- /dev/null
+++ b/com.gluster.storage.management.client/src/com/gluster/storage/management/client/AuthManager.java
@@ -0,0 +1,32 @@
+package com.gluster.storage.management.client;
+
+import java.net.URI;
+
+import javax.ws.rs.core.UriBuilder;
+
+import com.gluster.storage.management.core.model.ConnectionDetails;
+
+public class AuthManager {
+ public boolean authenticate(ConnectionDetails connectionDetails) {
+// WebResource service = Client.create(new DefaultClientConfig()).resource(getBaseURI());
+//
+// AuthStatus authStatus = service.path("services").path("login")
+// .queryParam("user", connectionDetails.getUserId())
+// .queryParam("password", connectionDetails.getPassword()).accept(MediaType.TEXT_XML)
+// .get(AuthStatus.class);
+//
+// return authStatus.getIsAuthenticated();
+
+ // Dummy authentication for demo application
+ return (connectionDetails.getPassword().equals("gluster") ? true : false);
+ }
+
+ public static void main(String[] args) {
+ AuthManager authManager = new AuthManager();
+ System.out.println(authManager.authenticate(new ConnectionDetails("", "gluster", "gluster")));
+ }
+
+ private static URI getBaseURI() {
+ return UriBuilder.fromUri("http://localhost:8080/glustersp").build();
+ }
+}
diff --git a/com.gluster.storage.management.client/src/com/gluster/storage/management/client/RESTClientTest.java b/com.gluster.storage.management.client/src/com/gluster/storage/management/client/RESTClientTest.java
new file mode 100644
index 00000000..0afb488f
--- /dev/null
+++ b/com.gluster.storage.management.client/src/com/gluster/storage/management/client/RESTClientTest.java
@@ -0,0 +1,24 @@
+package com.gluster.storage.management.client;
+
+import java.net.URI;
+
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.UriBuilder;
+
+import com.sun.jersey.api.client.Client;
+import com.sun.jersey.api.client.WebResource;
+import com.sun.jersey.api.client.config.DefaultClientConfig;
+
+public class RESTClientTest {
+ public static void main(String args[]) {
+ WebResource service = Client.create(new DefaultClientConfig()).resource(getBaseURI());
+ String name = service.path("services").path("name").accept(MediaType.TEXT_PLAIN).get(String.class);
+ System.out.println(name);
+ name = service.path("services").path("name/xml").accept(MediaType.TEXT_XML).get(String.class);
+ System.out.println(name);
+ }
+
+ private static URI getBaseURI() {
+ return UriBuilder.fromUri("http://localhost:8080/glustermc").build();
+ }
+}
diff --git a/com.gluster.storage.management.core/.classpath b/com.gluster.storage.management.core/.classpath
new file mode 100644
index 00000000..1bdfad39
--- /dev/null
+++ b/com.gluster.storage.management.core/.classpath
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.core/.project b/com.gluster.storage.management.core/.project
new file mode 100644
index 00000000..6c8fbb5c
--- /dev/null
+++ b/com.gluster.storage.management.core/.project
@@ -0,0 +1,28 @@
+
+
+ com.gluster.storage.management.core
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.pde.ManifestBuilder
+
+
+
+
+ org.eclipse.pde.SchemaBuilder
+
+
+
+
+
+ org.eclipse.pde.PluginNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/com.gluster.storage.management.core/.settings/org.eclipse.jdt.core.prefs b/com.gluster.storage.management.core/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f22cedf1
--- /dev/null
+++ b/com.gluster.storage.management.core/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Wed Dec 22 11:18:01 IST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/com.gluster.storage.management.core/META-INF/MANIFEST.MF b/com.gluster.storage.management.core/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..b5a2a830
--- /dev/null
+++ b/com.gluster.storage.management.core/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Gluster Storage Platform Core
+Bundle-SymbolicName: com.gluster.storage.management.core
+Bundle-Version: 1.0.0
+Bundle-Vendor: GLUSTER
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Export-Package: com.gluster.storage.management.core.constants,
+ com.gluster.storage.management.core.exceptions,
+ com.gluster.storage.management.core.model,
+ com.gluster.storage.management.core.utils
+Require-Bundle: org.eclipse.core.runtime;bundle-version="3.6.0"
diff --git a/com.gluster.storage.management.core/build.properties b/com.gluster.storage.management.core/build.properties
new file mode 100644
index 00000000..34d2e4d2
--- /dev/null
+++ b/com.gluster.storage.management.core/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/CoreConstants.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/CoreConstants.java
new file mode 100644
index 00000000..bb8f0b33
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/constants/CoreConstants.java
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) 2010 Gluster, Inc.
+ * This file is part of GlusterFS.
+ *
+ * Gluster Storage Platform is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published
+ * by the Free Software Foundation; either version 3 of the License,
+ * or (at your option) any later version.
+ *
+ * GlusterFS is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see
+ * .
+ */
+
+package com.gluster.storage.management.core.constants;
+
+/**
+ *
+ */
+public class CoreConstants {
+ public static final String NEWLINE = System.getProperty("line.separator");
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/exceptions/GlusterRuntimeException.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/exceptions/GlusterRuntimeException.java
new file mode 100644
index 00000000..cf815989
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/exceptions/GlusterRuntimeException.java
@@ -0,0 +1,12 @@
+package com.gluster.storage.management.core.exceptions;
+
+public class GlusterRuntimeException extends RuntimeException {
+
+ public GlusterRuntimeException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public GlusterRuntimeException(String message) {
+ super(message);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/AuthStatus.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/AuthStatus.java
new file mode 100644
index 00000000..b95fa804
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/AuthStatus.java
@@ -0,0 +1,17 @@
+package com.gluster.storage.management.core.model;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class AuthStatus {
+ private boolean isAuthenticated;
+
+ public boolean getIsAuthenticated() {
+ return isAuthenticated;
+ }
+
+ public void setIsAuthenticated(boolean authenticated) {
+ this.isAuthenticated = authenticated;
+ }
+
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Cluster.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Cluster.java
new file mode 100644
index 00000000..5ae07fd4
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Cluster.java
@@ -0,0 +1,52 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Cluster extends Entity {
+ private List listeners = new ArrayList();
+ List servers = new ArrayList();
+ List autoDiscoveredServers = new ArrayList();
+ List volumes = new ArrayList();
+
+ public List getServers() {
+ return servers;
+ }
+
+ public void setServers(List servers) {
+ this.servers = servers;
+ children.add(new EntityGroup("Servers", GlusterServer.class, this, servers));
+ }
+
+ public List getAutoDiscoveredServers() {
+ return autoDiscoveredServers;
+ }
+
+ public void setAutoDiscoveredServers(List autoDiscoveredServers) {
+ this.autoDiscoveredServers = autoDiscoveredServers;
+ children.add(new EntityGroup("Discovered Servers", Server.class, this, autoDiscoveredServers));
+ }
+
+ public List getVolumes() {
+ return volumes;
+ }
+
+ public void setVolumes(List volumes) {
+ this.volumes = volumes;
+ children.add(new EntityGroup("Volumes", Volume.class, this, volumes));
+ }
+
+ public Cluster(String name, Entity parent) {
+ super(name, parent);
+ }
+
+ public Cluster(String name, Entity parent, List servers, List volumes) {
+ super(name, parent);
+ setServers(servers);
+ setVolumes(volumes);
+ }
+
+ public void addClusterListener(IClusterListener listener) {
+ listeners.add(listener);
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/ConnectionDetails.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/ConnectionDetails.java
new file mode 100644
index 00000000..5d7e2d09
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/ConnectionDetails.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2005 Jean-Michel Lemieux, Jeff McAffer and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Hyperbola is an RCP application developed for the book
+ * Eclipse Rich Client Platform -
+ * Designing, Coding, and Packaging Java Applications
+ *
+ * Contributors:
+ * Jean-Michel Lemieux and Jeff McAffer - initial implementation
+ *******************************************************************************/
+package com.gluster.storage.management.core.model;
+
+public class ConnectionDetails {
+ private String userId, server, password;
+
+ public ConnectionDetails() {
+
+ }
+
+ public ConnectionDetails(String server, String userId, String password) {
+ this.userId = userId;
+ this.server = server;
+ this.password = password;
+ }
+
+ public String getUserId() {
+ return userId;
+ }
+
+ public String getServer() {
+ return server;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/DefaultClusterListener.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/DefaultClusterListener.java
new file mode 100644
index 00000000..66d4e891
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/DefaultClusterListener.java
@@ -0,0 +1,32 @@
+package com.gluster.storage.management.core.model;
+
+/**
+ * Default listener - doesn't do anything. Sub-class and override the method for
+ * the event you want to handle.
+ */
+public class DefaultClusterListener implements IClusterListener {
+
+ @Override
+ public void serverAdded(GlusterServer server) {
+ }
+
+ @Override
+ public void serverRemoved(GlusterServer server) {
+ }
+
+ @Override
+ public void serverChanged(GlusterServer server, Event event) {
+ }
+
+ @Override
+ public void volumeAdded(Volume volume) {
+ }
+
+ @Override
+ public void volumeRemoved(Volume volume) {
+ }
+
+ @Override
+ public void volumeChanged(Volume volume, Event event) {
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Disk.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Disk.java
new file mode 100644
index 00000000..b5093627
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Disk.java
@@ -0,0 +1,81 @@
+package com.gluster.storage.management.core.model;
+
+import com.gluster.storage.management.core.utils.StringUtils;
+
+public class Disk extends Entity {
+ public enum DISK_STATUS {
+ READY, UNINITIALIZED, INITIALIZING, OFFLINE
+ };
+
+ private String[] DISK_STATUS_STR = { "Ready", "Uninitialized", "Initializing", "Offline" };
+
+ private Server server;
+ private Double space;
+ private Double spaceInUse;
+ private DISK_STATUS status;
+
+ public Double getSpace() {
+ return space;
+ }
+
+ public void setSpace(Double space) {
+ this.space = space;
+ }
+
+ public boolean isUninitialized() {
+ return getStatus() == DISK_STATUS.UNINITIALIZED;
+ }
+
+ public boolean isOffline() {
+ return getStatus() == DISK_STATUS.OFFLINE;
+ }
+
+ public boolean isReady() {
+ return getStatus() == DISK_STATUS.READY;
+ }
+
+ public DISK_STATUS getStatus() {
+ return status;
+ }
+
+ public String getStatusStr() {
+ return DISK_STATUS_STR[getStatus().ordinal()];
+ }
+
+ public void setStatus(DISK_STATUS status) {
+ this.status = status;
+ }
+
+ public Double getSpaceInUse() {
+ return spaceInUse;
+ }
+
+ public void setSpaceInUse(Double spaceInUse) {
+ this.spaceInUse = spaceInUse;
+ }
+
+ public Server getServer() {
+ return server;
+ }
+
+ public void setServer(Server server) {
+ this.server = server;
+ }
+
+ public Disk(Server server, String name, Double space, Double spaceInUse, DISK_STATUS status) {
+ super(name, server);
+ setServer(server);
+ setSpace(space);
+ setSpaceInUse(spaceInUse);
+ setStatus(status);
+ }
+
+ @Override
+ public boolean filter(String filterString, boolean caseSensitive) {
+ return StringUtils.filterString(getServer().getName() + getName() + getStatusStr(), filterString, caseSensitive);
+ }
+
+ public String getQualifiedName() {
+ return getServer().getName() + ":" + getName();
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Entity.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Entity.java
new file mode 100644
index 00000000..8c56a035
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Entity.java
@@ -0,0 +1,56 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.runtime.PlatformObject;
+
+import com.gluster.storage.management.core.utils.StringUtils;
+
+public class Entity extends PlatformObject implements Filterable {
+ private static final long serialVersionUID = 1L;
+
+ protected String name;
+ protected List children = new ArrayList();
+ private Entity parent;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Entity getParent() {
+ return parent;
+ }
+
+ public void setParent(Entity parent) {
+ this.parent = parent;
+ }
+
+ public List extends Entity> getChildren() {
+ return children;
+ }
+
+ public void setChildren(List children) {
+ this.children = children;
+ }
+
+ public Entity(String name, Entity parent) {
+ this.name = name;
+ this.parent = parent;
+ }
+
+ public Entity(String name, Entity parent, List children) {
+ this.name = name;
+ this.parent = parent;
+ this.children = children;
+ }
+
+ @Override
+ public boolean filter(String filterString, boolean caseSensitive) {
+ return StringUtils.filterString(getName(), filterString, caseSensitive);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/EntityGroup.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/EntityGroup.java
new file mode 100644
index 00000000..18b72488
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/EntityGroup.java
@@ -0,0 +1,28 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.List;
+
+public class EntityGroup extends Entity {
+ private Class extends Entity> type;
+
+ public EntityGroup(String name, Class extends Entity> type, Cluster cluster) {
+ this(name, type, cluster, null);
+ }
+
+ public EntityGroup(String name, Class extends Entity> type, Cluster cluster, List entities) {
+ super(name, cluster, (List)entities);
+ this.type = type;
+ }
+
+ public List extends Entity> getEntities() {
+ return children;
+ }
+
+ public void setEntities(List entities) {
+ children = (List)entities;
+ }
+
+ public Class extends Entity> getEntityType() {
+ return type;
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Event.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Event.java
new file mode 100644
index 00000000..5b0a0019
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Event.java
@@ -0,0 +1,18 @@
+package com.gluster.storage.management.core.model;
+
+public class Event {
+ public enum EVENT_TYPE {
+ DISK_ADDED,
+ DISK_REMOVED,
+ NETWORK_INTERFACE_ADDED,
+ NETWORK_INTERFACE_REMOVED
+ }
+
+ private EVENT_TYPE eventType;
+ private Object eventData;
+
+ public Event(EVENT_TYPE eventType, Object eventData) {
+ this.eventType = eventType;
+ this.eventData = eventData;
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Filterable.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Filterable.java
new file mode 100644
index 00000000..52b61b6b
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Filterable.java
@@ -0,0 +1,19 @@
+package com.gluster.storage.management.core.model;
+
+/**
+ * By default, the {@link EntityViewerFilter} filters the objects by parsing the
+ * output of {@link Object#toString()} with the filter string. Classes that need
+ * specific filtering logic can implement this interface. The default logic will
+ * then be overridden by the method {@link Filterable#filter(String)}.
+ */
+public interface Filterable {
+ /**
+ * @param filterString
+ * String to be used for filtering
+ * @param caseSensitive
+ * Flag indicating whether the filtering should be case sensitive
+ * @return true if the object can be selected using the filter string, else
+ * false
+ */
+ public boolean filter(String filterString, boolean caseSensitive);
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDataModel.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDataModel.java
new file mode 100644
index 00000000..4256bd9c
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDataModel.java
@@ -0,0 +1,24 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class GlusterDataModel extends Entity {
+ public GlusterDataModel(String name, List clusters) {
+ super(name, null);
+ children.addAll(clusters);
+ }
+
+ public GlusterDataModel(String name) {
+ this(name, new ArrayList());
+ }
+
+ public void setClusters(List clusters) {
+ children.clear();
+ children.addAll(clusters);
+ }
+
+ public void addCluster(Cluster cluster) {
+ children.add(cluster);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDummyModel.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDummyModel.java
new file mode 100644
index 00000000..23b25ee5
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterDummyModel.java
@@ -0,0 +1,264 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Date;
+import java.util.List;
+
+import com.gluster.storage.management.core.model.Disk.DISK_STATUS;
+import com.gluster.storage.management.core.model.GlusterServer.SERVER_STATUS;
+import com.gluster.storage.management.core.model.Volume.TRANSPORT_TYPE;
+import com.gluster.storage.management.core.model.Volume.VOLUME_STATUS;
+import com.gluster.storage.management.core.model.Volume.VOLUME_TYPE;
+
+public class GlusterDummyModel {
+ // private Server discoveredServer1, discoveredServer2, discoveredServer3, discoveredServer4, discoveredServer5;
+ private GlusterServer server1, server2, server3, server4, server5;
+ private Volume volume1, volume2, volume3, volume4, volume5;
+ private Disk s1da, s1db, s2da, s2db, s2dc, s2dd, s3da, s4da, s5da, s5db;
+ private static List logMessages = new ArrayList();
+ private static GlusterDummyModel instance = new GlusterDummyModel();
+ private GlusterDataModel model;
+
+ private GlusterDummyModel() {
+ model = initializeModel();
+ }
+
+ public GlusterDataModel getModel() {
+ return model;
+ }
+
+ public static GlusterDummyModel getInstance() {
+ return instance;
+ }
+
+ private GlusterServer addGlusterServer(List servers, Entity parent, String name,
+ SERVER_STATUS status, String preferredInterfaceName, int numOfCPUs, double cpuUsage, double totalMemory,
+ double memoryInUse) {
+ GlusterServer glusterServer = new GlusterServer(name, parent, status, numOfCPUs, cpuUsage, totalMemory,
+ memoryInUse);
+ NetworkInterface networkInterface = addNetworkInterface(glusterServer, preferredInterfaceName);
+ glusterServer.setPreferredNetworkInterface(networkInterface);
+
+ servers.add(glusterServer);
+ return glusterServer;
+ }
+
+ private NetworkInterface addNetworkInterface(Server server, String interfaceName) {
+ NetworkInterface networkInterface = new NetworkInterface(interfaceName, server, "192.168.1."
+ + Math.round(Math.random() * 255), "255.255.255.0", "192.168.1.1");
+ server.setNetworkInterfaces(Arrays.asList(new NetworkInterface[] { networkInterface }));
+ return networkInterface;
+ }
+
+ private void addDiscoveredServer(List servers, Entity parent, String name, int numOfCPUs, double cpuUsage,
+ double totalMemory, double memoryInUse, double totalDiskSpace, double diskSpaceInUse) {
+ Server server = new Server(name, parent, numOfCPUs, cpuUsage, totalMemory, memoryInUse);
+ server.addDisk(new Disk(server, "sda", totalDiskSpace, diskSpaceInUse, DISK_STATUS.READY));
+ addNetworkInterface(server, "eth0");
+
+ servers.add(server);
+ }
+
+ private GlusterDataModel initializeModel() {
+ // Create the dummy data model for demo
+ GlusterDataModel model = new GlusterDataModel("Clusters");
+ Cluster cluster = new Cluster("Home", model);
+
+ initializeGlusterServers(cluster);
+ initializeVolumes(cluster);
+ initializeAutoDiscoveredServers(cluster);
+ initializeDisks();
+ addDisksToServers();
+ addDisksToVolumes();
+ addVolumeOptions();
+
+ createDummyLogMessages();
+
+ model.addCluster(cluster);
+ return model;
+ }
+
+ private void addVolumeOptions() {
+ for (Volume vol : new Volume[] { volume1, volume2, volume3, volume4, volume5 }) {
+ for (int i = 1; i <= 5; i++) {
+ String key = vol.getName() + "key" + i;
+ String value = vol.getName() + "value" + i;
+ vol.setOption(key, value);
+ }
+ }
+ }
+
+ private Volume addVolume(List volumes, String name, Cluster cluster, VOLUME_TYPE volumeType,
+ TRANSPORT_TYPE transportType, VOLUME_STATUS status) {
+ Volume volume = new Volume(name, cluster, volumeType, transportType, status);
+ volumes.add(volume);
+
+ return volume;
+ }
+
+ private void initializeVolumes(Cluster cluster) {
+ List volumes = new ArrayList();
+
+ volume1 = addVolume(volumes, "Volume1", cluster, VOLUME_TYPE.PLAIN_DISTRIBUTE, TRANSPORT_TYPE.ETHERNET,
+ VOLUME_STATUS.ONLINE);
+
+ volume2 = addVolume(volumes, "Volume2", cluster, VOLUME_TYPE.PLAIN_DISTRIBUTE, TRANSPORT_TYPE.ETHERNET,
+ VOLUME_STATUS.ONLINE);
+
+ volume3 = addVolume(volumes, "Volume3", cluster, VOLUME_TYPE.DISTRIBUTED_MIRROR, TRANSPORT_TYPE.ETHERNET,
+ VOLUME_STATUS.OFFLINE);
+ volume3.setReplicaCount(2);
+
+ volume4 = addVolume(volumes, "Volume4", cluster, VOLUME_TYPE.PLAIN_DISTRIBUTE, TRANSPORT_TYPE.ETHERNET,
+ VOLUME_STATUS.ONLINE);
+
+ volume5 = addVolume(volumes, "Volume5", cluster, VOLUME_TYPE.DISTRIBUTED_STRIPE, TRANSPORT_TYPE.INFINIBAND,
+ VOLUME_STATUS.OFFLINE);
+ volume5.setStripeCount(3);
+
+ cluster.setVolumes(volumes);
+ }
+
+ private void initializeDisks() {
+ s1da = new Disk(server1, "sda", 100d, 80d, DISK_STATUS.READY);
+ s1db = new Disk(server1, "sdb", 100d, 67.83, DISK_STATUS.READY);
+
+ s2da = new Disk(server2, "sda", 200d, 157.12, DISK_STATUS.READY);
+ s2db = new Disk(server2, "sdb", 200d, 182.27, DISK_STATUS.READY);
+ s2dc = new Disk(server2, "sdc", 200d, -1d, DISK_STATUS.UNINITIALIZED);
+ s2dd = new Disk(server2, "sdd", 200d, 124.89, DISK_STATUS.READY);
+
+ s3da = new Disk(server3, "NA", -1d, -1d, DISK_STATUS.OFFLINE); // disk name unavailable since server is offline
+
+ s4da = new Disk(server4, "sda", 100d, 85.39, DISK_STATUS.READY);
+
+ s5da = new Disk(server5, "sda", 100d, 92.83, DISK_STATUS.READY);
+ s5db = new Disk(server5, "sdb", 200d, 185.69, DISK_STATUS.READY);
+ }
+
+ private void addDisksToServers() {
+ server1.addDisk(s1da);
+ server1.addDisk(s1db);
+
+ server2.addDisk(s2da);
+ server2.addDisk(s2db);
+ server2.addDisk(s2dc);
+ server2.addDisk(s2dd);
+
+ // server3.addDisk(s3da);
+
+ server4.addDisk(s4da);
+
+ server5.addDisk(s5da);
+ server5.addDisk(s5db);
+ }
+
+ private void addDisksToVolumes() {
+ volume1.addDisk(s1da);
+
+ volume2.addDisk(s2da);
+ volume2.addDisk(s1db);
+ volume2.addDisk(s3da);
+ volume2.addDisk(s4da);
+
+ volume3.addDisk(s2db);
+ volume3.addDisk(s4da);
+ volume3.addDisk(s5da);
+
+ volume4.addDisk(s1da);
+ volume4.addDisk(s3da);
+ volume4.addDisk(s4da);
+ volume4.addDisk(s5db);
+
+ volume5.addDisk(s2da);
+ volume5.addDisk(s5db);
+ }
+
+ private void initializeGlusterServers(Cluster cluster) {
+ List servers = new ArrayList();
+ server1 = addGlusterServer(servers, cluster, "Server1", SERVER_STATUS.ONLINE, "eth0", 4, 56.3, 16, 8.4);
+ server2 = addGlusterServer(servers, cluster, "Server2", SERVER_STATUS.ONLINE, "eth1", 8, 41.92, 32, 18.76);
+ server3 = addGlusterServer(servers, cluster, "Server3", SERVER_STATUS.OFFLINE, "eth0", -1, -1, -1, -1);
+ server4 = addGlusterServer(servers, cluster, "Server4", SERVER_STATUS.ONLINE, "eth0", 1, 92.83, 4, 3.18);
+ server5 = addGlusterServer(servers, cluster, "Server5", SERVER_STATUS.ONLINE, "inf0", 2, 87.24, 8, 7.23);
+
+ cluster.setServers(servers);
+ }
+
+ private void initializeAutoDiscoveredServers(Cluster cluster) {
+ List servers = new ArrayList();
+ addDiscoveredServer(servers, cluster, "ADServer1", 4, 56.3, 16, 8.4, 200, 147.83);
+ addDiscoveredServer(servers, cluster, "ADServer2", 8, 41.92, 32, 18.76, 800, 464.28);
+ addDiscoveredServer(servers, cluster, "ADServer3", 2, 84.28, 2, 1.41, 120, 69.93);
+ addDiscoveredServer(servers, cluster, "ADServer4", 1, 92.83, 4, 3.18, 100, 85.39);
+ addDiscoveredServer(servers, cluster, "ADServer5", 2, 87.24, 8, 7.23, 250, 238.52);
+ cluster.setAutoDiscoveredServers(servers);
+ }
+
+ private void addMessages(List messages, Disk disk, String severity, int count) {
+ for (int i = 1; i <= count; i++) {
+ String message = severity + "message" + i;
+ messages.add(new LogMessage(new Date(), disk, severity, message));
+ }
+ }
+
+ private void addMessagesForDisk(List logMessages, Disk disk) {
+ addMessages(logMessages, disk, "SEVERE", 5);
+ addMessages(logMessages, disk, "WARNING", 5);
+ addMessages(logMessages, disk, "DEBUG", 5);
+ addMessages(logMessages, disk, "INFO", 5);
+ }
+
+ public List createDummyLogMessages() {
+ addMessagesForDisk(logMessages, s1da);
+ addMessagesForDisk(logMessages, s1db);
+ addMessagesForDisk(logMessages, s2da);
+ addMessagesForDisk(logMessages, s2db);
+ addMessagesForDisk(logMessages, s2dc);
+ addMessagesForDisk(logMessages, s2dd);
+ addMessagesForDisk(logMessages, s4da);
+ addMessagesForDisk(logMessages, s5da);
+ addMessagesForDisk(logMessages, s5db);
+ return logMessages;
+ }
+
+ public static List getDummyLogMessages() {
+ return logMessages;
+ }
+
+ public List getReadyDisksOfVolume(Volume volume) {
+ List disks = new ArrayList();
+ for (Disk disk : volume.getDisks()) {
+ if (disk.isReady()) {
+ disks.add(disk);
+ }
+ }
+ return disks;
+ }
+
+ public List getReadyDisksOfAllVolumes() {
+ List disks = new ArrayList();
+ for (Volume volume : ((Cluster) model.getChildren().get(0)).getVolumes()) {
+ disks.addAll(getReadyDisksOfVolume(volume));
+ }
+ return disks;
+ }
+
+ public List getReadyDisksOfAllServers() {
+ return getReadyDisksOfAllServersExcluding(new ArrayList());
+ }
+
+ public List getReadyDisksOfAllServersExcluding(List excludeDisks) {
+ List disks = new ArrayList();
+
+ for (Server server : ((Cluster) model.getChildren().get(0)).getServers()) {
+ for (Disk disk : server.getDisks()) {
+ if (disk.isReady() && !excludeDisks.contains(disk)) {
+ disks.add(disk);
+ }
+ }
+ }
+ return disks;
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterServer.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterServer.java
new file mode 100644
index 00000000..ee065032
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/GlusterServer.java
@@ -0,0 +1,65 @@
+package com.gluster.storage.management.core.model;
+
+import com.gluster.storage.management.core.utils.StringUtils;
+
+public class GlusterServer extends Server {
+ public enum SERVER_STATUS {
+ ONLINE, OFFLINE
+ };
+ private static final String[] STATUS_STR = new String[] { "Online", "Offline" };
+
+ private SERVER_STATUS status;
+ private NetworkInterface preferredNetworkInterface;
+ private Cluster cluster;
+
+ public GlusterServer(String name, Entity parent, SERVER_STATUS status, int numOfCPUs, double cpuUsage, double totalMemory,
+ double memoryInUse) {
+ super(name, parent, numOfCPUs, cpuUsage, totalMemory, memoryInUse);
+ setStatus(status);
+ }
+
+ public GlusterServer(String name, Entity parent, SERVER_STATUS status, int numOfCPUs, double cpuUsage, double totalMemory,
+ double memoryInUse, Cluster cluster) {
+ this(name, parent, status, numOfCPUs, cpuUsage, totalMemory, memoryInUse);
+ setCluster(cluster);
+ }
+
+ public String getStatusStr() {
+ return STATUS_STR[getStatus().ordinal()];
+ }
+
+ public SERVER_STATUS getStatus() {
+ return status;
+ }
+
+ public void setStatus(SERVER_STATUS status) {
+ this.status = status;
+ }
+
+ public NetworkInterface getPreferredNetworkInterface() {
+ return preferredNetworkInterface;
+ }
+
+ public void setPreferredNetworkInterface(NetworkInterface preferredNetworkInterface) {
+ this.preferredNetworkInterface = preferredNetworkInterface;
+ preferredNetworkInterface.setPreferred(true);
+ }
+
+ public Cluster getCluster() {
+ return cluster;
+ }
+
+ public void setCluster(Cluster cluster) {
+ this.cluster = cluster;
+ }
+
+ /**
+ * Filter matches if any of the properties name, status, preferred network interface, and primary/secondary/third
+ * DNS contains the filter string
+ */
+ @Override
+ public boolean filter(String filterString, boolean caseSensitive) {
+ return StringUtils.filterString(getName() + getStatusStr() + getPreferredNetworkInterface().getName(),
+ filterString, caseSensitive);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/IClusterListener.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/IClusterListener.java
new file mode 100644
index 00000000..32454b59
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/IClusterListener.java
@@ -0,0 +1,19 @@
+package com.gluster.storage.management.core.model;
+
+/**
+ * Interface for a cluster listener. Every registered listener will be notified
+ * on various events happening on the cluster.
+ */
+public interface IClusterListener {
+ public void serverAdded(GlusterServer server);
+
+ public void serverRemoved(GlusterServer server);
+
+ public void serverChanged(GlusterServer server, Event event);
+
+ public void volumeAdded(Volume volume);
+
+ public void volumeRemoved(Volume volume);
+
+ public void volumeChanged(Volume volume, Event event);
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/LogMessage.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/LogMessage.java
new file mode 100644
index 00000000..fc324b03
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/LogMessage.java
@@ -0,0 +1,57 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.Date;
+
+import com.gluster.storage.management.core.utils.StringUtils;
+
+public class LogMessage implements Filterable {
+ private Date timestamp;
+ private Disk disk;
+ private String severity;
+ private String message;
+
+ public Date getTimestamp() {
+ return timestamp;
+ }
+
+ public void setTimestamp(Date timestamp) {
+ this.timestamp = timestamp;
+ }
+
+ public Disk getDisk() {
+ return disk;
+ }
+
+ public void setDisk(Disk disk) {
+ this.disk = disk;
+ }
+
+ public String getSeverity() {
+ return severity;
+ }
+
+ public void setSeverity(String severity) {
+ this.severity = severity;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public LogMessage(Date timestamp, Disk disk, String severity, String message) {
+ setTimestamp(timestamp);
+ setDisk(disk);
+ setSeverity(severity);
+ setMessage(message);
+ }
+
+ @Override
+ public boolean filter(String filterString, boolean caseSensitive) {
+ return StringUtils.filterString(getSeverity() + getTimestamp() + getDisk().getServer().getName()
+ + getDisk().getQualifiedName() + getMessage(), filterString, caseSensitive);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/NetworkInterface.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/NetworkInterface.java
new file mode 100644
index 00000000..375b1971
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/NetworkInterface.java
@@ -0,0 +1,48 @@
+package com.gluster.storage.management.core.model;
+
+public class NetworkInterface extends Entity {
+ private String ipAddress;
+ private String netMask;
+ private String defaultGateway;
+ private boolean isPreferred;
+
+ public boolean isPreferred() {
+ return isPreferred;
+ }
+
+ public void setPreferred(boolean isPreferred) {
+ this.isPreferred = isPreferred;
+ }
+
+ public String getIpAddress() {
+ return ipAddress;
+ }
+
+ public void setIpAddress(String ipAddress) {
+ this.ipAddress = ipAddress;
+ }
+
+ public String getNetMask() {
+ return netMask;
+ }
+
+ public void setNetMask(String netMask) {
+ this.netMask = netMask;
+ }
+
+ public String getDefaultGateway() {
+ return defaultGateway;
+ }
+
+ public void setDefaultGateway(String defaultGateway) {
+ this.defaultGateway = defaultGateway;
+ }
+
+ public NetworkInterface(String name, Entity parent, String ipAddress, String netMask, String defaultGateway) {
+ super(name, parent);
+ setIpAddress(ipAddress);
+ setNetMask(netMask);
+ setDefaultGateway(defaultGateway);
+ }
+
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Server.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Server.java
new file mode 100644
index 00000000..b7e56ba4
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Server.java
@@ -0,0 +1,126 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import com.gluster.storage.management.core.utils.StringUtils;
+
+public class Server extends Entity {
+ private List networkInterfaces = new ArrayList();
+ private int numOfCPUs;
+ private double cpuUsage;
+ private double totalMemory;
+ private double memoryInUse;
+ private double totalDiskSpace = 0;
+ private double diskSpaceInUse = 0;
+ private List disks = new ArrayList();
+
+ public Server(String name, Entity parent, int numOfCPUs, double cpuUsage, double totalMemory, double memoryInUse) {
+ super(name, parent);
+ setNumOfCPUs(numOfCPUs);
+ setCpuUsage(cpuUsage);
+ setTotalMemory(totalMemory);
+ setMemoryInUse(memoryInUse);
+ }
+
+ public int getNumOfCPUs() {
+ return numOfCPUs;
+ }
+
+ public void setNumOfCPUs(int numOfCPUs) {
+ this.numOfCPUs = numOfCPUs;
+ }
+
+ public double getCpuUsage() {
+ return cpuUsage;
+ }
+
+ public void setCpuUsage(double cpuUsage) {
+ this.cpuUsage = cpuUsage;
+ }
+
+ public double getTotalMemory() {
+ return totalMemory;
+ }
+
+ public void setTotalMemory(double totalMemory) {
+ this.totalMemory = totalMemory;
+ }
+
+ public double getMemoryInUse() {
+ return memoryInUse;
+ }
+
+ public void setMemoryInUse(double memoryInUse) {
+ this.memoryInUse = memoryInUse;
+ }
+
+ public double getTotalDiskSpace() {
+ return totalDiskSpace;
+ }
+
+ public double getDiskSpaceInUse() {
+ return diskSpaceInUse;
+ }
+
+ public List getNetworkInterfaces() {
+ return networkInterfaces;
+ }
+
+ public void setNetworkInterfaces(List networkInterfaces) {
+ this.networkInterfaces = networkInterfaces;
+ }
+
+ public List getDisks() {
+ return disks;
+ }
+
+ public void addDisk(Disk disk) {
+ if (disks.add(disk)) {
+ totalDiskSpace += disk.getSpace();
+ diskSpaceInUse += disk.getSpaceInUse();
+ }
+ }
+
+ public void addDisks(List disks) {
+ for(Disk disk : disks) {
+ addDisk(disk);
+ }
+ }
+
+ public void removeDisk(Disk disk) {
+ if (disks.remove(disk)) {
+ totalDiskSpace -= disk.getSpace();
+ diskSpaceInUse -= disk.getSpaceInUse();
+ }
+ }
+
+ public void removeAllDisks() {
+ disks.clear();
+ totalDiskSpace = 0;
+ diskSpaceInUse = 0;
+ }
+
+ public void setDisks(List disks) {
+ removeAllDisks();
+ addDisks(disks);
+ }
+
+ public int getNumOfDisks() {
+ return disks.size();
+ }
+
+ public String getIpAddressesAsString() {
+ String ipAddresses = "";
+ for (NetworkInterface networkInterface : getNetworkInterfaces()) {
+ String ipAddr = networkInterface.getIpAddress();
+ ipAddresses += (ipAddresses.isEmpty() ? ipAddr : ", " + ipAddr);
+ }
+ return ipAddresses;
+ }
+
+ @Override
+ public boolean filter(String filterString, boolean caseSensitive) {
+ return StringUtils.filterString(getName() + getIpAddressesAsString(), filterString, caseSensitive);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/User.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/User.java
new file mode 100644
index 00000000..3043126d
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/User.java
@@ -0,0 +1,22 @@
+package com.gluster.storage.management.core.model;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class User {
+ private String userId;
+ private String password;
+
+ public String getUserId() {
+ return userId;
+ }
+ public void setUserId(String userId) {
+ this.userId = userId;
+ }
+ public String getPassword() {
+ return password;
+ }
+ public void setPassword(String password) {
+ this.password = password;
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Volume.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Volume.java
new file mode 100644
index 00000000..2dd7bc3d
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/model/Volume.java
@@ -0,0 +1,228 @@
+package com.gluster.storage.management.core.model;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.LinkedHashMap;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+import com.gluster.storage.management.core.model.Disk.DISK_STATUS;
+import com.gluster.storage.management.core.utils.StringUtils;
+
+public class Volume extends Entity {
+ public enum VOLUME_STATUS {
+ ONLINE, OFFLINE
+ };
+
+ public enum VOLUME_TYPE {
+ PLAIN_DISTRIBUTE, DISTRIBUTED_MIRROR, DISTRIBUTED_STRIPE
+ };
+
+ public enum TRANSPORT_TYPE {
+ ETHERNET, INFINIBAND
+ };
+
+ public enum NAS_PROTOCOL {
+ GLUSTERFS, NFS
+ };
+
+ private static final String[] VOLUME_TYPE_STR = new String[] { "Plain Distribute", "Distributed Mirror",
+ "Distributed Stripe" };
+ private static final String[] TRANSPORT_TYPE_STR = new String[] { "Ethernet", "Infiniband" };
+ private static final String[] STATUS_STR = new String[] { "Online", "Offline" };
+ private static final String[] NAS_PROTOCOL_STR = new String[] { "Gluster", "NFS" };
+
+ private Cluster cluster;
+ private VOLUME_TYPE volumeType;
+ private TRANSPORT_TYPE transportType;
+ private VOLUME_STATUS status;
+ private int replicaCount;
+ private int stripeCount;
+ private Map options = new LinkedHashMap();
+
+ private double totalDiskSpace = 0;
+ private List disks = new ArrayList();
+
+ // GlusterFS export is always enabled
+ private Set nasProtocols = new LinkedHashSet(
+ Arrays.asList(new NAS_PROTOCOL[] { NAS_PROTOCOL.GLUSTERFS }));
+
+ private String accessControlList = "*";
+
+ public String getVolumeTypeStr() {
+ return getVolumeTypeStr(getVolumeType());
+ }
+
+ public static String getVolumeTypeStr(VOLUME_TYPE volumeType) {
+ return VOLUME_TYPE_STR[volumeType.ordinal()];
+ }
+
+ public String getTransportTypeStr() {
+ return TRANSPORT_TYPE_STR[getTransportType().ordinal()];
+ }
+
+ public String getStatusStr() {
+ return STATUS_STR[getStatus().ordinal()];
+ }
+
+ public int getNumOfDisks() {
+ return disks.size();
+ }
+
+ public VOLUME_TYPE getVolumeType() {
+ return volumeType;
+ }
+
+ public void setVolumeType(VOLUME_TYPE volumeType) {
+ this.volumeType = volumeType;
+ }
+
+ public TRANSPORT_TYPE getTransportType() {
+ return transportType;
+ }
+
+ public void setTransportType(TRANSPORT_TYPE transportType) {
+ this.transportType = transportType;
+ }
+
+ public VOLUME_STATUS getStatus() {
+ return status;
+ }
+
+ public int getReplicaCount() {
+ return replicaCount;
+ }
+
+ public void setReplicaCount(int replicaCount) {
+ this.replicaCount = replicaCount;
+ }
+
+ public int getStripeCount() {
+ return stripeCount;
+ }
+
+ public void setStripeCount(int stripeCount) {
+ this.stripeCount = stripeCount;
+ }
+
+ public void setStatus(VOLUME_STATUS status) {
+ this.status = status;
+ }
+
+ public Cluster getCluster() {
+ return cluster;
+ }
+
+ public void setCluster(Cluster cluster) {
+ this.cluster = cluster;
+ }
+
+ public Set getNASProtocols() {
+ return nasProtocols;
+ }
+
+ public void setNASProtocols(Set nasProtocols) {
+ this.nasProtocols = nasProtocols;
+ }
+
+ public String getNASProtocolsStr() {
+ String protocolsStr = "";
+ for (NAS_PROTOCOL protocol : nasProtocols) {
+ String protocolStr = NAS_PROTOCOL_STR[protocol.ordinal()];
+ protocolsStr += (protocolsStr.isEmpty() ? protocolStr : ", " + protocolStr);
+ }
+ return protocolsStr;
+ }
+
+ public String getAccessControlList() {
+ return accessControlList;
+ }
+
+ public void setAccessControlList(String accessControlList) {
+ this.accessControlList = accessControlList;
+ }
+
+ public Map getOptions() {
+ return options;
+ }
+
+ public void setOption(String key, String value) {
+ options.put(key, value);
+ }
+
+ public void setOptions(Map options) {
+ this.options = options;
+ }
+
+ public double getTotalDiskSpace() {
+ return totalDiskSpace;
+ }
+
+ public List getDisks() {
+ return disks;
+ }
+
+ public void addDisk(Disk disk) {
+ if (disks.add(disk) && disk.getStatus() != DISK_STATUS.OFFLINE) {
+ totalDiskSpace += disk.getSpace();
+ }
+ }
+
+ public void addDisks(List disks) {
+ for (Disk disk : disks) {
+ addDisk(disk);
+ }
+ }
+
+ public void removeDisk(Disk disk) {
+ if (disks.remove(disk)) {
+ totalDiskSpace -= disk.getSpace();
+ }
+ }
+
+ public void removeAllDisks() {
+ disks.clear();
+ totalDiskSpace = 0;
+ }
+
+ public void setDisks(List disks) {
+ removeAllDisks();
+ addDisks(disks);
+ }
+
+ public void enableNFS() {
+ nasProtocols.add(NAS_PROTOCOL.NFS);
+ }
+
+ public void disableNFS() {
+ nasProtocols.remove(NAS_PROTOCOL.NFS);
+ }
+
+ public Volume(String name, Entity parent, VOLUME_TYPE volumeType, TRANSPORT_TYPE transportType, VOLUME_STATUS status) {
+ super(name, parent);
+ setVolumeType(volumeType);
+ setTransportType(transportType);
+ setStatus(status);
+ }
+
+ public Volume(String name, Entity parent, Cluster cluster, VOLUME_TYPE volumeType, TRANSPORT_TYPE transportType,
+ VOLUME_STATUS status) {
+ this(name, parent, volumeType, transportType, status);
+
+ setCluster(cluster);
+ }
+
+ /**
+ * Filter matches if any of the properties name, volume type, transport type, status and number of disks contains
+ * the filter string
+ */
+ @Override
+ public boolean filter(String filterString, boolean caseSensitive) {
+ return StringUtils.filterString(getName() + getVolumeTypeStr() + getTransportTypeStr() + getStatusStr()
+ + getNumOfDisks(), filterString, caseSensitive);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/Crypt.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/Crypt.java
new file mode 100644
index 00000000..adafd477
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/Crypt.java
@@ -0,0 +1,560 @@
+/****************************************************************************
+ * Java-based implementation of the unix crypt(3) command
+ *
+ * Based upon C source code written by Eric Young, eay@psych.uq.oz.au
+ * Java conversion by John F. Dumas, jdumas@zgs.com
+ *
+ * Found at http://locutus.kingwoodcable.com/jfd/crypt.html
+ * Minor optimizations by Wes Biggs, wes@cacas.org
+ *
+ * Eric's original code is licensed under the BSD license. As this is
+ * derivative, the same license applies.
+ *
+ * Note: Crypt.class is much smaller when compiled with javac -O
+ ****************************************************************************/
+package com.gluster.storage.management.core.utils;
+
+public class Crypt {
+ private Crypt() {} // defined so class can't be instantiated.
+
+ private static final int ITERATIONS = 16;
+
+ private static final boolean shifts2[] = {
+ false, false, true, true, true, true, true, true,
+ false, true, true, true, true, true, true, false
+ };
+
+ private static final int skb[][] = {
+ {
+ /* for C bits (numbered as per FIPS 46) 1 2 3 4 5 6 */
+ 0x00000000, 0x00000010, 0x20000000, 0x20000010,
+ 0x00010000, 0x00010010, 0x20010000, 0x20010010,
+ 0x00000800, 0x00000810, 0x20000800, 0x20000810,
+ 0x00010800, 0x00010810, 0x20010800, 0x20010810,
+ 0x00000020, 0x00000030, 0x20000020, 0x20000030,
+ 0x00010020, 0x00010030, 0x20010020, 0x20010030,
+ 0x00000820, 0x00000830, 0x20000820, 0x20000830,
+ 0x00010820, 0x00010830, 0x20010820, 0x20010830,
+ 0x00080000, 0x00080010, 0x20080000, 0x20080010,
+ 0x00090000, 0x00090010, 0x20090000, 0x20090010,
+ 0x00080800, 0x00080810, 0x20080800, 0x20080810,
+ 0x00090800, 0x00090810, 0x20090800, 0x20090810,
+ 0x00080020, 0x00080030, 0x20080020, 0x20080030,
+ 0x00090020, 0x00090030, 0x20090020, 0x20090030,
+ 0x00080820, 0x00080830, 0x20080820, 0x20080830,
+ 0x00090820, 0x00090830, 0x20090820, 0x20090830,
+ },
+ {
+ /* for C bits (numbered as per FIPS 46) 7 8 10 11 12 13 */
+ 0x00000000, 0x02000000, 0x00002000, 0x02002000,
+ 0x00200000, 0x02200000, 0x00202000, 0x02202000,
+ 0x00000004, 0x02000004, 0x00002004, 0x02002004,
+ 0x00200004, 0x02200004, 0x00202004, 0x02202004,
+ 0x00000400, 0x02000400, 0x00002400, 0x02002400,
+ 0x00200400, 0x02200400, 0x00202400, 0x02202400,
+ 0x00000404, 0x02000404, 0x00002404, 0x02002404,
+ 0x00200404, 0x02200404, 0x00202404, 0x02202404,
+ 0x10000000, 0x12000000, 0x10002000, 0x12002000,
+ 0x10200000, 0x12200000, 0x10202000, 0x12202000,
+ 0x10000004, 0x12000004, 0x10002004, 0x12002004,
+ 0x10200004, 0x12200004, 0x10202004, 0x12202004,
+ 0x10000400, 0x12000400, 0x10002400, 0x12002400,
+ 0x10200400, 0x12200400, 0x10202400, 0x12202400,
+ 0x10000404, 0x12000404, 0x10002404, 0x12002404,
+ 0x10200404, 0x12200404, 0x10202404, 0x12202404,
+ },
+ {
+ /* for C bits (numbered as per FIPS 46) 14 15 16 17 19 20 */
+ 0x00000000, 0x00000001, 0x00040000, 0x00040001,
+ 0x01000000, 0x01000001, 0x01040000, 0x01040001,
+ 0x00000002, 0x00000003, 0x00040002, 0x00040003,
+ 0x01000002, 0x01000003, 0x01040002, 0x01040003,
+ 0x00000200, 0x00000201, 0x00040200, 0x00040201,
+ 0x01000200, 0x01000201, 0x01040200, 0x01040201,
+ 0x00000202, 0x00000203, 0x00040202, 0x00040203,
+ 0x01000202, 0x01000203, 0x01040202, 0x01040203,
+ 0x08000000, 0x08000001, 0x08040000, 0x08040001,
+ 0x09000000, 0x09000001, 0x09040000, 0x09040001,
+ 0x08000002, 0x08000003, 0x08040002, 0x08040003,
+ 0x09000002, 0x09000003, 0x09040002, 0x09040003,
+ 0x08000200, 0x08000201, 0x08040200, 0x08040201,
+ 0x09000200, 0x09000201, 0x09040200, 0x09040201,
+ 0x08000202, 0x08000203, 0x08040202, 0x08040203,
+ 0x09000202, 0x09000203, 0x09040202, 0x09040203,
+ },
+ {
+ /* for C bits (numbered as per FIPS 46) 21 23 24 26 27 28 */
+ 0x00000000, 0x00100000, 0x00000100, 0x00100100,
+ 0x00000008, 0x00100008, 0x00000108, 0x00100108,
+ 0x00001000, 0x00101000, 0x00001100, 0x00101100,
+ 0x00001008, 0x00101008, 0x00001108, 0x00101108,
+ 0x04000000, 0x04100000, 0x04000100, 0x04100100,
+ 0x04000008, 0x04100008, 0x04000108, 0x04100108,
+ 0x04001000, 0x04101000, 0x04001100, 0x04101100,
+ 0x04001008, 0x04101008, 0x04001108, 0x04101108,
+ 0x00020000, 0x00120000, 0x00020100, 0x00120100,
+ 0x00020008, 0x00120008, 0x00020108, 0x00120108,
+ 0x00021000, 0x00121000, 0x00021100, 0x00121100,
+ 0x00021008, 0x00121008, 0x00021108, 0x00121108,
+ 0x04020000, 0x04120000, 0x04020100, 0x04120100,
+ 0x04020008, 0x04120008, 0x04020108, 0x04120108,
+ 0x04021000, 0x04121000, 0x04021100, 0x04121100,
+ 0x04021008, 0x04121008, 0x04021108, 0x04121108,
+ },
+ {
+ /* for D bits (numbered as per FIPS 46) 1 2 3 4 5 6 */
+ 0x00000000, 0x10000000, 0x00010000, 0x10010000,
+ 0x00000004, 0x10000004, 0x00010004, 0x10010004,
+ 0x20000000, 0x30000000, 0x20010000, 0x30010000,
+ 0x20000004, 0x30000004, 0x20010004, 0x30010004,
+ 0x00100000, 0x10100000, 0x00110000, 0x10110000,
+ 0x00100004, 0x10100004, 0x00110004, 0x10110004,
+ 0x20100000, 0x30100000, 0x20110000, 0x30110000,
+ 0x20100004, 0x30100004, 0x20110004, 0x30110004,
+ 0x00001000, 0x10001000, 0x00011000, 0x10011000,
+ 0x00001004, 0x10001004, 0x00011004, 0x10011004,
+ 0x20001000, 0x30001000, 0x20011000, 0x30011000,
+ 0x20001004, 0x30001004, 0x20011004, 0x30011004,
+ 0x00101000, 0x10101000, 0x00111000, 0x10111000,
+ 0x00101004, 0x10101004, 0x00111004, 0x10111004,
+ 0x20101000, 0x30101000, 0x20111000, 0x30111000,
+ 0x20101004, 0x30101004, 0x20111004, 0x30111004,
+ },
+ {
+ /* for D bits (numbered as per FIPS 46) 8 9 11 12 13 14 */
+ 0x00000000, 0x08000000, 0x00000008, 0x08000008,
+ 0x00000400, 0x08000400, 0x00000408, 0x08000408,
+ 0x00020000, 0x08020000, 0x00020008, 0x08020008,
+ 0x00020400, 0x08020400, 0x00020408, 0x08020408,
+ 0x00000001, 0x08000001, 0x00000009, 0x08000009,
+ 0x00000401, 0x08000401, 0x00000409, 0x08000409,
+ 0x00020001, 0x08020001, 0x00020009, 0x08020009,
+ 0x00020401, 0x08020401, 0x00020409, 0x08020409,
+ 0x02000000, 0x0A000000, 0x02000008, 0x0A000008,
+ 0x02000400, 0x0A000400, 0x02000408, 0x0A000408,
+ 0x02020000, 0x0A020000, 0x02020008, 0x0A020008,
+ 0x02020400, 0x0A020400, 0x02020408, 0x0A020408,
+ 0x02000001, 0x0A000001, 0x02000009, 0x0A000009,
+ 0x02000401, 0x0A000401, 0x02000409, 0x0A000409,
+ 0x02020001, 0x0A020001, 0x02020009, 0x0A020009,
+ 0x02020401, 0x0A020401, 0x02020409, 0x0A020409,
+ },
+ {
+ /* for D bits (numbered as per FIPS 46) 16 17 18 19 20 21 */
+ 0x00000000, 0x00000100, 0x00080000, 0x00080100,
+ 0x01000000, 0x01000100, 0x01080000, 0x01080100,
+ 0x00000010, 0x00000110, 0x00080010, 0x00080110,
+ 0x01000010, 0x01000110, 0x01080010, 0x01080110,
+ 0x00200000, 0x00200100, 0x00280000, 0x00280100,
+ 0x01200000, 0x01200100, 0x01280000, 0x01280100,
+ 0x00200010, 0x00200110, 0x00280010, 0x00280110,
+ 0x01200010, 0x01200110, 0x01280010, 0x01280110,
+ 0x00000200, 0x00000300, 0x00080200, 0x00080300,
+ 0x01000200, 0x01000300, 0x01080200, 0x01080300,
+ 0x00000210, 0x00000310, 0x00080210, 0x00080310,
+ 0x01000210, 0x01000310, 0x01080210, 0x01080310,
+ 0x00200200, 0x00200300, 0x00280200, 0x00280300,
+ 0x01200200, 0x01200300, 0x01280200, 0x01280300,
+ 0x00200210, 0x00200310, 0x00280210, 0x00280310,
+ 0x01200210, 0x01200310, 0x01280210, 0x01280310,
+ },
+ {
+ /* for D bits (numbered as per FIPS 46) 22 23 24 25 27 28 */
+ 0x00000000, 0x04000000, 0x00040000, 0x04040000,
+ 0x00000002, 0x04000002, 0x00040002, 0x04040002,
+ 0x00002000, 0x04002000, 0x00042000, 0x04042000,
+ 0x00002002, 0x04002002, 0x00042002, 0x04042002,
+ 0x00000020, 0x04000020, 0x00040020, 0x04040020,
+ 0x00000022, 0x04000022, 0x00040022, 0x04040022,
+ 0x00002020, 0x04002020, 0x00042020, 0x04042020,
+ 0x00002022, 0x04002022, 0x00042022, 0x04042022,
+ 0x00000800, 0x04000800, 0x00040800, 0x04040800,
+ 0x00000802, 0x04000802, 0x00040802, 0x04040802,
+ 0x00002800, 0x04002800, 0x00042800, 0x04042800,
+ 0x00002802, 0x04002802, 0x00042802, 0x04042802,
+ 0x00000820, 0x04000820, 0x00040820, 0x04040820,
+ 0x00000822, 0x04000822, 0x00040822, 0x04040822,
+ 0x00002820, 0x04002820, 0x00042820, 0x04042820,
+ 0x00002822, 0x04002822, 0x00042822, 0x04042822,
+ }
+ };
+
+ private static final int SPtrans[][] = {
+ {
+ /* nibble 0 */
+ 0x00820200, 0x00020000, 0x80800000, 0x80820200,
+ 0x00800000, 0x80020200, 0x80020000, 0x80800000,
+ 0x80020200, 0x00820200, 0x00820000, 0x80000200,
+ 0x80800200, 0x00800000, 0x00000000, 0x80020000,
+ 0x00020000, 0x80000000, 0x00800200, 0x00020200,
+ 0x80820200, 0x00820000, 0x80000200, 0x00800200,
+ 0x80000000, 0x00000200, 0x00020200, 0x80820000,
+ 0x00000200, 0x80800200, 0x80820000, 0x00000000,
+ 0x00000000, 0x80820200, 0x00800200, 0x80020000,
+ 0x00820200, 0x00020000, 0x80000200, 0x00800200,
+ 0x80820000, 0x00000200, 0x00020200, 0x80800000,
+ 0x80020200, 0x80000000, 0x80800000, 0x00820000,
+ 0x80820200, 0x00020200, 0x00820000, 0x80800200,
+ 0x00800000, 0x80000200, 0x80020000, 0x00000000,
+ 0x00020000, 0x00800000, 0x80800200, 0x00820200,
+ 0x80000000, 0x80820000, 0x00000200, 0x80020200,
+ },
+ {
+ /* nibble 1 */
+ 0x10042004, 0x00000000, 0x00042000, 0x10040000,
+ 0x10000004, 0x00002004, 0x10002000, 0x00042000,
+ 0x00002000, 0x10040004, 0x00000004, 0x10002000,
+ 0x00040004, 0x10042000, 0x10040000, 0x00000004,
+ 0x00040000, 0x10002004, 0x10040004, 0x00002000,
+ 0x00042004, 0x10000000, 0x00000000, 0x00040004,
+ 0x10002004, 0x00042004, 0x10042000, 0x10000004,
+ 0x10000000, 0x00040000, 0x00002004, 0x10042004,
+ 0x00040004, 0x10042000, 0x10002000, 0x00042004,
+ 0x10042004, 0x00040004, 0x10000004, 0x00000000,
+ 0x10000000, 0x00002004, 0x00040000, 0x10040004,
+ 0x00002000, 0x10000000, 0x00042004, 0x10002004,
+ 0x10042000, 0x00002000, 0x00000000, 0x10000004,
+ 0x00000004, 0x10042004, 0x00042000, 0x10040000,
+ 0x10040004, 0x00040000, 0x00002004, 0x10002000,
+ 0x10002004, 0x00000004, 0x10040000, 0x00042000,
+ },
+ {
+ /* nibble 2 */
+ 0x41000000, 0x01010040, 0x00000040, 0x41000040,
+ 0x40010000, 0x01000000, 0x41000040, 0x00010040,
+ 0x01000040, 0x00010000, 0x01010000, 0x40000000,
+ 0x41010040, 0x40000040, 0x40000000, 0x41010000,
+ 0x00000000, 0x40010000, 0x01010040, 0x00000040,
+ 0x40000040, 0x41010040, 0x00010000, 0x41000000,
+ 0x41010000, 0x01000040, 0x40010040, 0x01010000,
+ 0x00010040, 0x00000000, 0x01000000, 0x40010040,
+ 0x01010040, 0x00000040, 0x40000000, 0x00010000,
+ 0x40000040, 0x40010000, 0x01010000, 0x41000040,
+ 0x00000000, 0x01010040, 0x00010040, 0x41010000,
+ 0x40010000, 0x01000000, 0x41010040, 0x40000000,
+ 0x40010040, 0x41000000, 0x01000000, 0x41010040,
+ 0x00010000, 0x01000040, 0x41000040, 0x00010040,
+ 0x01000040, 0x00000000, 0x41010000, 0x40000040,
+ 0x41000000, 0x40010040, 0x00000040, 0x01010000,
+ },
+ {
+ /* nibble 3 */
+ 0x00100402, 0x04000400, 0x00000002, 0x04100402,
+ 0x00000000, 0x04100000, 0x04000402, 0x00100002,
+ 0x04100400, 0x04000002, 0x04000000, 0x00000402,
+ 0x04000002, 0x00100402, 0x00100000, 0x04000000,
+ 0x04100002, 0x00100400, 0x00000400, 0x00000002,
+ 0x00100400, 0x04000402, 0x04100000, 0x00000400,
+ 0x00000402, 0x00000000, 0x00100002, 0x04100400,
+ 0x04000400, 0x04100002, 0x04100402, 0x00100000,
+ 0x04100002, 0x00000402, 0x00100000, 0x04000002,
+ 0x00100400, 0x04000400, 0x00000002, 0x04100000,
+ 0x04000402, 0x00000000, 0x00000400, 0x00100002,
+ 0x00000000, 0x04100002, 0x04100400, 0x00000400,
+ 0x04000000, 0x04100402, 0x00100402, 0x00100000,
+ 0x04100402, 0x00000002, 0x04000400, 0x00100402,
+ 0x00100002, 0x00100400, 0x04100000, 0x04000402,
+ 0x00000402, 0x04000000, 0x04000002, 0x04100400,
+ },
+ {
+ /* nibble 4 */
+ 0x02000000, 0x00004000, 0x00000100, 0x02004108,
+ 0x02004008, 0x02000100, 0x00004108, 0x02004000,
+ 0x00004000, 0x00000008, 0x02000008, 0x00004100,
+ 0x02000108, 0x02004008, 0x02004100, 0x00000000,
+ 0x00004100, 0x02000000, 0x00004008, 0x00000108,
+ 0x02000100, 0x00004108, 0x00000000, 0x02000008,
+ 0x00000008, 0x02000108, 0x02004108, 0x00004008,
+ 0x02004000, 0x00000100, 0x00000108, 0x02004100,
+ 0x02004100, 0x02000108, 0x00004008, 0x02004000,
+ 0x00004000, 0x00000008, 0x02000008, 0x02000100,
+ 0x02000000, 0x00004100, 0x02004108, 0x00000000,
+ 0x00004108, 0x02000000, 0x00000100, 0x00004008,
+ 0x02000108, 0x00000100, 0x00000000, 0x02004108,
+ 0x02004008, 0x02004100, 0x00000108, 0x00004000,
+ 0x00004100, 0x02004008, 0x02000100, 0x00000108,
+ 0x00000008, 0x00004108, 0x02004000, 0x02000008,
+ },
+ {
+ /* nibble 5 */
+ 0x20000010, 0x00080010, 0x00000000, 0x20080800,
+ 0x00080010, 0x00000800, 0x20000810, 0x00080000,
+ 0x00000810, 0x20080810, 0x00080800, 0x20000000,
+ 0x20000800, 0x20000010, 0x20080000, 0x00080810,
+ 0x00080000, 0x20000810, 0x20080010, 0x00000000,
+ 0x00000800, 0x00000010, 0x20080800, 0x20080010,
+ 0x20080810, 0x20080000, 0x20000000, 0x00000810,
+ 0x00000010, 0x00080800, 0x00080810, 0x20000800,
+ 0x00000810, 0x20000000, 0x20000800, 0x00080810,
+ 0x20080800, 0x00080010, 0x00000000, 0x20000800,
+ 0x20000000, 0x00000800, 0x20080010, 0x00080000,
+ 0x00080010, 0x20080810, 0x00080800, 0x00000010,
+ 0x20080810, 0x00080800, 0x00080000, 0x20000810,
+ 0x20000010, 0x20080000, 0x00080810, 0x00000000,
+ 0x00000800, 0x20000010, 0x20000810, 0x20080800,
+ 0x20080000, 0x00000810, 0x00000010, 0x20080010,
+ },
+ {
+ /* nibble 6 */
+ 0x00001000, 0x00000080, 0x00400080, 0x00400001,
+ 0x00401081, 0x00001001, 0x00001080, 0x00000000,
+ 0x00400000, 0x00400081, 0x00000081, 0x00401000,
+ 0x00000001, 0x00401080, 0x00401000, 0x00000081,
+ 0x00400081, 0x00001000, 0x00001001, 0x00401081,
+ 0x00000000, 0x00400080, 0x00400001, 0x00001080,
+ 0x00401001, 0x00001081, 0x00401080, 0x00000001,
+ 0x00001081, 0x00401001, 0x00000080, 0x00400000,
+ 0x00001081, 0x00401000, 0x00401001, 0x00000081,
+ 0x00001000, 0x00000080, 0x00400000, 0x00401001,
+ 0x00400081, 0x00001081, 0x00001080, 0x00000000,
+ 0x00000080, 0x00400001, 0x00000001, 0x00400080,
+ 0x00000000, 0x00400081, 0x00400080, 0x00001080,
+ 0x00000081, 0x00001000, 0x00401081, 0x00400000,
+ 0x00401080, 0x00000001, 0x00001001, 0x00401081,
+ 0x00400001, 0x00401080, 0x00401000, 0x00001001,
+ },
+ {
+ /* nibble 7 */
+ 0x08200020, 0x08208000, 0x00008020, 0x00000000,
+ 0x08008000, 0x00200020, 0x08200000, 0x08208020,
+ 0x00000020, 0x08000000, 0x00208000, 0x00008020,
+ 0x00208020, 0x08008020, 0x08000020, 0x08200000,
+ 0x00008000, 0x00208020, 0x00200020, 0x08008000,
+ 0x08208020, 0x08000020, 0x00000000, 0x00208000,
+ 0x08000000, 0x00200000, 0x08008020, 0x08200020,
+ 0x00200000, 0x00008000, 0x08208000, 0x00000020,
+ 0x00200000, 0x00008000, 0x08000020, 0x08208020,
+ 0x00008020, 0x08000000, 0x00000000, 0x00208000,
+ 0x08200020, 0x08008020, 0x08008000, 0x00200020,
+ 0x08208000, 0x00000020, 0x00200020, 0x08008000,
+ 0x08208020, 0x00200000, 0x08200000, 0x08000020,
+ 0x00208000, 0x00008020, 0x08008020, 0x08200000,
+ 0x00000020, 0x08208000, 0x00208020, 0x00000000,
+ 0x08000000, 0x08200020, 0x00008000, 0x00208020
+ }
+ };
+
+ private static final int byteToUnsigned(byte b) {
+ int value = (int) b;
+ return (value >= 0) ? value : value + 256;
+ }
+
+ private static int fourBytesToInt(byte b[], int offset) {
+ return byteToUnsigned(b[offset++])
+ | (byteToUnsigned(b[offset++]) << 8)
+ | (byteToUnsigned(b[offset++]) << 16)
+ | (byteToUnsigned(b[offset]) << 24);
+ }
+
+ private static final void intToFourBytes(int iValue, byte b[], int offset) {
+ b[offset++] = (byte)((iValue) & 0xff);
+ b[offset++] = (byte)((iValue >>> 8 ) & 0xff);
+ b[offset++] = (byte)((iValue >>> 16) & 0xff);
+ b[offset] = (byte)((iValue >>> 24) & 0xff);
+ }
+
+ private static final void PERM_OP(int a, int b, int n, int m, int results[]) {
+ int t;
+
+ t = ((a >>> n) ^ b) & m;
+ a ^= t << n;
+ b ^= t;
+
+ results[0] = a;
+ results[1] = b;
+ }
+
+ private static final int HPERM_OP(int a, int n, int m) {
+ int t;
+
+ t = ((a << (16 - n)) ^ a) & m;
+ a = a ^ t ^ (t >>> (16 - n));
+
+ return a;
+ }
+
+ private static int [] des_set_key(byte key[]) {
+ int schedule[] = new int [ITERATIONS * 2];
+
+ int c = fourBytesToInt(key, 0);
+ int d = fourBytesToInt(key, 4);
+
+ int results[] = new int[2];
+
+ PERM_OP(d, c, 4, 0x0f0f0f0f, results);
+ d = results[0]; c = results[1];
+
+ c = HPERM_OP(c, -2, 0xcccc0000);
+ d = HPERM_OP(d, -2, 0xcccc0000);
+
+ PERM_OP(d, c, 1, 0x55555555, results);
+ d = results[0]; c = results[1];
+
+ PERM_OP(c, d, 8, 0x00ff00ff, results);
+ c = results[0]; d = results[1];
+
+ PERM_OP(d, c, 1, 0x55555555, results);
+ d = results[0]; c = results[1];
+
+ d = (((d & 0x000000ff) << 16) | (d & 0x0000ff00) |
+ ((d & 0x00ff0000) >>> 16) | ((c & 0xf0000000) >>> 4));
+ c &= 0x0fffffff;
+
+ int s, t;
+ int j = 0;
+
+ for(int i = 0; i < ITERATIONS; i ++) {
+ if(shifts2[i]) {
+ c = (c >>> 2) | (c << 26);
+ d = (d >>> 2) | (d << 26);
+ } else {
+ c = (c >>> 1) | (c << 27);
+ d = (d >>> 1) | (d << 27);
+ }
+
+ c &= 0x0fffffff;
+ d &= 0x0fffffff;
+
+ s = skb[0][ (c ) & 0x3f ]|
+ skb[1][((c >>> 6) & 0x03) | ((c >>> 7) & 0x3c)]|
+ skb[2][((c >>> 13) & 0x0f) | ((c >>> 14) & 0x30)]|
+ skb[3][((c >>> 20) & 0x01) | ((c >>> 21) & 0x06) |
+ ((c >>> 22) & 0x38)];
+
+ t = skb[4][ (d ) & 0x3f ]|
+ skb[5][((d >>> 7) & 0x03) | ((d >>> 8) & 0x3c)]|
+ skb[6][ (d >>>15) & 0x3f ]|
+ skb[7][((d >>>21) & 0x0f) | ((d >>> 22) & 0x30)];
+
+ schedule[j++] = ((t << 16) | (s & 0x0000ffff)) & 0xffffffff;
+ s = ((s >>> 16) | (t & 0xffff0000));
+
+ s = (s << 4) | (s >>> 28);
+ schedule[j++] = s & 0xffffffff;
+ }
+ return schedule;
+ }
+
+ private static final int D_ENCRYPT(int L, int R, int S, int E0, int E1, int s[]) {
+ int t, u, v;
+
+ v = R ^ (R >>> 16);
+ u = v & E0;
+ v = v & E1;
+ u = (u ^ (u << 16)) ^ R ^ s[S];
+ t = (v ^ (v << 16)) ^ R ^ s[S + 1];
+ t = (t >>> 4) | (t << 28);
+
+ L ^= SPtrans[1][(t ) & 0x3f] |
+ SPtrans[3][(t >>> 8) & 0x3f] |
+ SPtrans[5][(t >>> 16) & 0x3f] |
+ SPtrans[7][(t >>> 24) & 0x3f] |
+ SPtrans[0][(u ) & 0x3f] |
+ SPtrans[2][(u >>> 8) & 0x3f] |
+ SPtrans[4][(u >>> 16) & 0x3f] |
+ SPtrans[6][(u >>> 24) & 0x3f];
+
+ return L;
+ }
+
+ private static final int [] body(int schedule[], int Eswap0, int Eswap1) {
+ int left = 0;
+ int right = 0;
+ int t = 0;
+
+ for (int j = 0; j < 25; j ++) {
+ for (int i = 0; i < ITERATIONS * 2; i += 4) {
+ left = D_ENCRYPT(left, right, i, Eswap0, Eswap1, schedule);
+ right = D_ENCRYPT(right, left, i + 2, Eswap0, Eswap1, schedule);
+ }
+ t = left;
+ left = right;
+ right = t;
+ }
+
+ t = right;
+
+ right = (left >>> 1) | (left << 31);
+ left = (t >>> 1) | (t << 31);
+
+ left &= 0xffffffff;
+ right &= 0xffffffff;
+
+ int results[] = new int[2];
+
+ PERM_OP(right, left, 1, 0x55555555, results);
+ right = results[0]; left = results[1];
+
+ PERM_OP(left, right, 8, 0x00ff00ff, results);
+ left = results[0]; right = results[1];
+
+ PERM_OP(right, left, 2, 0x33333333, results);
+ right = results[0]; left = results[1];
+
+ PERM_OP(left, right, 16, 0x0000ffff, results);
+ left = results[0]; right = results[1];
+
+ PERM_OP(right, left, 4, 0x0f0f0f0f, results);
+ right = results[0]; left = results[1];
+
+ int out[] = new int[2];
+
+ out[0] = left;
+ out[1] = right;
+
+ return out;
+ }
+
+ public static final String alphabet = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+
+ public static final String crypt(String salt, String original) {
+ // wwb -- Should do some sanity checks: salt needs to be 2 chars, in alpha.
+ while(salt.length() < 2)
+ salt += "A";
+
+ char[] buffer = new char [13];
+
+ char charZero = salt.charAt(0);
+ char charOne = salt.charAt(1);
+
+ buffer[0] = charZero;
+ buffer[1] = charOne;
+
+ int Eswap0 = alphabet.indexOf(charZero);
+ int Eswap1 = alphabet.indexOf(charOne) << 4;
+ byte key[] = new byte[8];
+
+ for(int i = 0; i < key.length; i ++)
+ key[i] = (byte)0;
+
+ for(int i = 0; i < key.length && i < original.length(); i ++)
+ key[i] = (byte) (((int) original.charAt(i)) << 1);
+
+ int schedule[] = des_set_key(key);
+ int out[] = body(schedule, Eswap0, Eswap1);
+
+ byte b[] = new byte[9];
+
+ intToFourBytes(out[0], b, 0);
+ intToFourBytes(out[1], b, 4);
+ b[8] = 0;
+
+ for(int i = 2, y = 0, u = 0x80; i < 13; i ++) {
+ for(int j = 0, c = 0; j < 6; j ++) {
+ c <<= 1;
+
+ if(((int)b[y] & u) != 0)
+ c |= 1;
+
+ u >>>= 1;
+
+ if (u == 0) {
+ y++;
+ u = 0x80;
+ }
+ buffer[i] = alphabet.charAt(c);
+ }
+ }
+ return new String(buffer);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/DateUtil.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/DateUtil.java
new file mode 100644
index 00000000..5d0e240d
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/DateUtil.java
@@ -0,0 +1,17 @@
+package com.gluster.storage.management.core.utils;
+
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+public class DateUtil {
+ public static final String formatDate(Date inputDate) {
+ DateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
+ return formatter.format(inputDate);
+ }
+
+ public static final String formatTime(Date inputDate) {
+ DateFormat formatter = new SimpleDateFormat("HH:mm:ss z");
+ return formatter.format(inputDate);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/FileUtil.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/FileUtil.java
new file mode 100644
index 00000000..f3296c5c
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/FileUtil.java
@@ -0,0 +1,22 @@
+package com.gluster.storage.management.core.utils;
+
+import java.io.File;
+import java.io.FileInputStream;
+
+import com.gluster.storage.management.core.exceptions.GlusterRuntimeException;
+
+public class FileUtil {
+ public String readFileAsString(File file) {
+ try {
+ FileInputStream fileInputStream = new FileInputStream(file);
+ byte[] data = new byte[fileInputStream.available()];
+ fileInputStream.read(data);
+ fileInputStream.close();
+
+ return new String(data);
+ } catch (Exception e) {
+ e.printStackTrace();
+ throw new GlusterRuntimeException("Could not read file [" + file + "]", e);
+ }
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5.java
new file mode 100644
index 00000000..c4d6abb8
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5.java
@@ -0,0 +1,505 @@
+package com.gluster.storage.management.core.utils;
+
+/*
+ * MD5 in Java JDK Beta-2
+ * written Santeri Paavolainen, Helsinki Finland 1996
+ * (c) Santeri Paavolainen, Helsinki Finland 1996
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *
+ * See http://www.cs.hut.fi/~santtu/java/ for more information on this
+ * class.
+ *
+ * This is rather straight re-implementation of the reference implementation
+ * given in RFC1321 by RSA.
+ *
+ * Passes MD5 test suite as defined in RFC1321.
+ *
+ *
+ * This Java class has been derivedfrom the RSA Data Security, Inc. MD5
+ * Message-Digest Algorithm and its reference implementation.
+ *
+ *
+ * $Log: MD5.java,v $
+ * Revision 1.1 2004/07/12 13:35:20 aubryp
+ * initial commit
+ *
+ * Revision 1.3 2002/03/16 01:46:39 broccol
+ * Moved the MD5 classes into the md5 package to make 1.4 javac happy
+ *
+ * Revision 1.2 1999/11/04 21:38:00 broccol
+ * Got MD5Crypt calculating the same hash as the OpenBSD md5crypt.c routine.
+ *
+ * Revision 1.1 1999/08/05 22:07:03 broccol
+ * Added support for the MD5 classes.
+ *
+ * Revision 1.3 1996/04/15 07:28:09 santtu
+ * Added GPL statements, and RSA derivate statements.
+ *
+ * Revision 1.2 1996/03/04 08:05:48 santtu
+ * Added offsets to Update method
+ *
+ * Revision 1.1 1996/01/07 20:51:59 santtu
+ * Initial revision
+ *
+ */
+
+/**
+ * Contains internal state of the MD5 class
+ *
+ * @author Santeri Paavolainen
+ */
+
+class MD5State {
+ /**
+ * 128-byte state
+ */
+ int state[];
+
+ /**
+ * 64-bit character count (could be true Java long?)
+ */
+ int count[];
+
+ /**
+ * 64-byte buffer (512 bits) for storing to-be-hashed characters
+ */
+ byte buffer[];
+
+ public MD5State() {
+ buffer = new byte[64];
+ count = new int[2];
+ state = new int[4];
+
+ state[0] = 0x67452301;
+ state[1] = 0xefcdab89;
+ state[2] = 0x98badcfe;
+ state[3] = 0x10325476;
+
+ count[0] = count[1] = 0;
+ }
+
+ /** Create this State as a copy of another state */
+ public MD5State(MD5State from) {
+ this ();
+
+ int i;
+
+ for (i = 0; i < buffer.length; i++)
+ this .buffer[i] = from.buffer[i];
+
+ for (i = 0; i < state.length; i++)
+ this .state[i] = from.state[i];
+
+ for (i = 0; i < count.length; i++)
+ this .count[i] = from.count[i];
+ }
+};
+
+/**
+ * Implementation of RSA's MD5 hash generator
+ *
+ * @version $Revision: 1.1 $
+ * @author Santeri Paavolainen
+ */
+
+public class MD5 {
+ /**
+ * MD5 state
+ */
+ MD5State state;
+
+ /**
+ * If Final() has been called, finals is set to the current finals
+ * state. Any Update() causes this to be set to null.
+ */
+ MD5State finals;
+
+ /**
+ * Padding for Final()
+ */
+ static byte padding[] = { (byte) 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ /**
+ * Initialize MD5 internal state (object can be reused just by
+ * calling Init() after every Final()
+ */
+ public synchronized void Init() {
+ state = new MD5State();
+ finals = null;
+ }
+
+ /**
+ * Class constructor
+ */
+ public MD5() {
+ this .Init();
+ }
+
+ /**
+ * Initialize class, and update hash with ob.toString()
+ *
+ * @param ob Object, ob.toString() is used to update hash
+ * after initialization
+ */
+ public MD5(Object ob) {
+ this ();
+ Update(ob.toString());
+ }
+
+ public String debugDump() {
+ return asHex();
+ }
+
+ private int rotate_left(int x, int n) {
+ return (x << n) | (x >>> (32 - n));
+ }
+
+ /* I wonder how many loops and hoops you'll have to go through to
+ get unsigned add for longs in java */
+
+ private int uadd(int a, int b) {
+ long aa, bb;
+ aa = ((long) a) & 0xffffffffL;
+ bb = ((long) b) & 0xffffffffL;
+
+ aa += bb;
+
+ return (int) (aa & 0xffffffffL);
+ }
+
+ private int uadd(int a, int b, int c) {
+ return uadd(uadd(a, b), c);
+ }
+
+ private int uadd(int a, int b, int c, int d) {
+ return uadd(uadd(a, b, c), d);
+ }
+
+ private int FF(int a, int b, int c, int d, int x, int s, int ac) {
+ a = uadd(a, ((b & c) | (~b & d)), x, ac);
+ return uadd(rotate_left(a, s), b);
+ }
+
+ private int GG(int a, int b, int c, int d, int x, int s, int ac) {
+ a = uadd(a, ((b & d) | (c & ~d)), x, ac);
+ return uadd(rotate_left(a, s), b);
+ }
+
+ private int HH(int a, int b, int c, int d, int x, int s, int ac) {
+ a = uadd(a, (b ^ c ^ d), x, ac);
+ return uadd(rotate_left(a, s), b);
+ }
+
+ private int II(int a, int b, int c, int d, int x, int s, int ac) {
+ a = uadd(a, (c ^ (b | ~d)), x, ac);
+ return uadd(rotate_left(a, s), b);
+ }
+
+ private int[] Decode(byte buffer[], int len, int shift) {
+ int out[];
+ int i, j;
+
+ out = new int[16];
+
+ for (i = j = 0; j < len; i++, j += 4) {
+ out[i] = ((int) (buffer[j + shift] & 0xff))
+ | (((int) (buffer[j + 1 + shift] & 0xff)) << 8)
+ | (((int) (buffer[j + 2 + shift] & 0xff)) << 16)
+ | (((int) (buffer[j + 3 + shift] & 0xff)) << 24);
+ }
+
+ return out;
+ }
+
+ private void Transform(MD5State state, byte buffer[], int shift) {
+ int a = state.state[0], b = state.state[1], c = state.state[2], d = state.state[3], x[];
+
+ x = Decode(buffer, 64, shift);
+
+ /* Round 1 */
+ a = FF(a, b, c, d, x[0], 7, 0xd76aa478); /* 1 */
+ d = FF(d, a, b, c, x[1], 12, 0xe8c7b756); /* 2 */
+ c = FF(c, d, a, b, x[2], 17, 0x242070db); /* 3 */
+ b = FF(b, c, d, a, x[3], 22, 0xc1bdceee); /* 4 */
+ a = FF(a, b, c, d, x[4], 7, 0xf57c0faf); /* 5 */
+ d = FF(d, a, b, c, x[5], 12, 0x4787c62a); /* 6 */
+ c = FF(c, d, a, b, x[6], 17, 0xa8304613); /* 7 */
+ b = FF(b, c, d, a, x[7], 22, 0xfd469501); /* 8 */
+ a = FF(a, b, c, d, x[8], 7, 0x698098d8); /* 9 */
+ d = FF(d, a, b, c, x[9], 12, 0x8b44f7af); /* 10 */
+ c = FF(c, d, a, b, x[10], 17, 0xffff5bb1); /* 11 */
+ b = FF(b, c, d, a, x[11], 22, 0x895cd7be); /* 12 */
+ a = FF(a, b, c, d, x[12], 7, 0x6b901122); /* 13 */
+ d = FF(d, a, b, c, x[13], 12, 0xfd987193); /* 14 */
+ c = FF(c, d, a, b, x[14], 17, 0xa679438e); /* 15 */
+ b = FF(b, c, d, a, x[15], 22, 0x49b40821); /* 16 */
+
+ /* Round 2 */
+ a = GG(a, b, c, d, x[1], 5, 0xf61e2562); /* 17 */
+ d = GG(d, a, b, c, x[6], 9, 0xc040b340); /* 18 */
+ c = GG(c, d, a, b, x[11], 14, 0x265e5a51); /* 19 */
+ b = GG(b, c, d, a, x[0], 20, 0xe9b6c7aa); /* 20 */
+ a = GG(a, b, c, d, x[5], 5, 0xd62f105d); /* 21 */
+ d = GG(d, a, b, c, x[10], 9, 0x2441453); /* 22 */
+ c = GG(c, d, a, b, x[15], 14, 0xd8a1e681); /* 23 */
+ b = GG(b, c, d, a, x[4], 20, 0xe7d3fbc8); /* 24 */
+ a = GG(a, b, c, d, x[9], 5, 0x21e1cde6); /* 25 */
+ d = GG(d, a, b, c, x[14], 9, 0xc33707d6); /* 26 */
+ c = GG(c, d, a, b, x[3], 14, 0xf4d50d87); /* 27 */
+ b = GG(b, c, d, a, x[8], 20, 0x455a14ed); /* 28 */
+ a = GG(a, b, c, d, x[13], 5, 0xa9e3e905); /* 29 */
+ d = GG(d, a, b, c, x[2], 9, 0xfcefa3f8); /* 30 */
+ c = GG(c, d, a, b, x[7], 14, 0x676f02d9); /* 31 */
+ b = GG(b, c, d, a, x[12], 20, 0x8d2a4c8a); /* 32 */
+
+ /* Round 3 */
+ a = HH(a, b, c, d, x[5], 4, 0xfffa3942); /* 33 */
+ d = HH(d, a, b, c, x[8], 11, 0x8771f681); /* 34 */
+ c = HH(c, d, a, b, x[11], 16, 0x6d9d6122); /* 35 */
+ b = HH(b, c, d, a, x[14], 23, 0xfde5380c); /* 36 */
+ a = HH(a, b, c, d, x[1], 4, 0xa4beea44); /* 37 */
+ d = HH(d, a, b, c, x[4], 11, 0x4bdecfa9); /* 38 */
+ c = HH(c, d, a, b, x[7], 16, 0xf6bb4b60); /* 39 */
+ b = HH(b, c, d, a, x[10], 23, 0xbebfbc70); /* 40 */
+ a = HH(a, b, c, d, x[13], 4, 0x289b7ec6); /* 41 */
+ d = HH(d, a, b, c, x[0], 11, 0xeaa127fa); /* 42 */
+ c = HH(c, d, a, b, x[3], 16, 0xd4ef3085); /* 43 */
+ b = HH(b, c, d, a, x[6], 23, 0x4881d05); /* 44 */
+ a = HH(a, b, c, d, x[9], 4, 0xd9d4d039); /* 45 */
+ d = HH(d, a, b, c, x[12], 11, 0xe6db99e5); /* 46 */
+ c = HH(c, d, a, b, x[15], 16, 0x1fa27cf8); /* 47 */
+ b = HH(b, c, d, a, x[2], 23, 0xc4ac5665); /* 48 */
+
+ /* Round 4 */
+ a = II(a, b, c, d, x[0], 6, 0xf4292244); /* 49 */
+ d = II(d, a, b, c, x[7], 10, 0x432aff97); /* 50 */
+ c = II(c, d, a, b, x[14], 15, 0xab9423a7); /* 51 */
+ b = II(b, c, d, a, x[5], 21, 0xfc93a039); /* 52 */
+ a = II(a, b, c, d, x[12], 6, 0x655b59c3); /* 53 */
+ d = II(d, a, b, c, x[3], 10, 0x8f0ccc92); /* 54 */
+ c = II(c, d, a, b, x[10], 15, 0xffeff47d); /* 55 */
+ b = II(b, c, d, a, x[1], 21, 0x85845dd1); /* 56 */
+ a = II(a, b, c, d, x[8], 6, 0x6fa87e4f); /* 57 */
+ d = II(d, a, b, c, x[15], 10, 0xfe2ce6e0); /* 58 */
+ c = II(c, d, a, b, x[6], 15, 0xa3014314); /* 59 */
+ b = II(b, c, d, a, x[13], 21, 0x4e0811a1); /* 60 */
+ a = II(a, b, c, d, x[4], 6, 0xf7537e82); /* 61 */
+ d = II(d, a, b, c, x[11], 10, 0xbd3af235); /* 62 */
+ c = II(c, d, a, b, x[2], 15, 0x2ad7d2bb); /* 63 */
+ b = II(b, c, d, a, x[9], 21, 0xeb86d391); /* 64 */
+
+ state.state[0] += a;
+ state.state[1] += b;
+ state.state[2] += c;
+ state.state[3] += d;
+ }
+
+ /**
+ * Updates hash with the bytebuffer given (using at maximum length bytes from
+ * that buffer)
+ *
+ * @param stat Which state is updated
+ * @param buffer Array of bytes to be hashed
+ * @param offset Offset to buffer array
+ * @param length Use at maximum `length' bytes (absolute
+ * maximum is buffer.length)
+ */
+ public void Update(MD5State stat, byte buffer[], int offset,
+ int length) {
+ int index, partlen, i, start;
+
+ finals = null;
+
+ /* Length can be told to be shorter, but not inter */
+ if ((length - offset) > buffer.length)
+ length = buffer.length - offset;
+
+ /* compute number of bytes mod 64 */
+ index = (int) (stat.count[0] >>> 3) & 0x3f;
+
+ if ((stat.count[0] += (length << 3)) < (length << 3))
+ stat.count[1]++;
+
+ stat.count[1] += length >>> 29;
+
+ partlen = 64 - index;
+
+ if (length >= partlen) {
+ for (i = 0; i < partlen; i++)
+ stat.buffer[i + index] = buffer[i + offset];
+
+ Transform(stat, stat.buffer, 0);
+
+ for (i = partlen; (i + 63) < length; i += 64)
+ Transform(stat, buffer, i);
+
+ index = 0;
+ } else
+ i = 0;
+
+ /* buffer remaining input */
+ if (i < length) {
+ start = i;
+ for (; i < length; i++)
+ stat.buffer[index + i - start] = buffer[i + offset];
+ }
+ }
+
+ /*
+ * Update()s for other datatypes than byte[] also. Update(byte[], int)
+ * is only the main driver.
+ */
+
+ /**
+ * Plain update, updates this object
+ */
+
+ public void Update(byte buffer[], int offset, int length) {
+ Update(this .state, buffer, offset, length);
+ }
+
+ public void Update(byte buffer[], int length) {
+ Update(this .state, buffer, 0, length);
+ }
+
+ /**
+ * Updates hash with given array of bytes
+ *
+ * @param buffer Array of bytes to use for updating the hash
+ */
+ public void Update(byte buffer[]) {
+ Update(buffer, 0, buffer.length);
+ }
+
+ /**
+ * Updates hash with a single byte
+ *
+ * @param b Single byte to update the hash
+ */
+ public void Update(byte b) {
+ byte buffer[] = new byte[1];
+ buffer[0] = b;
+
+ Update(buffer, 1);
+ }
+
+ /**
+ * Update buffer with given string.
+ *
+ * @param s String to be update to hash (is used as
+ * s.getBytes())
+ */
+ public void Update(String s) {
+ byte chars[];
+
+ chars = s.getBytes();
+
+ Update(chars, chars.length);
+ }
+
+ private byte[] Encode(int input[], int len) {
+ int i, j;
+ byte out[];
+
+ out = new byte[len];
+
+ for (i = j = 0; j < len; i++, j += 4) {
+ out[j] = (byte) (input[i] & 0xff);
+ out[j + 1] = (byte) ((input[i] >>> 8) & 0xff);
+ out[j + 2] = (byte) ((input[i] >>> 16) & 0xff);
+ out[j + 3] = (byte) ((input[i] >>> 24) & 0xff);
+ }
+
+ return out;
+ }
+
+ /**
+ * Returns array of bytes (16 bytes) representing hash as of the
+ * current state of this object. Note: getting a hash does not
+ * invalidate the hash object, it only creates a copy of the real
+ * state which is finalized.
+ *
+ * @return Array of 16 bytes, the hash of all updated bytes
+ */
+ public synchronized byte[] Final() {
+ byte bits[];
+ int index, padlen;
+ MD5State fin;
+
+ if (finals == null) {
+ fin = new MD5State(state);
+
+ bits = Encode(fin.count, 8);
+
+ index = (int) ((fin.count[0] >>> 3) & 0x3f);
+ padlen = (index < 56) ? (56 - index) : (120 - index);
+
+ Update(fin, padding, 0, padlen);
+ /**/
+ Update(fin, bits, 0, 8);
+
+ /* Update() sets finalds to null */
+ finals = fin;
+ }
+
+ return Encode(finals.state, 16);
+ }
+
+ /**
+ * Turns array of bytes into string representing each byte as
+ * unsigned hex number.
+ *
+ * @param hash Array of bytes to convert to hex-string
+ * @return Generated hex string
+ */
+ public static String asHex(byte hash[]) {
+ StringBuffer buf = new StringBuffer(hash.length * 2);
+ int i;
+
+ for (i = 0; i < hash.length; i++) {
+ if (((int) hash[i] & 0xff) < 0x10)
+ buf.append("0");
+
+ buf.append(Long.toString((int) hash[i] & 0xff, 16));
+ }
+
+ return buf.toString();
+ }
+
+ /**
+ * Returns 32-character hex representation of this objects hash
+ *
+ * @return String of this object's hash
+ */
+ public String asHex() {
+ return asHex(this .Final());
+ }
+
+ /**
+ * One-stop md5 string encrypting.
+ */
+
+ public static String md5crypt(String input) {
+ MD5 md5 = new MD5();
+ md5.Init();
+ md5.Update(input);
+ return md5.asHex();
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5Crypt.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5Crypt.java
new file mode 100644
index 00000000..443053b2
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/MD5Crypt.java
@@ -0,0 +1,341 @@
+package com.gluster.storage.management.core.utils;
+
+
+/*------------------------------------------------------------------------------
+ class
+ MD5Crypt
+
+ ------------------------------------------------------------------------------*/
+
+/**
+ *
This class defines a method,
+ * {@link MD5Crypt#crypt(java.lang.String, java.lang.String) crypt()}, which
+ * takes a password and a salt string and generates an OpenBSD/FreeBSD/Linux-compatible
+ * md5-encoded password entry.
+ *
+ *
Created: 3 November 1999
+ *
Release: $Name: $
+ *
Version: $Revision: 1.1 $
+ *
Last Mod Date: $Date: 2004/07/12 13:35:20 $
+ *
Java Code By: Jonathan Abbey, jonabbey@arlut.utexas.edu
+ *
Original C Version:
+ * ----------------------------------------------------------------------------
+ * "THE BEER-WARE LICENSE" (Revision 42):
+ * wrote this file. As long as you retain this notice you
+ * can do whatever you want with this stuff. If we meet some day, and you think
+ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
+ * ----------------------------------------------------------------------------
+ *
+ *
+ * @author Jonathan Abbey
+ */
+
+public final class MD5Crypt {
+
+ /**
+ *
+ * Command line test rig.
+ *
+ */
+
+ static public void main(String argv[]) {
+ if ((argv.length < 1) || (argv.length > 3)) {
+ System.err
+ .println("Usage: MD5Crypt [-apache] password salt");
+ System.exit(1);
+ }
+
+ if (argv.length == 3) {
+ System.err.println(MD5Crypt.apacheCrypt(argv[1], argv[2]));
+ } else if (argv.length == 2) {
+ System.err.println(MD5Crypt.crypt(argv[0], argv[1]));
+ } else {
+ System.err.println(MD5Crypt.crypt(argv[0]));
+ }
+
+ System.exit(0);
+ }
+
+ static private final String SALTCHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
+
+ static private final String itoa64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+
+ static private final String to64(long v, int size) {
+ StringBuffer result = new StringBuffer();
+
+ while (--size >= 0) {
+ result.append(itoa64.charAt((int) (v & 0x3f)));
+ v >>>= 6;
+ }
+
+ return result.toString();
+ }
+
+ static private final void clearbits(byte bits[]) {
+ for (int i = 0; i < bits.length; i++) {
+ bits[i] = 0;
+ }
+ }
+
+ /**
+ * convert an encoded unsigned byte value into a int
+ * with the unsigned value.
+ */
+
+ static private final int bytes2u(byte inp) {
+ return (int) inp & 0xff;
+ }
+
+ /**
+ *
This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible
+ * md5-encoded password hash from a plaintext password and a
+ * salt.
+ *
+ *
The resulting string will be in the form '$1$<salt>$<hashed mess>
+ *
+ * @param password Plaintext password
+ *
+ * @return An OpenBSD/FreeBSD/Linux-compatible md5-hashed password field.
+ */
+
+ static public final String crypt(String password) {
+ StringBuffer salt = new StringBuffer();
+ java.util.Random randgen = new java.util.Random();
+
+ /* -- */
+
+ while (salt.length() < 8) {
+ int index = (int) (randgen.nextFloat() * SALTCHARS.length());
+ salt.append(SALTCHARS.substring(index, index + 1));
+ }
+
+ return MD5Crypt.crypt(password, salt.toString());
+ }
+
+ /**
+ *
This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible
+ * md5-encoded password hash from a plaintext password and a
+ * salt.
+ *
+ *
The resulting string will be in the form '$1$<salt>$<hashed mess>
+ *
+ * @param password Plaintext password
+ * @param salt A short string to use to randomize md5. May start with $1$, which
+ * will be ignored. It is explicitly permitted to pass a pre-existing
+ * MD5Crypt'ed password entry as the salt. crypt() will strip the salt
+ * chars out properly.
+ *
+ * @return An OpenBSD/FreeBSD/Linux-compatible md5-hashed password field.
+ */
+
+ static public final String crypt(String password, String salt) {
+ return MD5Crypt.crypt(password, salt, "$1$");
+ }
+
+ /**
+ *
This method generates an Apache MD5 compatible
+ * md5-encoded password hash from a plaintext password and a
+ * salt.
+ *
+ *
The resulting string will be in the form '$apr1$<salt>$<hashed mess>
+ *
+ * @param password Plaintext password
+ *
+ * @return An Apache-compatible md5-hashed password string.
+ */
+
+ static public final String apacheCrypt(String password) {
+ StringBuffer salt = new StringBuffer();
+ java.util.Random randgen = new java.util.Random();
+
+ /* -- */
+
+ while (salt.length() < 8) {
+ int index = (int) (randgen.nextFloat() * SALTCHARS.length());
+ salt.append(SALTCHARS.substring(index, index + 1));
+ }
+
+ return MD5Crypt.apacheCrypt(password, salt.toString());
+ }
+
+ /**
+ *
This method actually generates an Apache MD5 compatible
+ * md5-encoded password hash from a plaintext password and a
+ * salt.
+ *
+ *
The resulting string will be in the form '$apr1$<salt>$<hashed mess>
+ *
+ * @param password Plaintext password
+ * @param salt A short string to use to randomize md5. May start with $apr1$, which
+ * will be ignored. It is explicitly permitted to pass a pre-existing
+ * MD5Crypt'ed password entry as the salt. crypt() will strip the salt
+ * chars out properly.
+ *
+ * @return An Apache-compatible md5-hashed password string.
+ */
+
+ static public final String apacheCrypt(String password, String salt) {
+ return MD5Crypt.crypt(password, salt, "$apr1$");
+ }
+
+ /**
+ *
This method actually generates md5-encoded password hash from
+ * a plaintext password, a salt, and a magic string.
+ *
+ *
There are two magic strings that make sense to use here.. '$1$' is the
+ * magic string used by the FreeBSD/Linux/OpenBSD MD5Crypt algorithm, and
+ * '$apr1$' is the magic string used by the Apache MD5Crypt algorithm.
+ *
+ *
The resulting string will be in the form '<magic><salt>$<hashed mess>
+ *
+ * @param password Plaintext password @param salt A short string to
+ * use to randomize md5. May start with the magic string, which
+ * will be ignored. It is explicitly permitted to pass a
+ * pre-existing MD5Crypt'ed password entry as the salt. crypt()
+ * will strip the salt chars out properly.
+ *
+ * @return An md5-hashed password string.
+ */
+
+ static public final String crypt(String password, String salt,
+ String magic) {
+ /* This string is magic for this algorithm. Having it this way,
+ * we can get get better later on */
+
+ byte finalState[];
+ MD5 ctx, ctx1;
+ long l;
+
+ /* -- */
+
+ /* Refine the Salt first */
+
+ /* If it starts with the magic string, then skip that */
+
+ if (salt.startsWith(magic)) {
+ salt = salt.substring(magic.length());
+ }
+
+ /* It stops at the first '$', max 8 chars */
+
+ if (salt.indexOf('$') != -1) {
+ salt = salt.substring(0, salt.indexOf('$'));
+ }
+
+ if (salt.length() > 8) {
+ salt = salt.substring(0, 8);
+ }
+
+ ctx = new MD5();
+
+ ctx.Update(password); // The password first, since that is what is most unknown
+ ctx.Update(magic); // Then our magic string
+ ctx.Update(salt); // Then the raw salt
+
+ /* Then just as many characters of the MD5(pw,salt,pw) */
+
+ ctx1 = new MD5();
+ ctx1.Update(password);
+ ctx1.Update(salt);
+ ctx1.Update(password);
+ finalState = ctx1.Final();
+
+ for (int pl = password.length(); pl > 0; pl -= 16) {
+ ctx.Update(finalState, pl > 16 ? 16 : pl);
+ }
+
+ /* the original code claimed that finalState was being cleared
+ to keep dangerous bits out of memory, but doing this is also
+ required in order to get the right output. */
+
+ clearbits(finalState);
+
+ /* Then something really weird... */
+
+ for (int i = password.length(); i != 0; i >>>= 1) {
+ if ((i & 1) != 0) {
+ ctx.Update(finalState, 1);
+ } else {
+ ctx.Update(password.getBytes(), 1);
+ }
+ }
+
+ finalState = ctx.Final();
+
+ /*
+ * and now, just to make sure things don't run too fast
+ * On a 60 Mhz Pentium this takes 34 msec, so you would
+ * need 30 seconds to build a 1000 entry dictionary...
+ *
+ * (The above timings from the C version)
+ */
+
+ for (int i = 0; i < 1000; i++) {
+ ctx1 = new MD5();
+
+ if ((i & 1) != 0) {
+ ctx1.Update(password);
+ } else {
+ ctx1.Update(finalState, 16);
+ }
+
+ if ((i % 3) != 0) {
+ ctx1.Update(salt);
+ }
+
+ if ((i % 7) != 0) {
+ ctx1.Update(password);
+ }
+
+ if ((i & 1) != 0) {
+ ctx1.Update(finalState, 16);
+ } else {
+ ctx1.Update(password);
+ }
+
+ finalState = ctx1.Final();
+ }
+
+ /* Now make the output string */
+
+ StringBuffer result = new StringBuffer();
+
+ result.append(magic);
+ result.append(salt);
+ result.append("$");
+
+ l = (bytes2u(finalState[0]) << 16)
+ | (bytes2u(finalState[6]) << 8)
+ | bytes2u(finalState[12]);
+ result.append(to64(l, 4));
+
+ l = (bytes2u(finalState[1]) << 16)
+ | (bytes2u(finalState[7]) << 8)
+ | bytes2u(finalState[13]);
+ result.append(to64(l, 4));
+
+ l = (bytes2u(finalState[2]) << 16)
+ | (bytes2u(finalState[8]) << 8)
+ | bytes2u(finalState[14]);
+ result.append(to64(l, 4));
+
+ l = (bytes2u(finalState[3]) << 16)
+ | (bytes2u(finalState[9]) << 8)
+ | bytes2u(finalState[15]);
+ result.append(to64(l, 4));
+
+ l = (bytes2u(finalState[4]) << 16)
+ | (bytes2u(finalState[10]) << 8)
+ | bytes2u(finalState[5]);
+ result.append(to64(l, 4));
+
+ l = bytes2u(finalState[11]);
+ result.append(to64(l, 2));
+
+ /* Don't leave anything around in vm they could use. */
+ clearbits(finalState);
+
+ return result.toString();
+ }
+}
+
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/NumberUtil.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/NumberUtil.java
new file mode 100644
index 00000000..fb32121e
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/NumberUtil.java
@@ -0,0 +1,12 @@
+package com.gluster.storage.management.core.utils;
+
+import java.text.NumberFormat;
+
+public class NumberUtil {
+ public static final String formatNumber(double num) {
+ NumberFormat formatter = NumberFormat.getNumberInstance();
+ formatter.setMinimumFractionDigits(2);
+ formatter.setMaximumFractionDigits(2);
+ return formatter.format(num);
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessResult.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessResult.java
new file mode 100644
index 00000000..32cd53ba
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessResult.java
@@ -0,0 +1,64 @@
+/**
+ * Copyright (c) 2010 Gluster, Inc.
+ * This file is part of GlusterFS.
+ *
+ * Gluster Storage Platform is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published
+ * by the Free Software Foundation; either version 3 of the License,
+ * or (at your option) any later version.
+ *
+ * GlusterFS is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see
+ * .
+ */
+package com.gluster.storage.management.core.utils;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * Represents the result of a command execution in a separate process.
+ * Consists of the "exit status" of the process and output from the process.
+ * The output includes stdout as well as stderr streams
+ */
+@XmlRootElement
+public class ProcessResult {
+
+ public static final int SUCCESS = 0;
+ private int exitValue;
+ private String output;
+
+ // Required for JAXB de-serialization
+ public ProcessResult() {
+
+ }
+
+ public ProcessResult(int exitValue, String output) {
+ this.exitValue = exitValue;
+ this.output = output;
+ }
+
+ public int getExitValue() {
+ return exitValue;
+ }
+
+ public void setExitValue(int exitValue) {
+ this.exitValue = exitValue;
+ }
+
+ public String getOutput() {
+ return output;
+ }
+
+ public void setOutput(String output) {
+ this.output = output;
+ }
+
+ public boolean isSuccess() {
+ return exitValue == SUCCESS;
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessUtil.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessUtil.java
new file mode 100644
index 00000000..2ec8e8a4
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/ProcessUtil.java
@@ -0,0 +1,97 @@
+/**
+ * Copyright (c) 2010 Gluster, Inc.
+ * This file is part of GlusterFS.
+ *
+ * GlusterFS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published
+ * by the Free Software Foundation; either version 3 of the License,
+ * or (at your option) any later version.
+ *
+ * GlusterFS is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see
+ * .
+ */
+package com.gluster.storage.management.core.utils;
+
+import static com.gluster.storage.management.core.constants.CoreConstants.NEWLINE;
+
+import java.io.BufferedReader;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.util.ArrayList;
+import java.util.List;
+
+import com.gluster.storage.management.core.exceptions.GlusterRuntimeException;
+
+/**
+ * Utility class for creating processes (foreground/background) with given
+ * command and checking the output/exit status
+ */
+public class ProcessUtil {
+
+ private static final ProcessUtil instance = new ProcessUtil();
+
+ public ProcessResult executeCommand(List command) {
+ return executeCommand(true, command);
+ }
+
+ /**
+ * Executes given command in a separate process in FOREGROUND
+ * @param command
+ * @return {@link ProcessResult} object
+ */
+ public ProcessResult executeCommand(String... command) {
+ ArrayList commandList = new ArrayList();
+ for (String part : command) {
+ commandList.add(part);
+ }
+ return executeCommand(commandList);
+ }
+
+ /**
+ * Executes given command in foreground/background
+ * @param command
+ * @param runInForeground Boolean flag indicating whether the command should
+ * be executed in foreground
+ * @return {@link ProcessResult} object
+ */
+ public ProcessResult executeCommand(boolean runInForeground, List command) {
+ StringBuilder output = new StringBuilder();
+ try {
+ Process process = new ProcessBuilder(command).redirectErrorStream(true).start();
+
+ if (runInForeground) {
+ process.waitFor(); // Wait for process to finish
+
+ InputStream is = process.getInputStream();
+ InputStreamReader isr = new InputStreamReader(is);
+ BufferedReader br = new BufferedReader(isr);
+ String line;
+
+ while ((line = br.readLine()) != null) {
+ output.append(line);
+ output.append(NEWLINE);
+ }
+ } else {
+ output.append("Command [");
+ output.append(command);
+ output.append("] triggerred in background.");
+ }
+
+ return new ProcessResult(process.exitValue(), output.toString());
+ } catch (Throwable e) {
+ throw new GlusterRuntimeException("Exception while executing command [" + command + "]", e);
+ }
+ }
+
+ public static void main(String args[]) {
+ ProcessResult result = new ProcessUtil().executeCommand("ls", "-lrt", "/");
+ System.out.println(result.getExitValue());
+ System.out.println(result.getOutput());
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/StringUtils.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/StringUtils.java
new file mode 100644
index 00000000..356fe007
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/StringUtils.java
@@ -0,0 +1,10 @@
+package com.gluster.storage.management.core.utils;
+
+public class StringUtils {
+ public static boolean filterString(String sourceString,
+ String filterString, boolean caseSensitive) {
+ return caseSensitive ? sourceString.contains(filterString)
+ : sourceString.toLowerCase().contains(
+ filterString.toLowerCase());
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/UnixCrypt.java b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/UnixCrypt.java
new file mode 100644
index 00000000..693ce621
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/UnixCrypt.java
@@ -0,0 +1,684 @@
+/**
+ * This class provides us with the ability to encrypt passwords when sent
+ * over the network stream
+ *
+ *
Contains static methods to encrypt and compare
+ * passwords with Unix encrypted passwords.
Encrypt a password given the cleartext password and a "salt".
+ * @param salt A two-character string representing the salt used to
+ * iterate the encryption engine in lots of different ways. If you
+ * are generating a new encryption then this value should be
+ * randomised.
+ * @param original The password to be encrypted.
+ * @return A string consisting of the 2-character salt followed by the
+ * encrypted password.
+ */
+ public static final String crypt(String salt, String original)
+ {
+ while(salt.length() < 2)
+ salt += "A";
+
+ StringBuffer buffer = new StringBuffer(" ");
+
+ char charZero = salt.charAt(0);
+ char charOne = salt.charAt(1);
+
+ buffer.setCharAt(0, charZero);
+ buffer.setCharAt(1, charOne);
+
+ int Eswap0 = con_salt[(int)charZero];
+ int Eswap1 = con_salt[(int)charOne] << 4;
+
+ byte key[] = new byte[8];
+
+ for(int i = 0; i < key.length; i ++)
+ key[i] = (byte)0;
+
+ for(int i = 0; i < key.length && i < original.length(); i ++)
+ {
+ int iChar = (int)original.charAt(i);
+
+ key[i] = (byte)(iChar << 1);
+ }
+
+ int schedule[] = des_set_key(key);
+ int out[] = body(schedule, Eswap0, Eswap1);
+
+ byte b[] = new byte[9];
+
+ intToFourBytes(out[0], b, 0);
+ intToFourBytes(out[1], b, 4);
+ b[8] = 0;
+
+ for(int i = 2, y = 0, u = 0x80; i < 13; i ++)
+ {
+ for(int j = 0, c = 0; j < 6; j ++)
+ {
+ c <<= 1;
+
+ if(((int)b[y] & u) != 0)
+ c |= 1;
+
+ u >>>= 1;
+
+ if(u == 0)
+ {
+ y++;
+ u = 0x80;
+ }
+ buffer.setCharAt(i, (char)cov_2char[c]);
+ }
+ }
+ return(buffer.toString());
+ }
+
+ /**
+ *
Encrypt a password given the cleartext password. This method
+ * generates a random salt using the 'java.util.Random' class.
+ * @param original The password to be encrypted.
+ * @return A string consisting of the 2-character salt followed by the
+ * encrypted password.
+ */
+ public static final String crypt(String original)
+ {
+ java.util.Random randomGenerator = new java.util.Random();
+ int numSaltChars = saltChars.length;
+ String salt;
+
+ salt = (new StringBuffer()).append(saltChars[Math.abs(randomGenerator.nextInt()) % numSaltChars]).append(saltChars[Math.abs(randomGenerator.nextInt()) % numSaltChars]).toString();
+
+ return crypt(salt, original);
+ }
+
+ /**
+ *
Check that enteredPassword encrypts to
+ * encryptedPassword.
+ * @param encryptedPassword The encryptedPassword. The first
+ * two characters are assumed to be the salt. This string would
+ * be the same as one found in a Unix /etc/passwd file.
+ * @param enteredPassword The password as entered by the user (or
+ * otherwise aquired).
+ * @return true if the password should be considered correct.
+ */
+ public final static boolean matches(String encryptedPassword, String enteredPassword)
+ {
+ String salt = encryptedPassword.substring(0, 3);
+ String newCrypt = crypt(salt, enteredPassword);
+
+ return newCrypt.equals(encryptedPassword);
+ }
+
+ public static void main(String args[]) {
+ String encryptedPassword = "$6$BFpYzdUp$RH1M4rlc/.dXSsNJQTklT9z8lKQFwRYh7sSoFTFFgqdC596gB4Kvzh/ZlusL0EU6E9tpW8SnDOYlqPph8NBBP.";
+ String salt = encryptedPassword.substring(0, 3);
+ String newCrypt = crypt("BF", "gluster");
+ System.out.println(newCrypt);
+
+
+ System.out.println("$6$BFpYzdUp$RH1M4rlc/.dXSsNJQTklT9z8lKQFwRYh7sSoFTFFgqdC596gB4Kvzh/ZlusL0EU6E9tpW8SnDOYlqPph8NBBP.");
+ }
+}
diff --git a/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/sample_jaas.config b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/sample_jaas.config
new file mode 100644
index 00000000..c9e3878c
--- /dev/null
+++ b/com.gluster.storage.management.core/src/com/gluster/storage/management/core/utils/sample_jaas.config
@@ -0,0 +1,3 @@
+Sample {
+ sample.module.SampleLoginModule required debug=true;
+};
diff --git a/com.gluster.storage.management.gui.feature.webstart/.project b/com.gluster.storage.management.gui.feature.webstart/.project
new file mode 100644
index 00000000..03adbe4c
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature.webstart/.project
@@ -0,0 +1,17 @@
+
+
+ com.gluster.storage.management.gui.feature.webstart
+
+
+
+
+
+ org.eclipse.pde.FeatureBuilder
+
+
+
+
+
+ org.eclipse.pde.FeatureNature
+
+
diff --git a/com.gluster.storage.management.gui.feature.webstart/build.properties b/com.gluster.storage.management.gui.feature.webstart/build.properties
new file mode 100644
index 00000000..322a3114
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature.webstart/build.properties
@@ -0,0 +1,2 @@
+#bin.includes = feature.xml
+root=rootfiles
diff --git a/com.gluster.storage.management.gui.feature.webstart/feature.xml b/com.gluster.storage.management.gui.feature.webstart/feature.xml
new file mode 100644
index 00000000..4d43f5c0
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature.webstart/feature.xml
@@ -0,0 +1,236 @@
+
+
+
+
+ [Enter Feature Description here.]
+
+
+
+ [Enter Copyright Description here.]
+
+
+
+ [Enter License Description here.]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.gui.feature.webstart/rootfiles/gluster-management-console.jnlp b/com.gluster.storage.management.gui.feature.webstart/rootfiles/gluster-management-console.jnlp
new file mode 100644
index 00000000..13562315
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature.webstart/rootfiles/gluster-management-console.jnlp
@@ -0,0 +1,35 @@
+
+
+
+ Gluster Management Console
+ Gluster Inc.
+
+ Gluster Management Console
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -nosplash
+
+
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui.feature.webstart/rootfiles/index.html b/com.gluster.storage.management.gui.feature.webstart/rootfiles/index.html
new file mode 100644
index 00000000..70f47279
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature.webstart/rootfiles/index.html
@@ -0,0 +1,8 @@
+
+
+Gluster Storage Platform
+
+
+Gluster Storage Platform
+
+
diff --git a/com.gluster.storage.management.gui.feature.webstart/rootfiles/splash.bmp b/com.gluster.storage.management.gui.feature.webstart/rootfiles/splash.bmp
new file mode 100644
index 00000000..059c28f9
Binary files /dev/null and b/com.gluster.storage.management.gui.feature.webstart/rootfiles/splash.bmp differ
diff --git a/com.gluster.storage.management.gui.feature/.project b/com.gluster.storage.management.gui.feature/.project
new file mode 100644
index 00000000..c93780b5
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature/.project
@@ -0,0 +1,17 @@
+
+
+ com.gluster.storage.management.gui.feature
+
+
+
+
+
+ org.eclipse.pde.FeatureBuilder
+
+
+
+
+
+ org.eclipse.pde.FeatureNature
+
+
diff --git a/com.gluster.storage.management.gui.feature/build.properties b/com.gluster.storage.management.gui.feature/build.properties
new file mode 100644
index 00000000..64f93a9f
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature/build.properties
@@ -0,0 +1 @@
+bin.includes = feature.xml
diff --git a/com.gluster.storage.management.gui.feature/feature.xml b/com.gluster.storage.management.gui.feature/feature.xml
new file mode 100644
index 00000000..e8521d13
--- /dev/null
+++ b/com.gluster.storage.management.gui.feature/feature.xml
@@ -0,0 +1,735 @@
+
+
+
+
+ [Enter Feature Description here.]
+
+
+
+ [Enter Copyright Description here.]
+
+
+
+ [Enter License Description here.]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.gui/.classpath b/com.gluster.storage.management.gui/.classpath
new file mode 100644
index 00000000..f9a8d357
--- /dev/null
+++ b/com.gluster.storage.management.gui/.classpath
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.gui/.project b/com.gluster.storage.management.gui/.project
new file mode 100644
index 00000000..84ab78e4
--- /dev/null
+++ b/com.gluster.storage.management.gui/.project
@@ -0,0 +1,28 @@
+
+
+ com.gluster.storage.management.gui
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.pde.ManifestBuilder
+
+
+
+
+ org.eclipse.pde.SchemaBuilder
+
+
+
+
+
+ org.eclipse.pde.PluginNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/com.gluster.storage.management.gui/.settings/org.eclipse.jdt.core.prefs b/com.gluster.storage.management.gui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..abf7cf5a
--- /dev/null
+++ b/com.gluster.storage.management.gui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Thu Nov 11 15:40:30 IST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/com.gluster.storage.management.gui/META-INF/MANIFEST.MF b/com.gluster.storage.management.gui/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..7c0ba23a
--- /dev/null
+++ b/com.gluster.storage.management.gui/META-INF/MANIFEST.MF
@@ -0,0 +1,29 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: glustersp-gui
+Bundle-SymbolicName: com.gluster.storage.management.gui;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: com.gluster.storage.management.gui.Activator
+Bundle-Vendor: Gluster
+Require-Bundle: org.eclipse.ui;bundle-version="3.6.1",
+ org.eclipse.core.runtime;bundle-version="3.6.0",
+ org.eclipse.ui.forms;bundle-version="3.5.2",
+ org.eclipse.rcp;bundle-version="3.6.0",
+ com.gluster.storage.management.core;bundle-version="1.0.0",
+ com.gluster.storage.management.client;bundle-version="1.0.0",
+ org.eclipse.core.databinding;bundle-version="1.3.100",
+ org.eclipse.jface.databinding;bundle-version="1.4.0",
+ org.eclipse.core.databinding.property;bundle-version="1.3.0",
+ org.eclipse.core.databinding.beans;bundle-version="1.2.100",
+ org.eclipse.birt.chart.engine;bundle-version="2.6.1",
+ org.eclipse.birt.chart.engine.extension;bundle-version="2.6.1",
+ org.eclipse.birt.chart.device.extension;bundle-version="2.6.1",
+ org.eclipse.birt.chart.device.swt;bundle-version="2.6.1",
+ com.ibm.icu;bundle-version="4.2.1",
+ com.richclientgui.rcptoolbox;bundle-version="1.0.5",
+ org.eclipse.core.resources
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: lib/jersey-client-1.4.jar,
+ lib/jersey-core-1.4.jar,
+ .
diff --git a/com.gluster.storage.management.gui/build.properties b/com.gluster.storage.management.gui/build.properties
new file mode 100644
index 00000000..83944c06
--- /dev/null
+++ b/com.gluster.storage.management.gui/build.properties
@@ -0,0 +1,17 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ icons/,\
+ product_lg.gif,\
+ splash.bmp,\
+ lib/jersey-client-1.4.jar,\
+ lib/jersey-core-1.4.jar,\
+ splash/,\
+ images/,\
+ plugin.xml,\
+ preferences.ini
+src.includes = icons/,\
+ splash.bmp,\
+ images/,\
+ preferences.ini
diff --git a/com.gluster.storage.management.gui/icons/arrow-down.png b/com.gluster.storage.management.gui/icons/arrow-down.png
new file mode 100644
index 00000000..7f23e3f4
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/arrow-down.png differ
diff --git a/com.gluster.storage.management.gui/icons/arrow-up.png b/com.gluster.storage.management.gui/icons/arrow-up.png
new file mode 100644
index 00000000..b8ad3050
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/arrow-up.png differ
diff --git a/com.gluster.storage.management.gui/icons/cluster.png b/com.gluster.storage.management.gui/icons/cluster.png
new file mode 100644
index 00000000..c9348a21
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/cluster.png differ
diff --git a/com.gluster.storage.management.gui/icons/disk-migrate.png b/com.gluster.storage.management.gui/icons/disk-migrate.png
new file mode 100644
index 00000000..2de348dc
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/disk-migrate.png differ
diff --git a/com.gluster.storage.management.gui/icons/disk-uninitialized.png b/com.gluster.storage.management.gui/icons/disk-uninitialized.png
new file mode 100644
index 00000000..b982d118
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/disk-uninitialized.png differ
diff --git a/com.gluster.storage.management.gui/icons/disk.png b/com.gluster.storage.management.gui/icons/disk.png
new file mode 100644
index 00000000..99d532e8
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/disk.png differ
diff --git a/com.gluster.storage.management.gui/icons/disks.png b/com.gluster.storage.management.gui/icons/disks.png
new file mode 100644
index 00000000..fc5a52f5
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/disks.png differ
diff --git a/com.gluster.storage.management.gui/icons/folder.png b/com.gluster.storage.management.gui/icons/folder.png
new file mode 100644
index 00000000..784e8fa4
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/folder.png differ
diff --git a/com.gluster.storage.management.gui/icons/gluster_icon.png b/com.gluster.storage.management.gui/icons/gluster_icon.png
new file mode 100644
index 00000000..f92e472d
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/gluster_icon.png differ
diff --git a/com.gluster.storage.management.gui/icons/group.png b/com.gluster.storage.management.gui/icons/group.png
new file mode 100644
index 00000000..7fb4e1f1
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/group.png differ
diff --git a/com.gluster.storage.management.gui/icons/gsn.png b/com.gluster.storage.management.gui/icons/gsn.png
new file mode 100644
index 00000000..68f21d30
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/gsn.png differ
diff --git a/com.gluster.storage.management.gui/icons/mail.ico b/com.gluster.storage.management.gui/icons/mail.ico
new file mode 100644
index 00000000..b0000611
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/mail.ico differ
diff --git a/com.gluster.storage.management.gui/icons/minus-white.png b/com.gluster.storage.management.gui/icons/minus-white.png
new file mode 100644
index 00000000..8efd5d33
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/minus-white.png differ
diff --git a/com.gluster.storage.management.gui/icons/network-interface.png b/com.gluster.storage.management.gui/icons/network-interface.png
new file mode 100644
index 00000000..24ca7370
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/network-interface.png differ
diff --git a/com.gluster.storage.management.gui/icons/network-interfaces.png b/com.gluster.storage.management.gui/icons/network-interfaces.png
new file mode 100644
index 00000000..752968bb
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/network-interfaces.png differ
diff --git a/com.gluster.storage.management.gui/icons/network-interfaces1.png b/com.gluster.storage.management.gui/icons/network-interfaces1.png
new file mode 100644
index 00000000..af438028
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/network-interfaces1.png differ
diff --git a/com.gluster.storage.management.gui/icons/plus-white.png b/com.gluster.storage.management.gui/icons/plus-white.png
new file mode 100644
index 00000000..c765946e
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/plus-white.png differ
diff --git a/com.gluster.storage.management.gui/icons/preferences.png b/com.gluster.storage.management.gui/icons/preferences.png
new file mode 100644
index 00000000..7b93eb05
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/preferences.png differ
diff --git a/com.gluster.storage.management.gui/icons/progress-bar.png b/com.gluster.storage.management.gui/icons/progress-bar.png
new file mode 100644
index 00000000..c7db00ae
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/progress-bar.png differ
diff --git a/com.gluster.storage.management.gui/icons/question.png b/com.gluster.storage.management.gui/icons/question.png
new file mode 100644
index 00000000..30a47032
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/question.png differ
diff --git a/com.gluster.storage.management.gui/icons/sample.gif b/com.gluster.storage.management.gui/icons/sample.gif
new file mode 100644
index 00000000..34fb3c9d
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/sample.gif differ
diff --git a/com.gluster.storage.management.gui/icons/sample.icns b/com.gluster.storage.management.gui/icons/sample.icns
new file mode 100644
index 00000000..1e92ccce
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/sample.icns differ
diff --git a/com.gluster.storage.management.gui/icons/sample2.gif b/com.gluster.storage.management.gui/icons/sample2.gif
new file mode 100644
index 00000000..252d7ebc
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/sample2.gif differ
diff --git a/com.gluster.storage.management.gui/icons/sample3.gif b/com.gluster.storage.management.gui/icons/sample3.gif
new file mode 100644
index 00000000..b949ac94
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/sample3.gif differ
diff --git a/com.gluster.storage.management.gui/icons/search.png b/com.gluster.storage.management.gui/icons/search.png
new file mode 100644
index 00000000..b4b23129
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/search.png differ
diff --git a/com.gluster.storage.management.gui/icons/server-add-big.png b/com.gluster.storage.management.gui/icons/server-add-big.png
new file mode 100644
index 00000000..d96b8175
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/server-add-big.png differ
diff --git a/com.gluster.storage.management.gui/icons/server-add.png b/com.gluster.storage.management.gui/icons/server-add.png
new file mode 100644
index 00000000..db604ee3
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/server-add.png differ
diff --git a/com.gluster.storage.management.gui/icons/server-remove.png b/com.gluster.storage.management.gui/icons/server-remove.png
new file mode 100644
index 00000000..5e9b2683
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/server-remove.png differ
diff --git a/com.gluster.storage.management.gui/icons/server.png b/com.gluster.storage.management.gui/icons/server.png
new file mode 100644
index 00000000..9bc37dce
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/server.png differ
diff --git a/com.gluster.storage.management.gui/icons/servers.png b/com.gluster.storage.management.gui/icons/servers.png
new file mode 100644
index 00000000..b18a74d9
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/servers.png differ
diff --git a/com.gluster.storage.management.gui/icons/star-small.png b/com.gluster.storage.management.gui/icons/star-small.png
new file mode 100644
index 00000000..fef14263
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/star-small.png differ
diff --git a/com.gluster.storage.management.gui/icons/status-offline-circle.png b/com.gluster.storage.management.gui/icons/status-offline-circle.png
new file mode 100644
index 00000000..20d6f5ea
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/status-offline-circle.png differ
diff --git a/com.gluster.storage.management.gui/icons/status-offline-small.png b/com.gluster.storage.management.gui/icons/status-offline-small.png
new file mode 100644
index 00000000..39d47690
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/status-offline-small.png differ
diff --git a/com.gluster.storage.management.gui/icons/status-offline.png b/com.gluster.storage.management.gui/icons/status-offline.png
new file mode 100644
index 00000000..6b9fa6dd
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/status-offline.png differ
diff --git a/com.gluster.storage.management.gui/icons/status-online-circle.png b/com.gluster.storage.management.gui/icons/status-online-circle.png
new file mode 100644
index 00000000..210b1a6c
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/status-online-circle.png differ
diff --git a/com.gluster.storage.management.gui/icons/status-online-small.png b/com.gluster.storage.management.gui/icons/status-online-small.png
new file mode 100644
index 00000000..8e87f2e5
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/status-online-small.png differ
diff --git a/com.gluster.storage.management.gui/icons/status-online.png b/com.gluster.storage.management.gui/icons/status-online.png
new file mode 100644
index 00000000..2414885b
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/status-online.png differ
diff --git a/com.gluster.storage.management.gui/icons/stop.png b/com.gluster.storage.management.gui/icons/stop.png
new file mode 100644
index 00000000..0cfd5859
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/stop.png differ
diff --git a/com.gluster.storage.management.gui/icons/ui-check-box-mix.png b/com.gluster.storage.management.gui/icons/ui-check-box-mix.png
new file mode 100644
index 00000000..3c961711
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/ui-check-box-mix.png differ
diff --git a/com.gluster.storage.management.gui/icons/ui-check-box-uncheck.png b/com.gluster.storage.management.gui/icons/ui-check-box-uncheck.png
new file mode 100644
index 00000000..ba447358
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/ui-check-box-uncheck.png differ
diff --git a/com.gluster.storage.management.gui/icons/ui-check-box.png b/com.gluster.storage.management.gui/icons/ui-check-box.png
new file mode 100644
index 00000000..07f3522a
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/ui-check-box.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-create-big.png b/com.gluster.storage.management.gui/icons/volume-create-big.png
new file mode 100644
index 00000000..231bae5b
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-create-big.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-create.png b/com.gluster.storage.management.gui/icons/volume-create.png
new file mode 100644
index 00000000..9c8a9da4
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-create.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-delete.png b/com.gluster.storage.management.gui/icons/volume-delete.png
new file mode 100644
index 00000000..86f7fbc2
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-delete.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-edit.png b/com.gluster.storage.management.gui/icons/volume-edit.png
new file mode 100644
index 00000000..291bfc76
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-edit.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-rebalance.png b/com.gluster.storage.management.gui/icons/volume-rebalance.png
new file mode 100644
index 00000000..e213cd5b
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-rebalance.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-start.png b/com.gluster.storage.management.gui/icons/volume-start.png
new file mode 100644
index 00000000..aace63ad
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-start.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-stop-1.png b/com.gluster.storage.management.gui/icons/volume-stop-1.png
new file mode 100644
index 00000000..0cfd5859
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-stop-1.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume-stop.png b/com.gluster.storage.management.gui/icons/volume-stop.png
new file mode 100644
index 00000000..7af3a518
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume-stop.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume.png b/com.gluster.storage.management.gui/icons/volume.png
new file mode 100644
index 00000000..46b7564a
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume.png differ
diff --git a/com.gluster.storage.management.gui/icons/volume1.png b/com.gluster.storage.management.gui/icons/volume1.png
new file mode 100644
index 00000000..5e23dbc8
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volume1.png differ
diff --git a/com.gluster.storage.management.gui/icons/volumes.png b/com.gluster.storage.management.gui/icons/volumes.png
new file mode 100644
index 00000000..80dfa195
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volumes.png differ
diff --git a/com.gluster.storage.management.gui/icons/volumes1.png b/com.gluster.storage.management.gui/icons/volumes1.png
new file mode 100644
index 00000000..448e46fd
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volumes1.png differ
diff --git a/com.gluster.storage.management.gui/icons/volumes2.png b/com.gluster.storage.management.gui/icons/volumes2.png
new file mode 100644
index 00000000..0905f933
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volumes2.png differ
diff --git a/com.gluster.storage.management.gui/icons/volumes3.png b/com.gluster.storage.management.gui/icons/volumes3.png
new file mode 100644
index 00000000..7e90d397
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/volumes3.png differ
diff --git a/com.gluster.storage.management.gui/icons/world.png b/com.gluster.storage.management.gui/icons/world.png
new file mode 100644
index 00000000..68f21d30
Binary files /dev/null and b/com.gluster.storage.management.gui/icons/world.png differ
diff --git a/com.gluster.storage.management.gui/images/gauge.png b/com.gluster.storage.management.gui/images/gauge.png
new file mode 100644
index 00000000..6f5764ea
Binary files /dev/null and b/com.gluster.storage.management.gui/images/gauge.png differ
diff --git a/com.gluster.storage.management.gui/images/gauge_small.png b/com.gluster.storage.management.gui/images/gauge_small.png
new file mode 100644
index 00000000..71e424fe
Binary files /dev/null and b/com.gluster.storage.management.gui/images/gauge_small.png differ
diff --git a/com.gluster.storage.management.gui/images/progress_image_empty.png b/com.gluster.storage.management.gui/images/progress_image_empty.png
new file mode 100644
index 00000000..590097ad
Binary files /dev/null and b/com.gluster.storage.management.gui/images/progress_image_empty.png differ
diff --git a/com.gluster.storage.management.gui/images/progress_image_filled_danger.png b/com.gluster.storage.management.gui/images/progress_image_filled_danger.png
new file mode 100644
index 00000000..97704230
Binary files /dev/null and b/com.gluster.storage.management.gui/images/progress_image_filled_danger.png differ
diff --git a/com.gluster.storage.management.gui/images/progress_image_filled_safe.png b/com.gluster.storage.management.gui/images/progress_image_filled_safe.png
new file mode 100644
index 00000000..ae4e3c69
Binary files /dev/null and b/com.gluster.storage.management.gui/images/progress_image_filled_safe.png differ
diff --git a/com.gluster.storage.management.gui/images/progress_image_left.png b/com.gluster.storage.management.gui/images/progress_image_left.png
new file mode 100644
index 00000000..97704230
Binary files /dev/null and b/com.gluster.storage.management.gui/images/progress_image_left.png differ
diff --git a/com.gluster.storage.management.gui/images/progress_image_right.png b/com.gluster.storage.management.gui/images/progress_image_right.png
new file mode 100644
index 00000000..97704230
Binary files /dev/null and b/com.gluster.storage.management.gui/images/progress_image_right.png differ
diff --git a/com.gluster.storage.management.gui/plugin.xml b/com.gluster.storage.management.gui/plugin.xml
new file mode 100644
index 00000000..8097f4ef
--- /dev/null
+++ b/com.gluster.storage.management.gui/plugin.xml
@@ -0,0 +1,824 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.gui/preferences.ini b/com.gluster.storage.management.gui/preferences.ini
new file mode 100644
index 00000000..91228592
--- /dev/null
+++ b/com.gluster.storage.management.gui/preferences.ini
@@ -0,0 +1 @@
+org.eclipse.ui/KEY_CONFIGURATION_ID = com.gluster.storage.management.gui.KeyConfig
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/splash.bmp b/com.gluster.storage.management.gui/splash.bmp
new file mode 100644
index 00000000..059c28f9
Binary files /dev/null and b/com.gluster.storage.management.gui/splash.bmp differ
diff --git a/com.gluster.storage.management.gui/splash/gluster_about.jpg b/com.gluster.storage.management.gui/splash/gluster_about.jpg
new file mode 100644
index 00000000..242fa560
Binary files /dev/null and b/com.gluster.storage.management.gui/splash/gluster_about.jpg differ
diff --git a/com.gluster.storage.management.gui/splash/splash-dialog.bmp b/com.gluster.storage.management.gui/splash/splash-dialog.bmp
new file mode 100644
index 00000000..2de2897f
Binary files /dev/null and b/com.gluster.storage.management.gui/splash/splash-dialog.bmp differ
diff --git a/com.gluster.storage.management.gui/splash/splash-dialog.png b/com.gluster.storage.management.gui/splash/splash-dialog.png
new file mode 100644
index 00000000..789eafb0
Binary files /dev/null and b/com.gluster.storage.management.gui/splash/splash-dialog.png differ
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Activator.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Activator.java
new file mode 100644
index 00000000..44b4a061
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Activator.java
@@ -0,0 +1,65 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "com.gluster.storage.management.gui"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ public void editorOpened() {
+ System.err.println("Editor opened!");
+ }
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Application.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Application.java
new file mode 100644
index 00000000..70e1f2bb
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Application.java
@@ -0,0 +1,98 @@
+package com.gluster.storage.management.gui;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.core.databinding.observable.Realm;
+import org.eclipse.equinox.app.IApplication;
+import org.eclipse.equinox.app.IApplicationContext;
+import org.eclipse.jface.databinding.swt.SWTObservables;
+import org.eclipse.jface.window.Window;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+
+import com.gluster.storage.management.core.model.Entity;
+import com.gluster.storage.management.gui.login.LoginDialog;
+
+/**
+ * This class controls all aspects of the application's execution
+ */
+public class Application implements IApplication {
+
+ public static final String PLUGIN_ID = "com.gluster.storage.management.gui";
+ private static Application instance;
+ private List entityListeners = Collections.synchronizedList(new ArrayList());
+
+ public Application() {
+ instance = this;
+ }
+
+ public static Application getApplication() {
+ return instance;
+ }
+
+ private boolean login() {
+ LoginDialog loginDialog = new LoginDialog(new Shell(Display.getDefault()));
+ return (loginDialog.open() == Window.OK);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
+ */
+ public Object start(IApplicationContext context) {
+ Display display = PlatformUI.createDisplay();
+
+ final boolean[] loginSuccess = new boolean[1];
+ Realm.runWithDefault(SWTObservables.getRealm(display), new Runnable() {
+ public void run() {
+ loginSuccess[0] = login();
+ }
+ });
+
+ if (!loginSuccess[0]) {
+ return IApplication.EXIT_OK;
+ }
+ try {
+ int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
+ if (returnCode == PlatformUI.RETURN_RESTART) {
+ return IApplication.EXIT_RESTART;
+ }
+ return IApplication.EXIT_OK;
+ } finally {
+ display.dispose();
+ }
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.equinox.app.IApplication#stop()
+ */
+ public void stop() {
+ if (!PlatformUI.isWorkbenchRunning())
+ return;
+ final IWorkbench workbench = PlatformUI.getWorkbench();
+ final Display display = workbench.getDisplay();
+ display.syncExec(new Runnable() {
+ public void run() {
+ if (!display.isDisposed())
+ workbench.close();
+ }
+ });
+ }
+
+ public void addEntityListener(IEntityListener listener) {
+ entityListeners.add(listener);
+ }
+
+ public void entityChanged(Entity entity, String[] paremeters) {
+ for (IEntityListener listener : entityListeners) {
+ listener.entityChanged(entity, paremeters);
+ }
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationActionBarAdvisor.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationActionBarAdvisor.java
new file mode 100644
index 00000000..1910da79
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationActionBarAdvisor.java
@@ -0,0 +1,79 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.ICoolBarManager;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.actions.ActionFactory;
+import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+/**
+ * An action bar advisor is responsible for creating, adding, and disposing of the actions added to a workbench window.
+ * Each window will be populated with new actions.
+ */
+public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
+ private IWorkbenchWindow window;
+ /*
+ * Actions - important to allocate these only in makeActions, and then use them in the fill methods. This ensures
+ * that the actions aren't recreated when fillActionBars is called with FILL_PROXY.
+ */
+ private IWorkbenchAction exitAction;
+ private IWorkbenchAction aboutAction;
+
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
+ super(configurer);
+ }
+
+ protected void makeActions(final IWorkbenchWindow window) {
+ this.window = window;
+ /*
+ * Creates the actions and registers them. Registering is needed to ensure that key bindings work. The
+ * corresponding commands keybindings are defined in the plugin.xml file. Registering also provides automatic
+ * disposal of the actions when the window is closed.
+ */
+ exitAction = ActionFactory.QUIT.create(window);
+ register(exitAction);
+
+ aboutAction = ActionFactory.ABOUT.create(window);
+ aboutAction.setText("&About");
+ aboutAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(Application.PLUGIN_ID,
+ IImageKeys.HELP));
+ register(aboutAction);
+ }
+
+ protected void fillMenuBar(IMenuManager menuBar) {
+ // File
+ MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
+ fileMenu.add(new Separator());
+ fileMenu.add(exitAction);
+
+ // Help
+ MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
+ helpMenu.add(aboutAction);
+
+ menuBar.add(fileMenu);
+ // Add a group marker indicating where action set menus will appear.
+ // All action sets from plugin.xml will get added here
+ menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+ menuBar.add(helpMenu);
+
+ MenuManager addMenu = new MenuManager("&New");
+ fileMenu.add(addMenu);
+ }
+
+ protected void fillCoolBar(ICoolBarManager coolBar) {
+ // All our actions are added to toolbar through the extension point org.eclipse.ui.actionSets
+ }
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchAdvisor.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchAdvisor.java
new file mode 100644
index 00000000..2f345902
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchAdvisor.java
@@ -0,0 +1,27 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.ui.application.IWorkbenchConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+/**
+ * This workbench advisor creates the window advisor, and specifies
+ * the perspective id for the initial window.
+ */
+public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
+
+ public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
+ return new ApplicationWorkbenchWindowAdvisor(configurer);
+ }
+
+ public String getInitialWindowPerspectiveId() {
+ return Perspective.ID;
+ }
+
+ @Override
+ public void initialize(IWorkbenchConfigurer configurer) {
+ super.initialize(configurer);
+ configurer.setSaveAndRestore(false); // we don't need save/restore as of now
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchWindowAdvisor.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchWindowAdvisor.java
new file mode 100644
index 00000000..1d9d1537
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ApplicationWorkbenchWindowAdvisor.java
@@ -0,0 +1,42 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
+ private final static int DEFAULT_WIDTH = 1024;
+ private final static int DEFAULT_HEIGHT = 768;
+ private final GUIHelper guiHelper = GUIHelper.getInstance();
+
+ public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
+ super(configurer);
+ }
+
+ @Override
+ public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
+ return new ApplicationActionBarAdvisor(configurer);
+ }
+
+ @Override
+ public void preWindowOpen() {
+ super.preWindowOpen();
+
+ IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
+ configurer.setInitialSize(new Point(DEFAULT_WIDTH, DEFAULT_HEIGHT));
+ configurer.setShowCoolBar(true);
+ configurer.setShowStatusLine(true);
+ configurer.setShowMenuBar(true);
+ configurer.setShowProgressIndicator(true); // shows progress indicator in status bar
+ }
+
+ @Override
+ public void postWindowCreate() {
+ super.postWindowCreate();
+ guiHelper.centerShellInScreen(getWindowConfigurer().getWindow().getShell());
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/DiskTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/DiskTableLabelProvider.java
new file mode 100644
index 00000000..308b5f1c
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/DiskTableLabelProvider.java
@@ -0,0 +1,70 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.swt.graphics.Image;
+
+import com.gluster.storage.management.core.exceptions.GlusterRuntimeException;
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.Disk.DISK_STATUS;
+import com.gluster.storage.management.core.utils.NumberUtil;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.views.details.DisksPage.DISK_TABLE_COLUMN_INDICES;
+
+public class DiskTableLabelProvider extends TableLabelProviderAdapter {
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ @Override
+ public Image getColumnImage(Object element, int columnIndex) {
+ if (!(element instanceof Disk)) {
+ return null;
+ }
+
+ Disk disk = (Disk) element;
+ if (columnIndex == DISK_TABLE_COLUMN_INDICES.STATUS.ordinal()) {
+ DISK_STATUS status = disk.getStatus();
+ switch (status) {
+ case READY:
+ return guiHelper.getImage(IImageKeys.STATUS_ONLINE);
+ case OFFLINE:
+ return guiHelper.getImage(IImageKeys.STATUS_OFFLINE);
+ case UNINITIALIZED:
+ return guiHelper.getImage(IImageKeys.DISK_UNINITIALIZED);
+ case INITIALIZING:
+ return guiHelper.getImage(IImageKeys.WORK_IN_PROGRESS);
+ default:
+ throw new GlusterRuntimeException("Invalid disk status [" + status + "]");
+ }
+ }
+
+ return null;
+ }
+
+ private String getDiskSpaceInUse(Disk disk) {
+ if (disk.isReady()) {
+ return NumberUtil.formatNumber(disk.getSpaceInUse());
+ } else {
+ return "NA";
+ }
+ }
+
+ private String getDiskSpace(Disk disk) {
+ if (disk.isOffline()) {
+ return "NA";
+ } else {
+ return NumberUtil.formatNumber(disk.getSpace());
+ }
+ }
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof Disk)) {
+ return null;
+ }
+
+ Disk disk = (Disk) element;
+ return (columnIndex == DISK_TABLE_COLUMN_INDICES.SERVER.ordinal() ? disk.getServer().getName()
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.DISK.ordinal() ? disk.getName()
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.SPACE.ordinal() ? getDiskSpace(disk)
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.SPACE_IN_USE.ordinal() ? getDiskSpaceInUse(disk)
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.STATUS.ordinal() ? disk.getStatusStr() : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/EntityGroupContentProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/EntityGroupContentProvider.java
new file mode 100644
index 00000000..d5dfe3d3
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/EntityGroupContentProvider.java
@@ -0,0 +1,26 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.Viewer;
+
+import com.gluster.storage.management.core.model.EntityGroup;
+
+public class EntityGroupContentProvider implements
+ IStructuredContentProvider {
+ @Override
+ public void dispose() {
+ }
+
+ @Override
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+
+ }
+
+ @Override
+ public Object[] getElements(Object inputElement) {
+ if (inputElement instanceof EntityGroup) {
+ return ((EntityGroup) inputElement).getChildren().toArray();
+ }
+ return null;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/GlusterServerTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/GlusterServerTableLabelProvider.java
new file mode 100644
index 00000000..2346b99c
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/GlusterServerTableLabelProvider.java
@@ -0,0 +1,57 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.swt.graphics.Image;
+
+import com.gluster.storage.management.core.model.GlusterServer;
+import com.gluster.storage.management.core.model.GlusterServer.SERVER_STATUS;
+import com.gluster.storage.management.core.utils.NumberUtil;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.views.details.GlusterServersPage.GLUSTER_SERVER_TABLE_COLUMN_INDICES;
+
+public class GlusterServerTableLabelProvider extends TableLabelProviderAdapter {
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ @Override
+ public Image getColumnImage(Object element, int columnIndex) {
+ if (!(element instanceof GlusterServer)) {
+ return null;
+ }
+
+ GlusterServer server = (GlusterServer) element;
+ if(columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.STATUS.ordinal()) {
+ SERVER_STATUS status = server.getStatus();
+ if(status == SERVER_STATUS.ONLINE) {
+ return guiHelper.getImage(IImageKeys.STATUS_ONLINE);
+ } else {
+ return guiHelper.getImage(IImageKeys.STATUS_OFFLINE);
+ }
+ }
+
+ return null;
+ }
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof GlusterServer)) {
+ return null;
+ }
+
+ GlusterServer server = (GlusterServer) element;
+
+ if (server.getStatus() == SERVER_STATUS.OFFLINE
+ && columnIndex != GLUSTER_SERVER_TABLE_COLUMN_INDICES.NAME.ordinal()
+ && columnIndex != GLUSTER_SERVER_TABLE_COLUMN_INDICES.STATUS.ordinal()) {
+ return "NA";
+ }
+
+ return (columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.NAME.ordinal() ? server.getName()
+ : columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.STATUS.ordinal() ? server.getStatusStr()
+ : columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.PREFERRED_NETWORK.ordinal() ? server.getPreferredNetworkInterface().getName()
+ : columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.NUM_OF_CPUS.ordinal() ? "" + server.getNumOfCPUs()
+ //: columnIndex == SERVER_DISK_TABLE_COLUMN_INDICES.CPU_USAGE.ordinal() ? "" + server.getCpuUsage()
+ : columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.TOTAL_MEMORY.ordinal() ? "" + server.getTotalMemory()
+ //: columnIndex == SERVER_DISK_TABLE_COLUMN_INDICES.MEMORY_IN_USE.ordinal() ? "" + server.getMemoryInUse()
+ : columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.TOTAL_DISK_SPACE.ordinal() ? NumberUtil.formatNumber(server.getTotalDiskSpace())
+ : columnIndex == GLUSTER_SERVER_TABLE_COLUMN_INDICES.IP_ADDRESSES.ordinal() ? server.getIpAddressesAsString() : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ICommandIds.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ICommandIds.java
new file mode 100644
index 00000000..0c94dc8f
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ICommandIds.java
@@ -0,0 +1,15 @@
+package com.gluster.storage.management.gui;
+
+/**
+ * Interface defining the application's command IDs.
+ * Key bindings can be defined for specific commands.
+ * To associate an action with a command, use IAction.setActionDefinitionId(commandId).
+ *
+ * @see org.eclipse.jface.action.IAction#setActionDefinitionId(String)
+ */
+public interface ICommandIds {
+
+ public static final String CMD_OPEN = "com.gluster.storage.management.gui.open";
+ public static final String CMD_OPEN_MESSAGE = "com.gluster.storage.management.gui.openMessage";
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IEntityListener.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IEntityListener.java
new file mode 100644
index 00000000..46f12962
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IEntityListener.java
@@ -0,0 +1,19 @@
+package com.gluster.storage.management.gui;
+
+import com.gluster.storage.management.core.model.Entity;
+
+/**
+ * Any class that is interested in changes to entities in application scope should implement this interface and register
+ * with the application using {@link Application#addEntityListener(IEntityListener)}
+ *
+ * @author root
+ *
+ */
+public interface IEntityListener {
+ /**
+ * This method is called whenever any attribute of an entity in application scope changes
+ * @param entity Entity that has changed
+ * @param paremeters List of attribute names that have changed. This can be null.
+ */
+ public void entityChanged(Entity entity, String[] paremeters);
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IImageKeys.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IImageKeys.java
new file mode 100644
index 00000000..cef276a9
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/IImageKeys.java
@@ -0,0 +1,44 @@
+package com.gluster.storage.management.gui;
+
+public interface IImageKeys {
+ public static final String CLUSTER = "icons/cluster.png";
+ public static final String VOLUMES = "icons/volumes.png";
+ public static final String SERVERS = "icons/servers.png";
+ public static final String VOLUME = "icons/volume.png";
+ public static final String SERVER = "icons/server.png";
+ public static final String GSN = "icons/gsn.png";
+ public static final String SETTINGS = "icons/settings.png";
+ public static final String ADD = "icons/plus-white.png";
+ public static final String REMOVE = "icons/minus-white.png";
+ public static final String CREATE_VOLUME = "icons/volume-create.png";
+ public static final String CREATE_VOLUME_BIG = "icons/volume-create-big.png";
+ public static final String REMOVE_VOLUME = "icons/volume-delete.png";
+ public static final String ADD_SERVER = "icons/server-add.png";
+ public static final String ADD_SERVER_BIG = "icons/server-add-big.png";
+ public static final String REMOVE_SERVER = "icons/server-remove.png";
+ public static final String HELP = "icons/question.png";
+ public static final String STATUS_OFFLINE = "icons/status-offline.png";
+ public static final String STATUS_ONLINE = "icons/status-online.png";
+ public static final String STATUS_CANCELLED = "icons/status-offline.png";
+ public static final String STATUS_SUCCESS = "icons/status-online.png";
+ public static final String WORK_IN_PROGRESS = "icons/progress-bar.png";
+ public static final String CHECKBOX_UNCHECKED = "icons/ui-check-box-uncheck.png";
+ public static final String CHECKBOX_CHECKED = "icons/ui-check-box.png";
+ public static final String DISK_UNINITIALIZED = "icons/disk-uninitialized.png";
+ public static final String SEARCH = "icons/search.png";
+ public static final String ARROW_UP = "icons/arrow-up.png";
+ public static final String ARROW_DOWN = "icons/arrow-down.png";
+
+ public static final String OVERLAY_OFFLINE = "icons/status-offline-small.png";
+ public static final String OVERLAY_ONLINE = "icons/status-online-small.png";
+ public static final String OVERLAY_STAR = "icons/star-small.png";
+
+ public static final String SPLASH_IMAGE = "splash.bmp";
+ public static final String DIALOG_SPLASH_IMAGE = "splash/splash-dialog.bmp";
+
+ public static final String PROGRESS_BAR_LEFT = "images/progress_image_left.png";
+ public static final String PROGRESS_BAR_RIGHT = "images/progress_image_right.png";
+ public static final String PROGRESS_BAR_FILLED = "images/progress_image_filled_safe.png";
+ public static final String PROGRESS_BAR_EMPTY = "images/progress_image_empty.png";
+ public static final String GAUGE_SMALL = "images/gauge_small.png";
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/NetworkInterfaceTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/NetworkInterfaceTableLabelProvider.java
new file mode 100644
index 00000000..1292cb9a
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/NetworkInterfaceTableLabelProvider.java
@@ -0,0 +1,22 @@
+package com.gluster.storage.management.gui;
+
+
+import com.gluster.storage.management.core.model.NetworkInterface;
+import com.gluster.storage.management.gui.views.details.tabcreators.GlusterServerTabCreator.NETWORK_INTERFACE_TABLE_COLUMN_INDICES;
+
+public class NetworkInterfaceTableLabelProvider extends TableLabelProviderAdapter {
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof NetworkInterface)) {
+ return null;
+ }
+
+ NetworkInterface networkInterface = (NetworkInterface) element;
+ return (columnIndex == NETWORK_INTERFACE_TABLE_COLUMN_INDICES.INTERFACE.ordinal() ? networkInterface.getName()
+ : columnIndex == NETWORK_INTERFACE_TABLE_COLUMN_INDICES.IP_ADDRESS.ordinal() ? networkInterface.getIpAddress()
+ : columnIndex == NETWORK_INTERFACE_TABLE_COLUMN_INDICES.NETMASK.ordinal() ? networkInterface.getNetMask()
+ : columnIndex == NETWORK_INTERFACE_TABLE_COLUMN_INDICES.GATEWAY.ordinal() ? networkInterface.getDefaultGateway()
+ : columnIndex == NETWORK_INTERFACE_TABLE_COLUMN_INDICES.PREFERRED.ordinal() ? (networkInterface.isPreferred() ? "Yes" : "No")
+ : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Perspective.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Perspective.java
new file mode 100644
index 00000000..5b0c6e19
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/Perspective.java
@@ -0,0 +1,21 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+import com.gluster.storage.management.gui.views.details.DetailsView;
+import com.gluster.storage.management.gui.views.navigator.NavigationView;
+
+public class Perspective implements IPerspectiveFactory {
+
+ /**
+ * The ID of the perspective as specified in the extension.
+ */
+ public static final String ID = "com.gluster.storage.management.gui.perspective";
+
+ public void createInitialLayout(IPageLayout layout) {
+ layout.setEditorAreaVisible(false);
+ //layout.addStandaloneView(ClusterView.ID, false, IPageLayout.LEFT, 0.30f, layout.getEditorArea());
+ //layout.addStandaloneView(DetailsView.ID, false, IPageLayout.RIGHT, 0.70f, layout.getEditorArea());
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerDiskTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerDiskTableLabelProvider.java
new file mode 100644
index 00000000..889bf771
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerDiskTableLabelProvider.java
@@ -0,0 +1,72 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.swt.graphics.Image;
+
+import com.gluster.storage.management.core.exceptions.GlusterRuntimeException;
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.Disk.DISK_STATUS;
+import com.gluster.storage.management.core.utils.NumberUtil;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.views.details.ServerDisksPage.SERVER_DISK_TABLE_COLUMN_INDICES;
+
+public class ServerDiskTableLabelProvider extends TableLabelProviderAdapter {
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+
+ @Override
+ public Image getColumnImage(Object element, int columnIndex) {
+ if (!(element instanceof Disk)) {
+ return null;
+ }
+
+ Disk disk = (Disk) element;
+ if (columnIndex == SERVER_DISK_TABLE_COLUMN_INDICES.STATUS.ordinal()) {
+ DISK_STATUS status = disk.getStatus();
+ switch (status) {
+ case READY:
+ return guiHelper.getImage(IImageKeys.STATUS_ONLINE);
+ case OFFLINE:
+ return guiHelper.getImage(IImageKeys.STATUS_OFFLINE);
+ case UNINITIALIZED:
+ return guiHelper.getImage(IImageKeys.DISK_UNINITIALIZED);
+ case INITIALIZING:
+ return guiHelper.getImage(IImageKeys.WORK_IN_PROGRESS);
+ default:
+ throw new GlusterRuntimeException("Invalid disk status [" + status + "]");
+ }
+ }
+
+ return null;
+ }
+
+ private String getDiskSpaceInUse(Disk disk) {
+ if(disk.isReady()) {
+ return NumberUtil.formatNumber(disk.getSpaceInUse());
+ } else {
+ return "NA";
+ }
+ }
+
+ private String getDiskSpace(Disk disk) {
+ if(disk.isOffline()) {
+ return "NA";
+ } else {
+ return NumberUtil.formatNumber(disk.getSpace());
+ }
+ }
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof Disk)) {
+ return null;
+ }
+
+
+ Disk disk = (Disk) element;
+ return (columnIndex == SERVER_DISK_TABLE_COLUMN_INDICES.DISK.ordinal() ? disk.getName()
+ : columnIndex == SERVER_DISK_TABLE_COLUMN_INDICES.SPACE.ordinal() ? getDiskSpace(disk)
+ : columnIndex == SERVER_DISK_TABLE_COLUMN_INDICES.SPACE_IN_USE.ordinal() ? getDiskSpaceInUse(disk)
+ : columnIndex == SERVER_DISK_TABLE_COLUMN_INDICES.STATUS.ordinal() ? disk.getStatusStr()
+ : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerTableLabelProvider.java
new file mode 100644
index 00000000..d002c15f
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/ServerTableLabelProvider.java
@@ -0,0 +1,30 @@
+package com.gluster.storage.management.gui;
+
+
+import com.gluster.storage.management.core.model.Server;
+import com.gluster.storage.management.core.utils.NumberUtil;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.views.details.ServersPage.SERVER_TABLE_COLUMN_INDICES;
+
+public class ServerTableLabelProvider extends TableLabelProviderAdapter {
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof Server)) {
+ return null;
+ }
+
+ Server server = (Server) element;
+ return (columnIndex == SERVER_TABLE_COLUMN_INDICES.NAME.ordinal() ? server.getName()
+ : columnIndex == SERVER_TABLE_COLUMN_INDICES.IP_ADDRESSES.ordinal() ? server.getIpAddressesAsString()
+ : columnIndex == SERVER_TABLE_COLUMN_INDICES.NUM_OF_DISKS.ordinal() ? "" + server.getNumOfDisks()
+ : columnIndex == SERVER_TABLE_COLUMN_INDICES.TOTAL_DISK_SPACE.ordinal() ? NumberUtil.formatNumber(server.getTotalDiskSpace())
+// : columnIndex == SERVER_TABLE_COLUMN_INDICES.NUM_OF_CPUS.ordinal() ? "" + server.getNumOfCPUs()
+// : columnIndex == SERVER_TABLE_COLUMN_INDICES.CPU_USAGE.ordinal() ? "" + server.getCpuUsage()
+// : columnIndex == SERVER_TABLE_COLUMN_INDICES.TOTAL_MEMORY.ordinal() ? "" + server.getTotalMemory()
+// : columnIndex == SERVER_TABLE_COLUMN_INDICES.MEMORY_IN_USE.ordinal() ? "" + server.getMemoryInUse()
+// : columnIndex == SERVER_TABLE_COLUMN_INDICES.DISK_SPACE_IN_USE.ordinal() ? "" + server.getDiskSpaceInUse()
+ : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/TableLabelProviderAdapter.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/TableLabelProviderAdapter.java
new file mode 100644
index 00000000..54bc5ce6
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/TableLabelProviderAdapter.java
@@ -0,0 +1,40 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.jface.viewers.ILabelProviderListener;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.swt.graphics.Image;
+
+public class TableLabelProviderAdapter implements ITableLabelProvider {
+
+ @Override
+ public void addListener(ILabelProviderListener listener) {
+ // do nothing
+
+ }
+
+ @Override
+ public void dispose() {
+ // do nothing
+ }
+
+ @Override
+ public boolean isLabelProperty(Object element, String property) {
+ return true;
+ }
+
+ @Override
+ public void removeListener(ILabelProviderListener listener) {
+ // do nothing
+ }
+
+ @Override
+ public Image getColumnImage(Object element, int columnIndex) {
+ return null;
+ }
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ return null;
+ }
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeLogTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeLogTableLabelProvider.java
new file mode 100644
index 00000000..8685a965
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeLogTableLabelProvider.java
@@ -0,0 +1,30 @@
+package com.gluster.storage.management.gui;
+
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.LogMessage;
+import com.gluster.storage.management.core.utils.DateUtil;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.views.details.VolumeLogsPage.LOG_TABLE_COLUMN_INDICES;
+
+public class VolumeLogTableLabelProvider extends TableLabelProviderAdapter {
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ private String getFormattedDiskName(Disk disk) {
+ return disk.getServer().getName() + ":" + disk.getName();
+ }
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof LogMessage)) {
+ return null;
+ }
+
+ LogMessage logMessage = (LogMessage) element;
+ return (columnIndex == LOG_TABLE_COLUMN_INDICES.DATE.ordinal() ? DateUtil.formatDate(logMessage.getTimestamp())
+ : columnIndex == LOG_TABLE_COLUMN_INDICES.TIME.ordinal() ? DateUtil.formatTime(logMessage.getTimestamp())
+ : columnIndex == LOG_TABLE_COLUMN_INDICES.DISK.ordinal() ? getFormattedDiskName(logMessage.getDisk())
+ : columnIndex == LOG_TABLE_COLUMN_INDICES.SEVERITY.ordinal() ? "" + logMessage.getSeverity()
+ : columnIndex == LOG_TABLE_COLUMN_INDICES.MESSAGE.ordinal() ? logMessage.getMessage() : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeOptionsTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeOptionsTableLabelProvider.java
new file mode 100644
index 00000000..3c24b3f4
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeOptionsTableLabelProvider.java
@@ -0,0 +1,24 @@
+package com.gluster.storage.management.gui;
+
+import java.util.Map.Entry;
+
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.views.details.VolumeOptionsPage.OPTIONS_TABLE_COLUMN_INDICES;
+
+public class VolumeOptionsTableLabelProvider extends TableLabelProviderAdapter {
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof Entry)) {
+ return null;
+ }
+
+ Entry entry = (Entry) element;
+ String key = entry.getKey();
+ String value = entry.getValue();
+ return (columnIndex == OPTIONS_TABLE_COLUMN_INDICES.OPTION_KEY.ordinal() ? key
+ : columnIndex == OPTIONS_TABLE_COLUMN_INDICES.OPTION_VALUE.ordinal() ? value
+ : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeTableLabelProvider.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeTableLabelProvider.java
new file mode 100644
index 00000000..63241961
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/VolumeTableLabelProvider.java
@@ -0,0 +1,64 @@
+package com.gluster.storage.management.gui;
+
+import org.eclipse.jface.viewers.ILabelProviderListener;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.swt.graphics.Image;
+
+import com.gluster.storage.management.core.model.Volume;
+import com.gluster.storage.management.core.model.Volume.VOLUME_STATUS;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.views.details.VolumesPage.VOLUME_TABLE_COLUMN_INDICES;
+
+public class VolumeTableLabelProvider implements ITableLabelProvider {
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ @Override
+ public void addListener(ILabelProviderListener listener) {
+ }
+
+ @Override
+ public void dispose() {
+ }
+
+ @Override
+ public boolean isLabelProperty(Object element, String property) {
+ return false;
+ }
+
+ @Override
+ public void removeListener(ILabelProviderListener listener) {
+ }
+
+ @Override
+ public Image getColumnImage(Object element, int columnIndex) {
+ if (!(element instanceof Volume)) {
+ return null;
+ }
+
+ Volume volume = (Volume) element;
+ if(columnIndex == VOLUME_TABLE_COLUMN_INDICES.VOLUME_STATUS.ordinal()) {
+ VOLUME_STATUS status = volume.getStatus();
+ if(status == VOLUME_STATUS.ONLINE) {
+ return guiHelper.getImage(IImageKeys.STATUS_ONLINE);
+ } else {
+ return guiHelper.getImage(IImageKeys.STATUS_OFFLINE);
+ }
+ }
+
+ return null;
+ }
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof Volume)) {
+ return null;
+ }
+
+ Volume volume = (Volume) element;
+ return (columnIndex == VOLUME_TABLE_COLUMN_INDICES.NAME.ordinal() ? volume.getName()
+ : columnIndex == VOLUME_TABLE_COLUMN_INDICES.VOLUME_TYPE.ordinal() ? volume.getVolumeTypeStr()
+ : columnIndex == VOLUME_TABLE_COLUMN_INDICES.TRANSPORT_TYPE.ordinal() ? volume.getTransportTypeStr()
+ : columnIndex == VOLUME_TABLE_COLUMN_INDICES.NUM_OF_DISKS.ordinal() ? "" + volume.getNumOfDisks()
+ : columnIndex == VOLUME_TABLE_COLUMN_INDICES.VOLUME_STATUS.ordinal() ? volume.getStatusStr() : "Invalid");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AbstractActionDelegate.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AbstractActionDelegate.java
new file mode 100644
index 00000000..ddcb91c0
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AbstractActionDelegate.java
@@ -0,0 +1,38 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+
+import com.gluster.storage.management.core.model.Entity;
+
+/**
+ * All action delegates in the application should extend from this class. It provides common functionality of grabbing
+ * the Window object on initialization and extracting the selected entity in case of selection change on the navigation
+ * tree.
+ */
+public abstract class AbstractActionDelegate implements IWorkbenchWindowActionDelegate {
+ protected IWorkbenchWindow window;
+ protected Entity selectedEntity;
+
+ @Override
+ public void selectionChanged(IAction action, ISelection selection) {
+ if (selection instanceof StructuredSelection) {
+ Entity selectedEntity = (Entity) ((StructuredSelection) selection).getFirstElement();
+
+ if (this.selectedEntity == selectedEntity) {
+ // entity selection has not changed. do nothing.
+ return;
+ }
+
+ this.selectedEntity = selectedEntity;
+ }
+ }
+
+ @Override
+ public void init(IWorkbenchWindow window) {
+ this.window = window;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AddServerAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AddServerAction.java
new file mode 100644
index 00000000..9a278c74
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/AddServerAction.java
@@ -0,0 +1,18 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+
+public class AddServerAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/CreateVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/CreateVolumeAction.java
new file mode 100644
index 00000000..ea5ac084
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/CreateVolumeAction.java
@@ -0,0 +1,23 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.wizard.WizardDialog;
+
+import com.gluster.storage.management.gui.dialogs.CreateVolumeWizard;
+
+public class CreateVolumeAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ CreateVolumeWizard wizard = new CreateVolumeWizard();
+
+ WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
+ dialog.create();
+ dialog.getShell().setSize(500, 550);
+ dialog.open();
+ }
+
+ @Override
+ public void dispose() {
+ window = null;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DeleteVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DeleteVolumeAction.java
new file mode 100644
index 00000000..d9446238
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DeleteVolumeAction.java
@@ -0,0 +1,15 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+
+public class DeleteVolumeAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/EditVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/EditVolumeAction.java
new file mode 100644
index 00000000..47a0cc56
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/EditVolumeAction.java
@@ -0,0 +1,15 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+
+public class EditVolumeAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/IActionSetIDs.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/IActionSetIDs.java
new file mode 100644
index 00000000..cdc05128
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/IActionSetIDs.java
@@ -0,0 +1,15 @@
+package com.gluster.storage.management.gui.actions;
+
+public interface IActionSetIDs {
+ public static final String ACTION_SET_CLUSTER = "com.gluster.storage.management.gui.actionsets.gluster";
+ public static final String ACTION_SET_VOLUMES = "com.gluster.storage.management.gui.actionsets.volumes";
+ public static final String ACTION_SET_VOLUME = "com.gluster.storage.management.gui.actionsets.volume";
+ public static final String ACTION_SET_DISKS = "com.gluster.storage.management.gui.actionsets.disks";
+ public static final String ACTION_SET_DISK = "com.gluster.storage.management.gui.actionsets.disk";
+ public static final String ACTION_SET_GLUSTER_SERVERS = "com.gluster.storage.management.gui.actionsets.glusterservers";
+ public static final String ACTION_SET_GLUSTER_SERVER = "com.gluster.storage.management.gui.actionsets.glusterserver";
+ public static final String ACTION_SET_DISCOVERED_SERVERS = "com.gluster.storage.management.gui.actionsets.serversdiscovered";
+ public static final String ACTION_SET_DISCOVERED_SERVER = "com.gluster.storage.management.gui.actionsets.serverdiscovered";
+
+ public static final String ACTION_SET_EDIT = "com.gluster.storage.management.gui.actionsets.edit";
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateDiskAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateDiskAction.java
new file mode 100644
index 00000000..3d59f179
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateDiskAction.java
@@ -0,0 +1,53 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.wizard.WizardDialog;
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.Volume;
+import com.gluster.storage.management.gui.dialogs.MigrateDiskWizard;
+
+public class MigrateDiskAction extends AbstractActionDelegate {
+ private Volume volume;
+ private Disk disk;
+
+ @Override
+ public void run(IAction action) {
+// MigrateDiskDialog dialog = new MigrateDiskDialog(window.getShell(), volume, disk);
+// dialog.create();
+// dialog.open();
+ MigrateDiskWizard wizard = new MigrateDiskWizard(volume, disk);
+
+ WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
+ dialog.create();
+ dialog.getShell().setSize(1024, 600);
+ dialog.open();
+ }
+
+ @Override
+ public void selectionChanged(IAction action, ISelection selection) {
+ super.selectionChanged(action, selection);
+
+ if(selectedEntity == null) {
+ // this happens when user clicks on the "Disks" tab
+ return;
+ }
+
+ action.setEnabled(false);
+ if (selectedEntity instanceof Volume) {
+ volume = (Volume) selectedEntity;
+ action.setEnabled(true);
+ } else if (selectedEntity instanceof Disk) {
+ disk = (Disk) selectedEntity;
+ action.setEnabled(((StructuredSelection) selection).size() <= 1);
+ }
+ }
+
+ @Override
+ public void dispose() {
+ // TODO Auto-generated method stub
+
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateVolumeAction.java
new file mode 100644
index 00000000..ebe961b4
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/MigrateVolumeAction.java
@@ -0,0 +1,15 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+
+public class MigrateVolumeAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/PreferencesAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/PreferencesAction.java
new file mode 100644
index 00000000..482d8c8c
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/PreferencesAction.java
@@ -0,0 +1,18 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.ui.actions.ActionFactory;
+
+public class PreferencesAction extends AbstractActionDelegate {
+
+ @Override
+ public void dispose() {
+
+ }
+
+ @Override
+ public void run(IAction action) {
+ ActionFactory.PREFERENCES.create(window).run();
+ }
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RebalanceVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RebalanceVolumeAction.java
new file mode 100644
index 00000000..dfdc6724
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RebalanceVolumeAction.java
@@ -0,0 +1,15 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+
+public class RebalanceVolumeAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RemoveServerAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RemoveServerAction.java
new file mode 100644
index 00000000..7bd81038
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/RemoveServerAction.java
@@ -0,0 +1,18 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+
+public class RemoveServerAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java
new file mode 100644
index 00000000..1492a890
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java
@@ -0,0 +1,18 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+
+public class StartVolumeAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java
new file mode 100644
index 00000000..7c3b75dc
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java
@@ -0,0 +1,15 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+
+public class StopVolumeAction extends AbstractActionDelegate {
+ @Override
+ public void run(IAction action) {
+ System.out.println("Running [" + this.getClass().getSimpleName() + "]");
+ }
+
+ @Override
+ public void dispose() {
+ System.out.println("Disposing [" + this.getClass().getSimpleName() + "]");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/TestPopupMenuAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/TestPopupMenuAction.java
new file mode 100644
index 00000000..daadb76c
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/TestPopupMenuAction.java
@@ -0,0 +1,44 @@
+package com.gluster.storage.management.gui.actions;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbenchPart;
+
+public class TestPopupMenuAction implements IObjectActionDelegate {
+
+ private Shell shell;
+
+ /**
+ * Constructor for Action1.
+ */
+ public TestPopupMenuAction() {
+ super();
+ }
+
+ /**
+ * @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
+ */
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+ shell = targetPart.getSite().getShell();
+ }
+
+ /**
+ * @see IActionDelegate#run(IAction)
+ */
+ public void run(IAction action) {
+ MessageDialog.openInformation(
+ shell,
+ "glustersp-gui",
+ "New Action was executed.");
+ }
+
+ /**
+ * @see IActionDelegate#selectionChanged(IAction, ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ }
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeDisksPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeDisksPage.java
new file mode 100644
index 00000000..a238fca5
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeDisksPage.java
@@ -0,0 +1,159 @@
+package com.gluster.storage.management.gui.dialogs;
+
+import java.util.List;
+
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.KeyAdapter;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.utils.NumberUtil;
+import com.gluster.storage.management.gui.IImageKeys;
+import com.gluster.storage.management.gui.TableLabelProviderAdapter;
+import com.gluster.storage.management.gui.utils.EntityViewerFilter;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.richclientgui.toolbox.duallists.CustomTableDualListComposite;
+import com.richclientgui.toolbox.duallists.RemovableContentProvider;
+import com.richclientgui.toolbox.duallists.TableColumnData;
+
+public class CreateVolumeDisksPage extends Composite {
+ private enum DISK_TABLE_COLUMN_INDICES {
+ SERVER, DISK, SPACE, SPACE_USED
+ }
+
+ private static final String[] DISK_TABLE_COLUMNS_NAMES = { "Server", "Disk", "Space (GB)", "Used Space (GB)" };
+
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+ private CustomTableDualListComposite dualTableViewer;
+ private Text filterText;
+
+ public CreateVolumeDisksPage(final Composite parent, int style, List disks) {
+ super(parent, style);
+
+ createPage(disks);
+
+ parent.layout();
+ }
+
+ private TableLabelProviderAdapter getDiskLabelProvider() {
+ return new TableLabelProviderAdapter() {
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof Disk)) {
+ return null;
+ }
+
+ Disk disk = (Disk) element;
+ return (columnIndex == DISK_TABLE_COLUMN_INDICES.SERVER.ordinal() ? disk.getServer().getName()
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.DISK.ordinal() ? disk.getName()
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.SPACE.ordinal() ? NumberUtil.formatNumber(disk.getSpace())
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.SPACE_USED.ordinal() ? NumberUtil.formatNumber(disk.getSpaceInUse())
+ : "Invalid");
+ }
+ };
+ }
+
+ private void createPage(List disks) {
+ setupPageLayout();
+
+ filterText = guiHelper.createFilterText(this);
+ new Label(this, SWT.NONE);
+
+ createDualTableViewer(disks);
+ createFilter(filterText, false); // attach filter text to the dual table viewer for auto-filtering
+
+ Composite buttonContainer = new Composite(this, SWT.NONE);
+ buttonContainer.setLayout(new GridLayout(1, false));
+ GridData buttonContainerData = new GridData(SWT.FILL, SWT.CENTER, true, true);
+ buttonContainerData.minimumWidth = 40;
+ buttonContainer.setLayoutData(buttonContainerData);
+
+ Button btnUp = new Button(buttonContainer, SWT.TOGGLE);
+ GridData btnUpData = new GridData(SWT.LEFT, SWT.BOTTOM, true, false);
+ btnUpData.minimumWidth = 30;
+ btnUp.setLayoutData(btnUpData);
+ btnUp.setImage(guiHelper.getImage(IImageKeys.ARROW_UP));
+
+ Button btnDown = new Button(buttonContainer, SWT.TOGGLE);
+ btnDown.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false));
+ btnDown.setImage(guiHelper.getImage(IImageKeys.ARROW_DOWN));
+ }
+
+ private void createFilter(final Text filterText, boolean caseSensitive) {
+ final String initialFilterString = filterText.getText();
+
+ final EntityViewerFilter filter = new EntityViewerFilter(initialFilterString, caseSensitive);
+ // On every keystroke inside the text field, update the filter string
+ filterText.addKeyListener(new KeyAdapter() {
+ private String filterString = initialFilterString;
+
+ @Override
+ public void keyReleased(KeyEvent e) {
+ String enteredString = filterText.getText();
+ if (enteredString.equals(filterString)) {
+ // Filter string has not changed. don't do anything
+ return;
+ }
+
+ // Update filter string
+ filterString = enteredString;
+ filter.setFilterString(filterString);
+
+ // Refresh viewer with newly filtered content
+ dualTableViewer.refreshAvailableViewer();
+ dualTableViewer.refreshChosenViewer();
+ }
+ });
+
+ dualTableViewer.setAvailableViewerFilter(filter);
+ dualTableViewer.setChosenViewerFilter(filter);
+ }
+
+ private void createDualTableViewer(List disks) {
+ TableColumnData[] columnData = createColumnData();
+ ITableLabelProvider diskLabelProvider = getDiskLabelProvider();
+
+ dualTableViewer = new CustomTableDualListComposite(this, SWT.NONE,
+ columnData, columnData);
+
+ dualTableViewer.setViewerLabels("Available:", "Chosen:");
+
+ dualTableViewer.setAvailableTableLinesVisible(false);
+ dualTableViewer.setAvailableTableHeaderVisible(true);
+ dualTableViewer.setAvailableContentProvider(new RemovableContentProvider());
+ dualTableViewer.setAvailableLabelProvider(diskLabelProvider);
+
+ dualTableViewer.setChosenTableLinesVisible(true);
+ dualTableViewer.setChosenTableHeaderVisible(true);
+ dualTableViewer.setChosenContentProvider(new RemovableContentProvider(disks));
+ dualTableViewer.setChosenLabelProvider(diskLabelProvider);
+ }
+
+ private TableColumnData[] createColumnData() {
+ DISK_TABLE_COLUMN_INDICES[] columns = DISK_TABLE_COLUMN_INDICES.values();
+ TableColumnData[] columnData = new TableColumnData[columns.length];
+
+ for (DISK_TABLE_COLUMN_INDICES column : columns) {
+ int columnNum = column.ordinal();
+ columnData[columnNum] = new TableColumnData(columnNum, DISK_TABLE_COLUMNS_NAMES[columnNum], 100);
+ }
+ return columnData;
+ }
+
+ private void setupPageLayout() {
+ final GridLayout layout = new GridLayout(2, false);
+ layout.verticalSpacing = 10;
+ layout.marginTop = 10;
+ setLayout(layout);
+
+ setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumePage1.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumePage1.java
new file mode 100644
index 00000000..21edd368
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumePage1.java
@@ -0,0 +1,131 @@
+package com.gluster.storage.management.gui.dialogs;
+
+import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.ComboViewer;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Link;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Text;
+
+import com.gluster.storage.management.core.model.Volume;
+import com.gluster.storage.management.core.model.Volume.VOLUME_TYPE;
+
+public class CreateVolumePage1 extends WizardPage {
+ private static final String PAGE_NAME = "create.volume.page.1";
+ private Text txtName;
+ private Text txtAccessControl;
+
+ /**
+ * Create the wizard.
+ */
+ public CreateVolumePage1() {
+ super(PAGE_NAME);
+ setTitle("Create Volume");
+ setDescription("Create a new Volume by choosing disks from the cluster servers and configuring the volume properties.");
+ }
+
+ /**
+ * Create contents of the wizard.
+ * @param parent
+ */
+ public void createControl(Composite parent) {
+ Composite container = new Composite(parent, SWT.NULL);
+
+ setControl(container);
+ GridLayout gl_container = new GridLayout(2, false);
+ gl_container.verticalSpacing = 10;
+ gl_container.marginHeight = 10;
+ gl_container.marginLeft = 20;
+ gl_container.horizontalSpacing = 10;
+ container.setLayout(gl_container);
+
+ new Label(container, SWT.NONE);
+ new Label(container, SWT.NONE);
+
+ Label lblName = new Label(container, SWT.NONE);
+ lblName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
+ lblName.setText("Name: ");
+
+ txtName = new Text(container, SWT.BORDER);
+ GridData txtNameData = new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1);
+ txtNameData.widthHint = 300;
+ txtName.setLayoutData(txtNameData);
+
+ Label lblType = new Label(container, SWT.NONE);
+ lblType.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
+ lblType.setText("Type: ");
+
+ ComboViewer typeComboViewer = new ComboViewer(container, SWT.READ_ONLY);
+ Combo typeCombo = typeComboViewer.getCombo();
+ GridData typeComboData = new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1);
+ typeCombo.setLayoutData(typeComboData);
+ typeComboViewer.setContentProvider(new ArrayContentProvider());
+ typeComboViewer.setInput(Volume.VOLUME_TYPE.values());
+ typeCombo.select(VOLUME_TYPE.PLAIN_DISTRIBUTE.ordinal()); // default type = Plain Distribute
+ typeComboViewer.setLabelProvider(new LabelProvider() {
+ @Override
+ public String getText(Object element) {
+ VOLUME_TYPE volumeType = (VOLUME_TYPE)element;
+ return Volume.getVolumeTypeStr(volumeType);
+ }
+ });
+
+ Label lblTransportType = new Label(container, SWT.NONE);
+ lblTransportType.setText("Transport Type: ");
+
+ Label lblEthernet = new Label(container, SWT.NONE);
+ lblEthernet.setText("Ethernet");
+
+ Label lblDisks = new Label(container, SWT.RIGHT);
+ lblDisks.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
+ lblDisks.setText("Disks: ");
+
+ Link linkCustomize = new Link(container, SWT.UNDERLINE_LINK);
+ linkCustomize.setText("All Disks (customize)");
+ linkCustomize.addListener (SWT.Selection, new Listener () {
+ public void handleEvent(Event event) {
+ SelectDisksDialog dialog = new SelectDisksDialog(getShell());
+ dialog.create();
+ dialog.open();
+ }
+ });
+
+ Label lblNasProtocol = new Label(container, SWT.RIGHT);
+ lblNasProtocol.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
+ lblNasProtocol.setText("NAS Protocol: ");
+
+ Button btnGluster = new Button(container, SWT.CHECK);
+ btnGluster.setEnabled(false);
+ btnGluster.setSelection(true);
+ btnGluster.setText("Gluster");
+ new Label(container, SWT.NONE);
+
+ Button btnNfs = new Button(container, SWT.CHECK);
+ btnNfs.setSelection(true);
+ btnNfs.setText("NFS");
+
+ Label lblAccessControl = new Label(container, SWT.NONE);
+ lblAccessControl.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
+ lblAccessControl.setText("Access Control: ");
+
+ txtAccessControl = new Text(container, SWT.BORDER);
+ txtAccessControl.setText("*");
+ GridData accessControlData = new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1);
+ accessControlData.widthHint = 300;
+ txtAccessControl.setLayoutData(accessControlData);
+
+ new Label(container, SWT.NONE);
+ Label lblAccessControlInfo = new Label(container, SWT.TOP);
+ lblAccessControlInfo.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1));
+ lblAccessControlInfo.setText("(Comma separated list of IP addresses)");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeWizard.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeWizard.java
new file mode 100644
index 00000000..1b22cc77
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/CreateVolumeWizard.java
@@ -0,0 +1,23 @@
+package com.gluster.storage.management.gui.dialogs;
+
+import org.eclipse.jface.wizard.Wizard;
+
+public class CreateVolumeWizard extends Wizard {
+
+ public CreateVolumeWizard() {
+ setWindowTitle("Gluster Management Console - Create Volume");
+ setHelpAvailable(false); // TODO: Introduce wizard help
+ }
+
+ @Override
+ public void addPages() {
+ addPage(new CreateVolumePage1());
+ }
+
+ @Override
+ public boolean performFinish() {
+ System.out.println("Finishing volume creation!");
+ // TODO: Add code to create volume
+ return true;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskPage1.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskPage1.java
new file mode 100644
index 00000000..47b43090
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskPage1.java
@@ -0,0 +1,185 @@
+package com.gluster.storage.management.gui.dialogs;
+
+import java.util.List;
+
+import org.eclipse.jface.layout.TableColumnLayout;
+import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.swt.widgets.Text;
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.GlusterDummyModel;
+import com.gluster.storage.management.core.model.Volume;
+import com.gluster.storage.management.core.utils.NumberUtil;
+import com.gluster.storage.management.gui.TableLabelProviderAdapter;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+public class MigrateDiskPage1 extends WizardPage {
+ private static final String PAGE_NAME = "migrate.disk.page.1";
+ private enum DISK_TABLE_COLUMN_INDICES {
+ SERVER, DISK, SPACE, SPACE_IN_USE
+ }
+ private static final String[] DISK_TABLE_COLUMN_NAMES = { "Server", "Disk", "Space (GB)", "Used Space (GB)" };
+
+ private Volume volume;
+ private Disk fromDisk;
+ private static final GUIHelper guiHelper = GUIHelper.getInstance();
+
+ private ITableLabelProvider getDiskLabelProvider() {
+ return new TableLabelProviderAdapter() {
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ if (!(element instanceof Disk)) {
+ return null;
+ }
+
+ Disk disk = (Disk) element;
+ return (columnIndex == DISK_TABLE_COLUMN_INDICES.SERVER.ordinal() ? disk.getServer().getName()
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.DISK.ordinal() ? disk.getName()
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.SPACE.ordinal() ? NumberUtil.formatNumber(disk.getSpace())
+ : columnIndex == DISK_TABLE_COLUMN_INDICES.SPACE_IN_USE.ordinal() ? NumberUtil.formatNumber(disk.getSpaceInUse())
+ : "Invalid");
+ }
+ };
+ }
+
+ private void setupDiskTable(Composite parent, Table table) {
+ table.setHeaderVisible(true);
+ table.setLinesVisible(false);
+
+ TableColumnLayout tableColumnLayout = guiHelper.createTableColumnLayout(table, DISK_TABLE_COLUMN_NAMES);
+ parent.setLayout(tableColumnLayout);
+
+ setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.SERVER, SWT.CENTER, 100);
+ setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.DISK, SWT.CENTER, 100);
+ setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.SPACE, SWT.CENTER, 90);
+ setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.SPACE_IN_USE, SWT.CENTER, 90);
+ }
+
+ /**
+ * Sets properties for alignment and weight of given column of given table
+ *
+ * @param table
+ * @param columnIndex
+ * @param alignment
+ * @param weight
+ */
+ public void setColumnProperties(Table table, DISK_TABLE_COLUMN_INDICES columnIndex, int alignment, int weight) {
+ TableColumn column = table.getColumn(columnIndex.ordinal());
+ column.setAlignment(alignment);
+
+ TableColumnLayout tableColumnLayout = (TableColumnLayout) table.getParent().getLayout();
+ tableColumnLayout.setColumnData(column, new ColumnWeightData(weight));
+ }
+
+
+ /**
+ * Create the wizard.
+ */
+ public MigrateDiskPage1(Volume volume, Disk disk) {
+ super(PAGE_NAME);
+ this.volume = volume;
+ this.fromDisk = disk;
+ setTitle("Migrate Disk [" + volume.getName() + "]");
+// setDescription("Migrate data from one disk to another for the chosen Volume. " +
+// "This will copy all data present in the \"from disk\" of the volume " +
+// "to \"to disk\", remove \"from disk\" from the volume, and " +
+// "add \"to disk\" to the volume");
+ setDescription("Migrate volume data from \"From Disk\" to \"To Disk\"");
+ }
+
+ private void setupPageLayout(Composite container) {
+ final GridLayout layout = new GridLayout(2, false);
+ layout.verticalSpacing = 10;
+ layout.horizontalSpacing = 10;
+ layout.marginTop = 10;
+ layout.marginLeft = 10;
+ layout.marginRight = 10;
+ container.setLayout(layout);
+ }
+
+ private Composite createTableViewerComposite(Composite parent) {
+ Composite tableViewerComposite = new Composite(parent, SWT.NONE);
+ tableViewerComposite.setLayout(new FillLayout(SWT.HORIZONTAL));
+ tableViewerComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ return tableViewerComposite;
+ }
+
+ /**
+ * Create contents of the wizard.
+ *
+ * @param parent
+ */
+ public void createControl(Composite parent) {
+ Composite container = new Composite(parent, SWT.NULL);
+ setControl(container);
+
+ setupPageLayout(container);
+
+ GridData labelLayoutData = new GridData(SWT.LEFT, SWT.BOTTOM, true, false);
+ labelLayoutData.minimumWidth = 100;
+ labelLayoutData.verticalAlignment = SWT.BOTTOM;
+ //labelLayoutData.verticalIndent = 10;
+
+ Label lblFromDisk = new Label(container, SWT.NONE);
+ lblFromDisk.setText("From Disk:");
+ lblFromDisk.setLayoutData(labelLayoutData);
+ Label lblToDisk = new Label(container, SWT.NONE);
+ lblToDisk.setText("To Disk:");
+ lblToDisk.setLayoutData(labelLayoutData);
+
+ Text txtFilterFrom = guiHelper.createFilterText(container);
+ Text txtFilterTo = guiHelper.createFilterText(container);
+
+ ITableLabelProvider diskLabelProvider = getDiskLabelProvider();
+
+ GlusterDummyModel glusterDummyModel = GlusterDummyModel.getInstance();
+ List fromDisks = glusterDummyModel.getReadyDisksOfVolume(volume);
+ List toDisks = glusterDummyModel.getReadyDisksOfAllServersExcluding(volume.getDisks());
+
+ TableViewer tableViewerFrom = createTableViewer(container, diskLabelProvider, fromDisks, txtFilterFrom);
+ if(fromDisk != null) {
+ setFromDisk(tableViewerFrom, fromDisk);
+ }
+
+ createTableViewer(container, diskLabelProvider, toDisks, txtFilterTo);
+ }
+
+ private void setFromDisk(TableViewer tableViewer, Disk diskToSelect) {
+ Table table = tableViewer.getTable();
+ for(int i = 0 ; i < table.getItemCount(); i++) {
+ TableItem item = table.getItem(i);
+ if(item.getData() == diskToSelect) {
+ table.select(i);
+ return;
+ }
+ }
+ }
+
+ private TableViewer createTableViewer(Composite container, ITableLabelProvider diskLabelProvider, List fromDisks, Text txtFilterText) {
+ Composite tableViewerComposite = createTableViewerComposite(container);
+
+ TableViewer tableViewer = new TableViewer(tableViewerComposite, SWT.SINGLE);
+ tableViewer.setContentProvider(new ArrayContentProvider());
+ tableViewer.setLabelProvider(diskLabelProvider);
+
+ setupDiskTable(tableViewerComposite, tableViewer.getTable());
+ guiHelper.createFilter(tableViewer, txtFilterText, false);
+
+ tableViewer.setInput(fromDisks.toArray());
+ return tableViewer;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskWizard.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskWizard.java
new file mode 100644
index 00000000..f9416c9f
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/MigrateDiskWizard.java
@@ -0,0 +1,30 @@
+package com.gluster.storage.management.gui.dialogs;
+
+import org.eclipse.jface.wizard.Wizard;
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.Volume;
+
+public class MigrateDiskWizard extends Wizard {
+ private Volume volume;
+ private Disk disk;
+
+ public MigrateDiskWizard(Volume volume, Disk disk) {
+ setWindowTitle("Gluster Management Console - Migrate Disk [" + volume.getName() + "]");
+ this.volume = volume;
+ this.disk = disk;
+ setHelpAvailable(false); // TODO: Introduce wizard help
+ }
+
+ @Override
+ public void addPages() {
+ addPage(new MigrateDiskPage1(volume, disk));
+ }
+
+ @Override
+ public boolean performFinish() {
+ System.out.println("Triggered Disk Migration!");
+ // TODO: Add code to migrate disk
+ return true;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/SelectDisksDialog.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/SelectDisksDialog.java
new file mode 100644
index 00000000..57caa8e4
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/SelectDisksDialog.java
@@ -0,0 +1,77 @@
+package com.gluster.storage.management.gui.dialogs;
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Shell;
+
+import com.gluster.storage.management.core.model.GlusterDummyModel;
+
+public class SelectDisksDialog extends Dialog {
+
+ /**
+ * Create the dialog.
+ *
+ * @param parentShell
+ */
+ public SelectDisksDialog(Shell parentShell) {
+ super(parentShell);
+ setShellStyle(getShellStyle() | SWT.RESIZE);
+ }
+
+ /**
+ * Create contents of the dialog.
+ *
+ * @param parent
+ */
+ @Override
+ protected Control createDialogArea(Composite parent) {
+ Composite container = new Composite(parent, SWT.NONE);
+ GridLayout containerLayout = new GridLayout(2, false);
+ container.setLayout(containerLayout);
+ GridData containerLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ container.setLayoutData(containerLayoutData);
+
+ getShell().setText("Create Volume - Select Disks");
+ CreateVolumeDisksPage disksPage = new CreateVolumeDisksPage(container, SWT.NONE, GlusterDummyModel
+ .getInstance().getReadyDisksOfAllServers());
+
+ return container;
+ }
+
+ /**
+ * Create contents of the button bar.
+ *
+ * @param parent
+ */
+ @Override
+ protected void createButtonsForButtonBar(Composite parent) {
+ createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
+ createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
+ }
+
+ /**
+ * Return the initial size of the dialog.
+ */
+ @Override
+ protected Point getInitialSize() {
+ return new Point(1024, 600);
+ }
+
+ @Override
+ protected void cancelPressed() {
+ // TODO Auto-generated method stub
+ super.cancelPressed();
+ }
+
+ @Override
+ protected void okPressed() {
+ // TODO Auto-generated method stub
+ super.okPressed();
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/Messages.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/Messages.java
new file mode 100644
index 00000000..57293228
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/Messages.java
@@ -0,0 +1,23 @@
+package com.gluster.storage.management.gui.editor;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "com.gluster.storage.management.gui.editor.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private Messages() {
+ }
+
+ public static String getString(String key) {
+ // TODO Auto-generated method stub
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage.java
new file mode 100644
index 00000000..7b87aba4
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage.java
@@ -0,0 +1,158 @@
+package com.gluster.storage.management.gui.editor;
+
+import org.eclipse.jface.bindings.keys.KeyStroke;
+import org.eclipse.jface.bindings.keys.ParseException;
+import org.eclipse.jface.fieldassist.ComboContentAdapter;
+import org.eclipse.jface.fieldassist.ContentProposalAdapter;
+import org.eclipse.jface.fieldassist.SimpleContentProposalProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CCombo;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.events.ExpansionAdapter;
+import org.eclipse.ui.forms.events.ExpansionEvent;
+import org.eclipse.ui.forms.widgets.ColumnLayout;
+import org.eclipse.ui.forms.widgets.FormText;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+
+import com.swtdesigner.SWTResourceManager;
+
+public class SettingsPage extends FormPage {
+
+ public static final String ID = "com.gluster.storage.management.gui.editor.ClusterSummaryPage";
+
+ /**
+ * Create the form page.
+ *
+ * @param id
+ * @param title
+ */
+ public SettingsPage(String title) {
+ super(ID, title);
+ }
+
+ /**
+ * Create the form page.
+ *
+ * @param editor
+ * @param id
+ * @param title
+ * @wbp.parser.constructor
+ * @wbp.eval.method.parameter title "Some title"
+ */
+ public SettingsPage(FormEditor editor, String title) {
+ super(editor, ID, title);
+ }
+
+ private void setupForm(FormToolkit toolkit, final ScrolledForm form) {
+ form.setText("Settings");
+ toolkit.decorateFormHeading(form.getForm());
+
+ ColumnLayout layout = new ColumnLayout();
+
+ // layout.topMargin = 0;
+ // layout.bottomMargin = 5;
+ // layout.leftMargin = 10;
+ // layout.rightMargin = 10;
+ // layout.horizontalSpacing = 10;
+ // layout.verticalSpacing = 10;
+ // layout.maxNumColumns = 4;
+ // layout.minNumColumns = 1;
+
+ form.getBody().setLayout(layout);
+ }
+
+ /**
+ * Create contents of the form.
+ *
+ * @param managedForm
+ */
+ @Override
+ protected void createFormContent(IManagedForm managedForm) {
+ FormToolkit toolkit = managedForm.getToolkit();
+ final ScrolledForm form = managedForm.getForm();
+
+ setupForm(toolkit, form);
+ createClusterSettingsSection(toolkit, form);
+ }
+
+ private Composite createSection(final ScrolledForm form,
+ FormToolkit toolkit, String title, String desc, int numColumns,
+ boolean collapsible) {
+ int style = Section.TITLE_BAR | Section.EXPANDED;
+ if (desc != null && !desc.isEmpty()) {
+ style |= Section.DESCRIPTION;
+ }
+ if (collapsible) {
+ style |= Section.TWISTIE;
+ }
+
+ Section section = toolkit.createSection(form.getBody(), style);
+ section.setText(title);
+ section.setDescription(desc);
+
+ // toolkit.createCompositeSeparator(section);
+ Composite client = toolkit.createComposite(section);
+ GridLayout layout = new GridLayout();
+ layout.marginWidth = layout.marginHeight = 0;
+ layout.numColumns = numColumns;
+ client.setLayout(layout);
+ section.setClient(client);
+ new Label(client, SWT.NONE);
+ section.addExpansionListener(new ExpansionAdapter() {
+ public void expansionStateChanged(ExpansionEvent e) {
+ form.reflow(false);
+ }
+ });
+ return client;
+ }
+
+ private void createClusterSettingsSection(FormToolkit toolkit,
+ final ScrolledForm form) {
+ Composite sectionClient = createSection(form, toolkit, "Volumes", null,
+ 2, false);
+
+ Label lblNumberOfVolumes = toolkit.createLabel(sectionClient,
+ "Number of Volumes: ", SWT.NONE);
+ Label lblVolumeCount = toolkit.createLabel(sectionClient, "12",
+ SWT.NONE);
+ Label lblOnline = toolkit.createLabel(sectionClient, "Online: ",
+ SWT.NONE);
+ Label labelOnlineCount = toolkit.createLabel(sectionClient, "9",
+ SWT.NONE);
+ labelOnlineCount.setForeground(SWTResourceManager
+ .getColor(SWT.COLOR_DARK_GREEN));
+ Label lblOffline = toolkit.createLabel(sectionClient, "Offline: ",
+ SWT.NONE);
+ Label lblOfflineCount = toolkit.createLabel(sectionClient, "3",
+ SWT.NONE);
+ lblOfflineCount.setForeground(SWTResourceManager
+ .getColor(SWT.COLOR_RED));
+ /*CCombo cboTimeZone = new CCombo(sectionClient, SWT.FLAT);
+ cboTimeZone.setData(FormToolkit.KEY_DRAW_BORDER,
+ FormToolkit.TEXT_BORDER);*/
+ /*toolkit.paintBordersFor(sectionClient);
+
+ cboTimeZone.add("Asia/Calcutta");
+ try {
+ ContentProposalAdapter proposalAdapter = new ContentProposalAdapter(
+ cboTimeZone, new ComboContentAdapter(),
+ new SimpleContentProposalProvider(
+ new String[] { "Asia/Calcutta" }),
+ KeyStroke.getInstance("Ctrl+Space"), null);
+ } catch (ParseException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }*/
+
+ /*Label lblTimeServer = toolkit.createLabel(sectionClient, "Network Time GlusterServer",
+ SWT.NONE);*/
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage1.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage1.java
new file mode 100644
index 00000000..146e2fa4
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/SettingsPage1.java
@@ -0,0 +1,173 @@
+package com.gluster.storage.management.gui.editor;
+
+import org.eclipse.jface.fieldassist.ComboContentAdapter;
+import org.eclipse.jface.fieldassist.ContentProposalAdapter;
+import org.eclipse.jface.fieldassist.SimpleContentProposalProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.events.ExpansionAdapter;
+import org.eclipse.ui.forms.events.ExpansionEvent;
+import org.eclipse.ui.forms.widgets.ColumnLayout;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class SettingsPage1 extends FormPage {
+
+ public static final String ID = "com.gluster.storage.management.gui.editor.ClusterSummaryPage";
+
+ /**
+ * Create the form page.
+ *
+ * @param id
+ * @param title
+ */
+ public SettingsPage1(String title) {
+ super(ID, title);
+ }
+
+ /**
+ * Create the form page.
+ *
+ * @param editor
+ * @param id
+ * @param title
+ * @wbp.parser.constructor
+ * @wbp.eval.method.parameter title "Some title"
+ */
+ public SettingsPage1(FormEditor editor, String title) {
+ super(editor, ID, title);
+ }
+
+ private void setupForm(FormToolkit toolkit, final ScrolledForm form) {
+ form.setText("Settings");
+ toolkit.decorateFormHeading(form.getForm());
+
+ ColumnLayout layout = new ColumnLayout();
+
+ // layout.topMargin = 0;
+ // layout.bottomMargin = 5;
+ // layout.leftMargin = 10;
+ // layout.rightMargin = 10;
+ // layout.horizontalSpacing = 10;
+ // layout.verticalSpacing = 10;
+ // layout.maxNumColumns = 4;
+ // layout.minNumColumns = 1;
+
+ form.getBody().setLayout(layout);
+ }
+
+ /**
+ * Create contents of the form.
+ *
+ * @param managedForm
+ */
+ @Override
+ protected void createFormContent(IManagedForm managedForm) {
+ FormToolkit toolkit = managedForm.getToolkit();
+ final ScrolledForm form = managedForm.getForm();
+
+ setupForm(toolkit, form);
+ createClusterSettingsSection(toolkit, form);
+ createAppSettingsSection(toolkit, form);
+ }
+
+ private Composite createSection(final ScrolledForm form,
+ FormToolkit toolkit, String title, String desc, int numColumns,
+ boolean collapsible) {
+ int style = Section.TITLE_BAR | Section.EXPANDED;
+ if (desc != null && !desc.isEmpty()) {
+ style |= Section.DESCRIPTION;
+ }
+ if (collapsible) {
+ style |= Section.TWISTIE;
+ }
+
+ Section section = toolkit.createSection(form.getBody(), style);
+ section.setText(title);
+ section.setDescription(desc);
+
+ //toolkit.createCompositeSeparator(section);
+ Composite client = toolkit.createComposite(section);
+ GridLayout layout = new GridLayout();
+ layout.marginWidth = layout.marginHeight = 10;
+ layout.numColumns = numColumns;
+ layout.verticalSpacing = 20;
+ client.setLayout(layout);
+ section.setClient(client);
+ section.addExpansionListener(new ExpansionAdapter() {
+ public void expansionStateChanged(ExpansionEvent e) {
+ form.reflow(false);
+ }
+ });
+ return client;
+ }
+
+ private void createAppSettingsSection(FormToolkit toolkit,
+ final ScrolledForm form) {
+ GridData layoutData = createDefaultLayoutData();
+
+ Composite sectionClient = createSection(form, toolkit, "Application Settings", null,
+ 2, false);
+
+ toolkit.createButton(sectionClient, "Enable Remote CLI?", SWT.CHECK | SWT.FLAT);
+ toolkit.paintBordersFor(sectionClient);
+ }
+
+ private void createClusterSettingsSection(FormToolkit toolkit,
+ final ScrolledForm form) {
+ GridData layoutData = createDefaultLayoutData();
+
+ Composite sectionClient = createSection(form, toolkit, "Cluster Settings", null,
+ 2, false);
+
+ Label lblTimeZone = toolkit.createLabel(sectionClient,
+ "Time Zone: ", SWT.NONE);
+ Combo cboTimeZone = createTimeZoneCombo(sectionClient, layoutData);
+
+ Label lblTimeServer = toolkit.createLabel(sectionClient,
+ "Network Time GlusterServer: ", SWT.NONE);
+ Text txtTimeServer = toolkit.createText(sectionClient, "pool.ntp.org", SWT.BORDER_SOLID);
+ txtTimeServer.setLayoutData(layoutData);
+
+ toolkit.paintBordersFor(sectionClient);
+ }
+
+ private GridData createDefaultLayoutData() {
+ GridData layoutData = new GridData();
+ layoutData.grabExcessHorizontalSpace=true;
+ layoutData.minimumWidth=200;
+ return layoutData;
+ }
+
+ private Combo createTimeZoneCombo(Composite sectionClient, GridData layoutData) {
+ Combo cboTimeZone = new Combo(sectionClient, SWT.FLAT);
+ cboTimeZone.setData(FormToolkit.KEY_DRAW_BORDER,
+ FormToolkit.TEXT_BORDER);
+ cboTimeZone.setLayoutData(layoutData);
+
+ for(String timeZone : TimeZones.timeZones) {
+ cboTimeZone.add(timeZone);
+ }
+ cboTimeZone.setText("Asia/Calcutta");
+
+ SimpleContentProposalProvider proposalProvider = new SimpleContentProposalProvider(
+ TimeZones.timeZones);
+ proposalProvider.setFiltering(true);
+ ContentProposalAdapter proposalAdapter = new ContentProposalAdapter(
+ cboTimeZone, new ComboContentAdapter(), proposalProvider, null,
+ null);
+ proposalAdapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
+
+ return cboTimeZone;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/ThirdPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/ThirdPage.java
new file mode 100644
index 00000000..921624ec
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/ThirdPage.java
@@ -0,0 +1,147 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package com.gluster.storage.management.gui.editor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.events.ExpansionAdapter;
+import org.eclipse.ui.forms.events.ExpansionEvent;
+import org.eclipse.ui.forms.widgets.ColumnLayout;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Hyperlink;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+/**
+ * @author dejan
+ *
+ * To change the template for this generated type comment go to Window -
+ * Preferences - Java - Code Generation - Code and Comments
+ */
+public class ThirdPage extends FormPage {
+ /**
+ * @param id
+ * @param title
+ */
+ public ThirdPage(FormEditor editor) {
+ super(editor, "third", Messages.getString("ThirdPage.label")); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ protected void createFormContent(IManagedForm managedForm) {
+ ScrolledForm form = managedForm.getForm();
+ //FormToolkit toolkit = managedForm.getToolkit();
+ form.setText(Messages.getString("ThirdPage.title")); //$NON-NLS-1$
+ ColumnLayout layout = new ColumnLayout();
+ layout.topMargin = 0;
+ layout.bottomMargin = 5;
+ layout.leftMargin = 10;
+ layout.rightMargin = 10;
+ layout.horizontalSpacing = 10;
+ layout.verticalSpacing = 10;
+ layout.maxNumColumns = 4;
+ layout.minNumColumns = 1;
+ form.getBody().setLayout(layout);
+ //form.getBody().setBackground(
+ // form.getBody().getDisplay().getSystemColor(SWT.COLOR_GREEN));
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.ls1.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.ls1.desc"), 2); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.ls2.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.ls2.desc"), 2); //$NON-NLS-1$
+ createMixedSection(managedForm, Messages.getString("ThirdPage.ms1.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.ms1.desc")); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.ls3.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.ls3.desc"), 4); //$NON-NLS-1$
+ createSectionWithControls(managedForm, Messages.getString("ThirdPage.cs1.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.cs1.desc")); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.ls4.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.ls4.desc"), 3); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.ls5.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.ls5.desc"), 5); //$NON-NLS-1$
+ createMixedSection(managedForm, Messages.getString("ThirdPage.ms2.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.ms2.desc")); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.l6.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.l6.desc"), 2); //$NON-NLS-1$
+ createSectionWithControls(managedForm, Messages.getString("ThirdPage.cs2.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.cs2.desc")); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.l7.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.l7.desc"), 4); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.l8.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.l8.desc"), 2); //$NON-NLS-1$
+ createMixedSection(managedForm, Messages.getString("ThirdPage.m3.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.m3.desc")); //$NON-NLS-1$
+ createSectionWithLinks(managedForm, Messages.getString("ThirdPage.l9.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.l9.desc"), 2); //$NON-NLS-1$
+ createSectionWithControls(managedForm, Messages.getString("ThirdPage.c3.name"), //$NON-NLS-1$
+ Messages.getString("ThirdPage.c3.desc")); //$NON-NLS-1$
+ }
+ private void createSectionWithLinks(IManagedForm mform, String title,
+ String desc, int nlinks) {
+ Composite client = createSection(mform, title, desc, 1);
+ FormToolkit toolkit = mform.getToolkit();
+ for (int i = 1; i <= nlinks; i++)
+ toolkit.createHyperlink(client, Messages.getString("ThirdPage.link") + i, SWT.WRAP); //$NON-NLS-1$
+ }
+ private void createSectionWithControls(IManagedForm mform, String title,
+ String desc) {
+ Composite client = createSection(mform, title, desc, 1);
+ FormToolkit toolkit = mform.getToolkit();
+ toolkit.createButton(client, Messages.getString("ThirdPage.button1"), SWT.RADIO); //$NON-NLS-1$
+ toolkit.createButton(client, Messages.getString("ThirdPage.button2"), SWT.RADIO); //$NON-NLS-1$
+ toolkit.createButton(client, Messages.getString("ThirdPage.button3"), //$NON-NLS-1$
+ SWT.RADIO);
+ toolkit.createButton(client, Messages.getString("ThirdPage.checkbox"), SWT.CHECK); //$NON-NLS-1$
+ }
+ private void createMixedSection(IManagedForm mform, String title, String desc) {
+ Composite client = createSection(mform, title, desc, 2);
+ FormToolkit toolkit = mform.getToolkit();
+ Hyperlink link = toolkit.createHyperlink(client,
+ Messages.getString("ThirdPage.longlink"), SWT.WRAP); //$NON-NLS-1$
+ GridData gd = new GridData();
+ gd.horizontalSpan = 2;
+ link.setLayoutData(gd);
+ link = toolkit.createHyperlink(client, Messages.getString("ThirdPage.link2"), //$NON-NLS-1$
+ SWT.WRAP);
+ gd = new GridData();
+ gd.horizontalSpan = 2;
+ link.setLayoutData(gd);
+ toolkit.createLabel(client, Messages.getString("ThirdPage.textLabel")); //$NON-NLS-1$
+ Text text = toolkit.createText(client, "", SWT.SINGLE); //$NON-NLS-1$
+ gd = new GridData();
+ gd.widthHint = 150;
+ text.setLayoutData(gd);
+ //toolkit.paintBordersFor(client);
+ }
+ private Composite createSection(IManagedForm mform, String title,
+ String desc, int numColumns) {
+ final ScrolledForm form = mform.getForm();
+ FormToolkit toolkit = mform.getToolkit();
+ Section section = toolkit.createSection(form.getBody(), Section.TWISTIE
+ | Section.TITLE_BAR | Section.DESCRIPTION | Section.EXPANDED);
+ section.setText(title);
+ section.setDescription(desc);
+ //toolkit.createCompositeSeparator(section);
+ Composite client = toolkit.createComposite(section);
+ GridLayout layout = new GridLayout();
+ layout.marginWidth = layout.marginHeight = 0;
+ layout.numColumns = numColumns;
+ client.setLayout(layout);
+ section.setClient(client);
+ section.addExpansionListener(new ExpansionAdapter() {
+ public void expansionStateChanged(ExpansionEvent e) {
+ form.reflow(false);
+ }
+ });
+ return client;
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/TimeZones.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/TimeZones.java
new file mode 100644
index 00000000..278c0830
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/TimeZones.java
@@ -0,0 +1,161 @@
+package com.gluster.storage.management.gui.editor;
+
+public interface TimeZones {
+ public String[] timeZones = { "Africa/Abidjan", "Africa/Accra",
+ "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara",
+ "Africa/Asmera", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul",
+ "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville",
+ "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca",
+ "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar",
+ "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala",
+ "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone",
+ "Africa/Harare", "Africa/Johannesburg", "Africa/Kampala",
+ "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa",
+ "Africa/Lagos", "Africa/Libreville", "Africa/Lome",
+ "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka",
+ "Africa/Malabo", "Africa/Maputo", "Africa/Maseru",
+ "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia",
+ "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey",
+ "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo",
+ "Africa/Sao_Tome", "Africa/Timbuktu", "Africa/Tripoli",
+ "Africa/Tunis", "Africa/Windhoek", "America/Adak",
+ "America/Anchorage", "America/Anguilla", "America/Antigua",
+ "America/Araguaina", "America/Argentina/Buenos_Aires",
+ "America/Argentina/Catamarca", "America/Argentina/ComodRivadavia",
+ "America/Argentina/Cordoba", "America/Argentina/Jujuy",
+ "America/Argentina/La_Rioja", "America/Argentina/Mendoza",
+ "America/Argentina/Rio_Gallegos", "America/Argentina/Salta",
+ "America/Argentina/San_Juan", "America/Argentina/San_Luis",
+ "America/Argentina/Tucuman", "America/Argentina/Ushuaia",
+ "America/Aruba", "America/Asuncion", "America/Atikokan",
+ "America/Atka", "America/Bahia", "America/Barbados",
+ "America/Belem", "America/Belize", "America/Blanc-Sablon",
+ "America/Boa_Vista", "America/Bogota", "America/Boise",
+ "America/Buenos_Aires", "America/Cambridge_Bay",
+ "America/Campo_Grande", "America/Cancun", "America/Caracas",
+ "America/Catamarca", "America/Cayenne", "America/Cayman",
+ "America/Chicago", "America/Chihuahua", "America/Coral_Harbour",
+ "America/Cordoba", "America/Costa_Rica", "America/Cuiaba",
+ "America/Curacao", "America/Danmarkshavn", "America/Dawson",
+ "America/Dawson_Creek", "America/Denver", "America/Detroit",
+ "America/Dominica", "America/Edmonton", "America/Eirunepe",
+ "America/El_Salvador", "America/Ensenada", "America/Fortaleza",
+ "America/Fort_Wayne", "America/Glace_Bay", "America/Godthab",
+ "America/Goose_Bay", "America/Grand_Turk", "America/Grenada",
+ "America/Guadeloupe", "America/Guatemala", "America/Guayaquil",
+ "America/Guyana", "America/Halifax", "America/Havana",
+ "America/Hermosillo", "America/Indianapolis",
+ "America/Indiana/Indianapolis", "America/Indiana/Knox",
+ "America/Indiana/Marengo", "America/Indiana/Petersburg",
+ "America/Indiana/Tell_City", "America/Indiana/Vevay",
+ "America/Indiana/Vincennes", "America/Indiana/Winamac",
+ "America/Inuvik", "America/Iqaluit", "America/Jamaica",
+ "America/Jujuy", "America/Juneau", "America/Kentucky/Louisville",
+ "America/Kentucky/Monticello", "America/Knox_IN", "America/La_Paz",
+ "America/Lima", "America/Los_Angeles", "America/Louisville",
+ "America/Maceio", "America/Managua", "America/Manaus",
+ "America/Marigot", "America/Martinique", "America/Mazatlan",
+ "America/Mendoza", "America/Menominee", "America/Merida",
+ "America/Mexico_City", "America/Miquelon", "America/Moncton",
+ "America/Monterrey", "America/Montevideo", "America/Montreal",
+ "America/Montserrat", "America/Nassau", "America/New_York",
+ "America/Nipigon", "America/Nome", "America/Noronha",
+ "America/North_Dakota/Center", "America/North_Dakota/New_Salem",
+ "America/Panama", "America/Pangnirtung", "America/Paramaribo",
+ "America/Phoenix", "America/Porto_Acre", "America/Porto_Velho",
+ "America/Port-au-Prince", "America/Port_of_Spain",
+ "America/Puerto_Rico", "America/Rainy_River",
+ "America/Rankin_Inlet", "America/Recife", "America/Regina",
+ "America/Resolute", "America/Rio_Branco", "America/Rosario",
+ "America/Santarem", "America/Santiago", "America/Santo_Domingo",
+ "America/Sao_Paulo", "America/Scoresbysund", "America/Shiprock",
+ "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts",
+ "America/St_Lucia", "America/St_Thomas", "America/St_Vincent",
+ "America/Swift_Current", "America/Tegucigalpa", "America/Thule",
+ "America/Thunder_Bay", "America/Tijuana", "America/Toronto",
+ "America/Tortola", "America/Vancouver", "America/Virgin",
+ "America/Whitehorse", "America/Winnipeg", "America/Yakutat",
+ "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis",
+ "Antarctica/DumontDUrville", "Antarctica/Mawson",
+ "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera",
+ "Antarctica/South_Pole", "Antarctica/Syowa", "Antarctica/Vostok",
+
+ "Arctic/Longyearbyen",
+
+ "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr",
+ "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Ashkhabad",
+ "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok",
+ "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Calcutta",
+ "Asia/Choibalsan", "Asia/Chongqing", "Asia/Chungking",
+ "Asia/Colombo", "Asia/Dacca", "Asia/Damascus", "Asia/Dhaka",
+ "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Gaza",
+ "Asia/Harbin", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Ho_Chi_Minh",
+ "Asia/Irkutsk", "Asia/Istanbul", "Asia/Jakarta", "Asia/Jayapura",
+ "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi",
+ "Asia/Kashgar", "Asia/Kathmandu", "Asia/Katmandu", "Asia/Kolkata",
+ "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching",
+ "Asia/Kuwait", "Asia/Macao", "Asia/Macau", "Asia/Magadan",
+ "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia",
+ "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral",
+ "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang",
+ "Asia/Qatar", "Asia/Qyzylorda", "Asia/Rangoon", "Asia/Riyadh",
+ "Asia/Riyadh87", "Asia/Riyadh88", "Asia/Riyadh89", "Asia/Saigon",
+ "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai",
+ "Asia/Singapore", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi",
+ "Asia/Tehran", "Asia/Tel_Aviv", "Asia/Thimbu", "Asia/Thimphu",
+ "Asia/Tokyo", "Asia/Ujung_Pandang", "Asia/Ulaanbaatar",
+ "Asia/Ulan_Bator", "Asia/Urumqi", "Asia/Vientiane",
+ "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yekaterinburg",
+ "Asia/Yerevan",
+
+ "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary",
+ "Atlantic/Cape_Verde", "Atlantic/Faeroe", "Atlantic/Faroe",
+ "Atlantic/Jan_Mayen", "Atlantic/Madeira", "Atlantic/Reykjavik",
+ "Atlantic/South_Georgia", "Atlantic/Stanley", "Atlantic/St_Helena",
+ "Australia/ACT", "Australia/Adelaide", "Australia/Brisbane",
+ "Australia/Broken_Hill", "Australia/Canberra", "Australia/Currie",
+ "Australia/Darwin", "Australia/Eucla", "Australia/Hobart",
+ "Australia/LHI", "Australia/Lindeman", "Australia/Lord_Howe",
+ "Australia/Melbourne", "Australia/NSW", "Australia/North",
+ "Australia/Perth", "Australia/Queensland", "Australia/South",
+ "Australia/Sydney", "Australia/Tasmania", "Australia/Victoria",
+ "Australia/West", "Australia/Yancowinna",
+
+ "Europe/Amsterdam", "Europe/Andorra", "Europe/Athens",
+ "Europe/Belfast", "Europe/Belgrade", "Europe/Berlin",
+ "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest",
+ "Europe/Budapest", "Europe/Chisinau", "Europe/Copenhagen",
+ "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey",
+ "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul",
+ "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev",
+ "Europe/Lisbon", "Europe/Ljubljana", "Europe/London",
+ "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta",
+ "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco",
+ "Europe/Moscow", "Europe/Nicosia", "Europe/Oslo", "Europe/Paris",
+ "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome",
+ "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo",
+ "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia",
+ "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane",
+ "Europe/Tiraspol", "Europe/Uzhgorod", "Europe/Vaduz",
+ "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius",
+ "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb",
+ "Europe/Zaporozhye", "Europe/Zurich",
+
+ "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas",
+ "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe",
+ "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte",
+ "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland",
+ "Pacific/Chatham", "Pacific/Easter", "Pacific/Efate",
+ "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji",
+ "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier",
+ "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu",
+ "Pacific/Johnston", "Pacific/Kiritimati", "Pacific/Kosrae",
+ "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas",
+ "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue",
+ "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago",
+ "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Ponape",
+ "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan",
+ "Pacific/Samoa", "Pacific/Tahiti", "Pacific/Tarawa",
+ "Pacific/Tongatapu", "Pacific/Truk", "Pacific/Wake",
+ "Pacific/Wallis", "Pacific/Yap", "UTC" };
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/messages_en_IN.properties b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/messages_en_IN.properties
new file mode 100644
index 00000000..e0ff7a02
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/editor/messages_en_IN.properties
@@ -0,0 +1,96 @@
+FreeFormPage.label=First Page
+FreeFormPage.title=Free-form text with links
+FreeFormPage.link=Sample hyperlink with longer text.
+FreeFormPage.button=Button
+FreeFormPage.sectionTitle1=Expandable Section with a longer title
+FreeFormPage.sectionTitle2=Section title
+FreeFormPage.sectionDescription=This is a section description that should be rendered below the separator.
+FreeFormPage.mtitle=Eclipse Forms
+FreeFormPage.mtext=Link activated: href=
+SecondPage.label=Section Page
+SecondPage.title=Title for the second page
+SecondPage.firstSection=First Table Section
+SecondPage.secondSection=Second Table Section
+SecondPage.add=Add...
+SecondPage.desc=This section has a tree and a button.
+ScrolledPropertiesBlock.sname=Model Objects
+ScrolledPropertiesBlock.sdesc=The list contains objects from the model whose details are editable on the right
+ScrolledPropertiesBlock.add=Add...
+ScrolledPropertiesBlock.horizontal=Horizontal orientation
+ScrolledPropertiesBlock.vertical=Vertical orientation
+TypeOneDetailsPage.name=Set the properties of the selected TypeOne object.
+TypeTwoDetailsPage.name=Type Two Details
+TypeTwoDetailsPage.desc=Set the properties of the selected TypeTwo object.
+TypeOneDetailsPage.check=Value of the flag property
+TypeOneDetailsPage.label=Text property:
+TypeTwoDetailsPage.flag1=Value of the flag1 property
+TypeTwoDetailsPage.flag2=Value of the flag2 property
+OpenSimpleFormEditorAction.name=Simple Editor
+SimpleModel.t1_i1=TypeOne instance 1
+SimpleModel.text1=Some text
+SimpleModel.t1_i2=TypeOne instance 2
+SimpleModel.text2=Different text
+SimpleModel.t1_i3=TypeOne instance 3
+SimpleModel.text3=Text
+SimpleModel.t1_i4=TypeOne instance 4
+SimpleModel.text4=Longer text
+SimpleModel.t1_i5=TypeOne instance 5
+SimpleModel.text5=Sample
+SimpleModel.t2_i1=TypeTwo instance 1
+SimpleModel.t2_i2=TypeTwo instance 2
+MasterDetailsPage.label=Master Details
+MasterDetailsPage.title=Form with scrolled sections
+ThirdPage.label=Flow Page
+ThirdPage.title=Form with wrapped controls
+ThirdPage.ls1.name=Link Section
+ThirdPage.ls1.desc=An example of a section with links
+ThirdPage.ls2.name=Link Section
+ThirdPage.ls2.desc=An example of a section with links
+ThirdPage.ms1.name=Mixed Section
+ThirdPage.ms1.desc=An example of a section with both links and form controls
+ThirdPage.ls3.name=Link Section
+ThirdPage.ls3.desc=An example of a section with links
+ThirdPage.cs1.name=Control Section
+ThirdPage.cs1.desc=An example of a section with form controls
+ThirdPage.ls4.name=Sample Section
+ThirdPage.ls4.desc=An example of a section with links
+ThirdPage.ls5.name=Sample Section
+ThirdPage.ls5.desc=An example of a section with links
+ThirdPage.ms2.name=Mixed Section
+ThirdPage.ms2.desc=An example of a section with both links and form controls
+ThirdPage.l6.name=Sample Section
+ThirdPage.l6.desc=An example of a section with links
+ThirdPage.cs2.name=Control Section
+ThirdPage.cs2.desc=An example of a section with links
+ThirdPage.l7.name=Sample Section
+ThirdPage.l7.desc=An example of a section with links
+ThirdPage.l8.name=Sample Section
+ThirdPage.l8.desc=An example of a section with links
+ThirdPage.m3.name=Mixed Section
+ThirdPage.m3.desc=An example of a section with both links and form controls
+ThirdPage.l9.name=Sample Section
+ThirdPage.l9.desc=An example of a section with links
+ThirdPage.c3.name=Control Section
+ThirdPage.c3.desc=An example of a section with form controls
+ThirdPage.link=Hyperlink text
+ThirdPage.button1=A radio button 1
+ThirdPage.button2=A radio button 2
+ThirdPage.button3=A radio button with a longer text
+ThirdPage.checkbox=A checkbox button
+ThirdPage.longlink=A longer hyperlink text example
+ThirdPage.link2=Another hyperlink text
+ThirdPage.textLabel=A text label:
+PageWithSubPages.label=Composite Page
+PageWithSubPages.title=Form with subpages
+PageWithSubPages.copyright.tab=Copyright
+PageWithSubPages.copyright.text=Copyright 2004 IBM and others.
+PageWithSubPages.license.tab=License Agreement
+PageWithSubPages.license.text=LICENSE AGREEMENT\n\nUse this feature any way you want.
+PageWithSubPages.desc.tab=Description
+PageWithSubPages.desc.text=A simple description of the feature
+PageWithSubPages.apply=Apply
+PageWithSubPages.reset=Reset
+TypeOne.c1=Choice 1
+TypeOne.c2=Choice 2
+TypeOne.c3=Choice 3
+TypeOne.c4=Choice 4
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/jobs/InitializeDiskJob.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/jobs/InitializeDiskJob.java
new file mode 100644
index 00000000..7614a06d
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/jobs/InitializeDiskJob.java
@@ -0,0 +1,66 @@
+package com.gluster.storage.management.gui.jobs;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.ui.progress.IProgressConstants;
+import org.eclipse.ui.progress.IProgressConstants2;
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.Disk.DISK_STATUS;
+import com.gluster.storage.management.gui.Application;
+import com.gluster.storage.management.gui.IImageKeys;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+public class InitializeDiskJob extends Job {
+ private Disk disk;
+ private Application app = Application.getApplication();
+ private static final GUIHelper guiHelper = GUIHelper.getInstance();
+
+ public InitializeDiskJob(Disk disk) {
+ super("Initialize Disk [" + disk.getQualifiedName() + "]");
+ this.disk = disk;
+ setProperty(IProgressConstants2.SHOW_IN_TASKBAR_ICON_PROPERTY, Boolean.TRUE);
+ setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE);
+ setProperty(IProgressConstants.ICON_PROPERTY, guiHelper.getImageDescriptor(IImageKeys.WORK_IN_PROGRESS));
+ }
+
+ private void updateStatus(final DISK_STATUS status) {
+ disk.setStatus(status);
+ disk.setSpaceInUse(0d);
+ app.entityChanged(disk, new String[] { "status", "spaceInUse" });
+ }
+
+ @Override
+ protected IStatus run(IProgressMonitor monitor) {
+ monitor.beginTask("Formatting the disk...", 100);
+ boolean cancelRequested = false;
+ String msgPrefix = "";
+ try {
+ for (int i = 1; i <= 5; i++) {
+ if (!cancelRequested && monitor.isCanceled()) {
+ cancelRequested = true; // come only once here
+
+ msgPrefix = "This task cannot be cancelled! ";
+ monitor.setTaskName(msgPrefix);
+// setProperty(IProgressConstants.ICON_PROPERTY, guiHelper.getImageDescriptor(IImageKeys.STATUS_CANCELLED));
+//
+// updateStatus(DISK_STATUS.UNINITIALIZED);
+// return new Status(Status.CANCEL, Application.PLUGIN_ID, "Cancelled");
+ }
+ Thread.sleep(2000);
+ monitor.worked(20);
+ monitor.setTaskName(msgPrefix + "[" + 20 * i + "%] completed");
+ }
+ monitor.done();
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+
+ updateStatus(DISK_STATUS.READY);
+ setProperty(IProgressConstants.ICON_PROPERTY, guiHelper.getImageDescriptor(IImageKeys.STATUS_SUCCESS));
+
+ return new Status(Status.OK, Application.PLUGIN_ID, "Task Completed!");
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/login/LoginDialog.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/login/LoginDialog.java
new file mode 100644
index 00000000..230832e1
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/login/LoginDialog.java
@@ -0,0 +1,192 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2005 Jean-Michel Lemieux, Jeff McAffer and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Hyperbola is an RCP application developed for the book
+ * Eclipse Rich Client Platform -
+ * Designing, Coding, and Packaging Java Applications
+ * Addison-Wesley, Summer 2005
+ *
+ * Contributors:
+ * Jean-Michel Lemieux and Jeff McAffer - initial implementation
+ * Nick Edgar and Pascal Rapicault - additional work for EclipseCon 2005 tutorial
+ * http://www.eclipsecon.org/presentations/EclipseCon2005_Tutorial26.pdf
+ *******************************************************************************/
+package com.gluster.storage.management.gui.login;
+
+import org.eclipse.core.databinding.DataBindingContext;
+import org.eclipse.core.databinding.UpdateValueStrategy;
+import org.eclipse.core.databinding.beans.PojoProperties;
+import org.eclipse.jface.databinding.swt.SWTObservables;
+import org.eclipse.jface.databinding.swt.WidgetProperties;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.TraverseEvent;
+import org.eclipse.swt.events.TraverseListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
+
+import com.gluster.storage.management.client.AuthManager;
+import com.gluster.storage.management.core.model.ConnectionDetails;
+import com.gluster.storage.management.gui.IImageKeys;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+import com.gluster.storage.management.gui.validators.StringRequiredValidator;
+
+/**
+ * Login dialog, which prompts for the user's account info, and has Login and Cancel buttons.
+ */
+public class LoginDialog extends Dialog {
+
+ private Text userIdText = null;
+ private Text passwordText = null;
+ private Button okButton;
+
+ private final ConnectionDetails connectionDetails = new ConnectionDetails("", "gluster", "");
+ private final GUIHelper guiHelper = GUIHelper.getInstance();
+ private Composite composite;
+
+ public LoginDialog(Shell parentShell) {
+ super(parentShell);
+ }
+
+ @Override
+ protected void configureShell(Shell newShell) {
+ super.configureShell(newShell);
+
+ newShell.setText("Gluster Management Console");
+ addEscapeListener(newShell);
+ }
+
+ private void addEscapeListener(Shell shell) {
+ shell.addTraverseListener(new TraverseListener() {
+
+ @Override
+ public void keyTraversed(TraverseEvent e) {
+ if (e.keyCode == SWT.ESC) {
+ cancelPressed();
+ }
+ }
+ });
+ }
+
+ private void createUserIdLabel(Composite composite) {
+ Label userIdLabel = new Label(composite, SWT.NONE);
+ userIdLabel.setText("&User ID:");
+ userIdLabel.setLayoutData(new GridData(GridData.END, GridData.CENTER, false, false));
+ }
+
+ private void createUserIdText(Composite composite) {
+ userIdText = new Text(composite, SWT.BORDER);
+ userIdText.setText("gluster");
+ userIdText.setEnabled(false);
+
+ GridData layoutData = new GridData(SWT.FILL, GridData.FILL, true, false);
+ ;
+ layoutData.widthHint = convertWidthInCharsToPixels(32);
+ userIdText.setLayoutData(layoutData);
+ }
+
+ private void createPasswordLabel(Composite composite) {
+ Label passwordLabel = new Label(composite, SWT.NONE);
+ passwordLabel.setText("&Password:");
+ passwordLabel.setLayoutData(new GridData(GridData.END, GridData.CENTER, false, false));
+ }
+
+ private void createPasswordText(Composite composite) {
+ passwordText = new Text(composite, SWT.BORDER | SWT.PASSWORD);
+
+ GridData layoutData = new GridData(SWT.FILL, GridData.FILL, true, false);
+ ;
+ layoutData.widthHint = convertWidthInCharsToPixels(32);
+ passwordText.setLayoutData(layoutData);
+ }
+
+ private void configureDialogLayout(Composite composite) {
+ GridLayout layout = (GridLayout) composite.getLayout();
+ layout.numColumns = 2;
+ layout.marginLeft = 20;
+ layout.marginRight = 20;
+ layout.marginTop = 20;
+ layout.horizontalSpacing = 20;
+ layout.verticalSpacing = 20;
+ }
+
+ /**
+ * Overriding to make sure that the dialog is centered in screen
+ */
+ @Override
+ protected void initializeBounds() {
+ super.initializeBounds();
+
+ guiHelper.centerShellInScreen(getShell());
+ }
+
+ @Override
+ protected Control createDialogArea(Composite parent) {
+ parent.setBackgroundImage(guiHelper.getImage(IImageKeys.DIALOG_SPLASH_IMAGE));
+ parent.setBackgroundMode(SWT.INHERIT_FORCE); // Makes sure that child composites inherit the same background
+
+ composite = (Composite) super.createDialogArea(parent);
+ configureDialogLayout(composite);
+
+ createUserIdLabel(composite);
+ createUserIdText(composite);
+
+ createPasswordLabel(composite);
+ createPasswordText(composite);
+
+ return composite;
+ }
+
+ @Override
+ protected void createButtonsForButtonBar(Composite parent) {
+ okButton = createButton(parent, IDialogConstants.OK_ID, "&Login", true);
+ createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
+
+ setupDataBinding();
+ }
+
+ /**
+ * Sets up data binding between the text fields and the connection details object. Also attaches a "string required"
+ * validator to the "password" text field. This validator is configured to do the following on validation failure
+ *
show an ERROR decorator
disable the "Login" button
+ */
+ private void setupDataBinding() {
+ DataBindingContext dataBindingContext = new DataBindingContext(SWTObservables.getRealm(Display.getCurrent()));
+ UpdateValueStrategy passwordBindingStrategy = new UpdateValueStrategy(UpdateValueStrategy.POLICY_UPDATE);
+
+ // The Validator shows error decoration and disables OK button on validation failure
+ passwordBindingStrategy.setBeforeSetValidator(new StringRequiredValidator("Please enter password!", guiHelper
+ .createErrorDecoration(passwordText), okButton));
+
+ dataBindingContext.bindValue(WidgetProperties.text(SWT.Modify).observe(passwordText),
+ PojoProperties.value("password").observe(connectionDetails), passwordBindingStrategy,
+ passwordBindingStrategy);
+
+ UpdateValueStrategy userIdBindingStrategy = new UpdateValueStrategy(UpdateValueStrategy.POLICY_UPDATE);
+ dataBindingContext
+ .bindValue(WidgetProperties.text(SWT.Modify).observe(userIdText), PojoProperties.value("userId")
+ .observe(connectionDetails), userIdBindingStrategy, userIdBindingStrategy);
+ }
+
+ protected void okPressed() {
+ if (new AuthManager().authenticate(connectionDetails)) {
+ super.okPressed();
+ } else {
+ MessageDialog.openError(getShell(), "Authentication Failed", "Invalid User ID or password");
+ return;
+ }
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ClusterPreferencePage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ClusterPreferencePage.java
new file mode 100644
index 00000000..afec45b9
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ClusterPreferencePage.java
@@ -0,0 +1,65 @@
+package com.gluster.storage.management.gui.preferences;
+
+import org.eclipse.jface.preference.*;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.IWorkbench;
+
+import com.gluster.storage.management.gui.Activator;
+
+/**
+ * This class represents a preference page that
+ * is contributed to the Preferences dialog. By
+ * subclassing FieldEditorPreferencePage, we
+ * can use the field support built into JFace that allows
+ * us to create a page that is small and knows how to
+ * save, restore and apply itself.
+ *
+ * This page is used to modify preferences only. They
+ * are stored in the preference store that belongs to
+ * the main plug-in class. That way, preferences can
+ * be accessed directly via the preference store.
+ */
+
+public class ClusterPreferencePage
+ extends FieldEditorPreferencePage
+ implements IWorkbenchPreferencePage {
+
+ public ClusterPreferencePage() {
+ super(GRID);
+ setPreferenceStore(Activator.getDefault().getPreferenceStore());
+ setDescription("A demonstration of a preference page implementation");
+ }
+
+ /**
+ * Creates the field editors. Field editors are abstractions of
+ * the common GUI blocks needed to manipulate various types
+ * of preferences. Each field editor knows how to save and
+ * restore itself.
+ */
+ public void createFieldEditors() {
+ addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
+ "&Directory preference:", getFieldEditorParent()));
+ addField(
+ new BooleanFieldEditor(
+ PreferenceConstants.P_BOOLEAN,
+ "&An example of a boolean preference",
+ getFieldEditorParent()));
+
+ addField(new RadioGroupFieldEditor(
+ PreferenceConstants.P_CHOICE,
+ "An example of a multiple-choice preference",
+ 1,
+ new String[][] { { "&Choice 1", "choice1" }, {
+ "C&hoice 2", "choice2" }
+ }, getFieldEditorParent()));
+ addField(
+ new StringFieldEditor(PreferenceConstants.P_STRING, "A &text preference:", getFieldEditorParent()));
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
+ */
+ public void init(IWorkbench workbench) {
+ }
+
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ConsolePreferencePage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ConsolePreferencePage.java
new file mode 100644
index 00000000..c06d385a
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/ConsolePreferencePage.java
@@ -0,0 +1,65 @@
+package com.gluster.storage.management.gui.preferences;
+
+import org.eclipse.jface.preference.*;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.IWorkbench;
+
+import com.gluster.storage.management.gui.Activator;
+
+/**
+ * This class represents a preference page that
+ * is contributed to the Preferences dialog. By
+ * subclassing FieldEditorPreferencePage, we
+ * can use the field support built into JFace that allows
+ * us to create a page that is small and knows how to
+ * save, restore and apply itself.
+ *
+ * This page is used to modify preferences only. They
+ * are stored in the preference store that belongs to
+ * the main plug-in class. That way, preferences can
+ * be accessed directly via the preference store.
+ */
+
+public class ConsolePreferencePage
+ extends FieldEditorPreferencePage
+ implements IWorkbenchPreferencePage {
+
+ public ConsolePreferencePage() {
+ super(GRID);
+ setPreferenceStore(Activator.getDefault().getPreferenceStore());
+ setDescription("A demonstration of a preference page implementation");
+ }
+
+ /**
+ * Creates the field editors. Field editors are abstractions of
+ * the common GUI blocks needed to manipulate various types
+ * of preferences. Each field editor knows how to save and
+ * restore itself.
+ */
+ public void createFieldEditors() {
+ addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
+ "&Directory preference:", getFieldEditorParent()));
+ addField(
+ new BooleanFieldEditor(
+ PreferenceConstants.P_BOOLEAN,
+ "&An example of a boolean preference",
+ getFieldEditorParent()));
+
+ addField(new RadioGroupFieldEditor(
+ PreferenceConstants.P_CHOICE,
+ "An example of a multiple-choice preference",
+ 1,
+ new String[][] { { "&Choice 1", "choice1" }, {
+ "C&hoice 2", "choice2" }
+ }, getFieldEditorParent()));
+ addField(
+ new StringFieldEditor(PreferenceConstants.P_STRING, "A &text preference:", getFieldEditorParent()));
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
+ */
+ public void init(IWorkbench workbench) {
+ }
+
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/GlusterPreferencePage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/GlusterPreferencePage.java
new file mode 100644
index 00000000..3d25e992
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/GlusterPreferencePage.java
@@ -0,0 +1,65 @@
+package com.gluster.storage.management.gui.preferences;
+
+import org.eclipse.jface.preference.*;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.IWorkbench;
+
+import com.gluster.storage.management.gui.Activator;
+
+/**
+ * This class represents a preference page that
+ * is contributed to the Preferences dialog. By
+ * subclassing FieldEditorPreferencePage, we
+ * can use the field support built into JFace that allows
+ * us to create a page that is small and knows how to
+ * save, restore and apply itself.
+ *
+ * This page is used to modify preferences only. They
+ * are stored in the preference store that belongs to
+ * the main plug-in class. That way, preferences can
+ * be accessed directly via the preference store.
+ */
+
+public class GlusterPreferencePage
+ extends FieldEditorPreferencePage
+ implements IWorkbenchPreferencePage {
+
+ public GlusterPreferencePage() {
+ super(GRID);
+ setPreferenceStore(Activator.getDefault().getPreferenceStore());
+ setDescription("A demonstration of a preference page implementation");
+ }
+
+ /**
+ * Creates the field editors. Field editors are abstractions of
+ * the common GUI blocks needed to manipulate various types
+ * of preferences. Each field editor knows how to save and
+ * restore itself.
+ */
+ public void createFieldEditors() {
+ addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
+ "&Directory preference:", getFieldEditorParent()));
+ addField(
+ new BooleanFieldEditor(
+ PreferenceConstants.P_BOOLEAN,
+ "&An example of a boolean preference",
+ getFieldEditorParent()));
+
+ addField(new RadioGroupFieldEditor(
+ PreferenceConstants.P_CHOICE,
+ "An example of a multiple-choice preference",
+ 1,
+ new String[][] { { "&Choice 1", "choice1" }, {
+ "C&hoice 2", "choice2" }
+ }, getFieldEditorParent()));
+ addField(
+ new StringFieldEditor(PreferenceConstants.P_STRING, "A &text preference:", getFieldEditorParent()));
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
+ */
+ public void init(IWorkbench workbench) {
+ }
+
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceConstants.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceConstants.java
new file mode 100644
index 00000000..3903eb6e
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceConstants.java
@@ -0,0 +1,16 @@
+package com.gluster.storage.management.gui.preferences;
+
+/**
+ * Constant definitions for plug-in preferences
+ */
+public class PreferenceConstants {
+
+ public static final String P_PATH = "pathPreference";
+
+ public static final String P_BOOLEAN = "booleanPreference";
+
+ public static final String P_CHOICE = "choicePreference";
+
+ public static final String P_STRING = "stringPreference";
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceInitializer.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceInitializer.java
new file mode 100644
index 00000000..5263a5a1
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/preferences/PreferenceInitializer.java
@@ -0,0 +1,26 @@
+package com.gluster.storage.management.gui.preferences;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.jface.preference.IPreferenceStore;
+
+import com.gluster.storage.management.gui.Activator;
+
+/**
+ * Class used to initialize default preference values.
+ */
+public class PreferenceInitializer extends AbstractPreferenceInitializer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
+ */
+ public void initializeDefaultPreferences() {
+ IPreferenceStore store = Activator.getDefault().getPreferenceStore();
+ store.setDefault(PreferenceConstants.P_BOOLEAN, true);
+ store.setDefault(PreferenceConstants.P_CHOICE, "choice2");
+ store.setDefault(PreferenceConstants.P_STRING,
+ "Default value");
+ }
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/IToolbarManager.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/IToolbarManager.java
new file mode 100644
index 00000000..93319be4
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/IToolbarManager.java
@@ -0,0 +1,17 @@
+package com.gluster.storage.management.gui.toolbar;
+
+import com.gluster.storage.management.core.model.Entity;
+
+/**
+ * Whenever the current selection/action demands changes to the toolbar, the toolbar manager is used to update the
+ * toolbar.
+ */
+public interface IToolbarManager {
+ /**
+ * Updates the toolbar for given entity. This typically means that user is working with the given entity, and hence
+ * the toolbar actions related to that entity should be made visible, and other un-related actions should be hidden.
+ *
+ * @param entity
+ */
+ public void updateToolbar(Entity entity);
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/ToolbarManager.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/ToolbarManager.java
new file mode 100644
index 00000000..56831267
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/toolbar/ToolbarManager.java
@@ -0,0 +1,84 @@
+package com.gluster.storage.management.gui.toolbar;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+
+import com.gluster.storage.management.core.model.Cluster;
+import com.gluster.storage.management.core.model.Entity;
+import com.gluster.storage.management.core.model.EntityGroup;
+import com.gluster.storage.management.core.model.GlusterServer;
+import com.gluster.storage.management.core.model.Server;
+import com.gluster.storage.management.core.model.Volume;
+import com.gluster.storage.management.gui.actions.IActionSetIDs;
+
+public class ToolbarManager implements IToolbarManager {
+ private enum ENTITY_TYPE {
+ CLUSTER, VOLUMES, VOLUME, GLUSTER_SERVERS, GLUSTER_SERVER, DISCOVERED_SERVERS, DISCOVERED_SERVER
+ };
+
+ private IWorkbenchWindow window;
+ private final Map, ENTITY_TYPE> entityTypeMap = createEntityTypeMap();
+ private final Map actionSetMap = createActionSetMap();
+
+ private Map, ENTITY_TYPE> createEntityTypeMap() {
+ Map, ENTITY_TYPE> entityTypeMap = new HashMap, ToolbarManager.ENTITY_TYPE>();
+ entityTypeMap.put(Cluster.class, ENTITY_TYPE.CLUSTER);
+ entityTypeMap.put(Volume.class, ENTITY_TYPE.VOLUME);
+ entityTypeMap.put(Server.class, ENTITY_TYPE.DISCOVERED_SERVER);
+ entityTypeMap.put(GlusterServer.class, ENTITY_TYPE.GLUSTER_SERVER);
+
+ return entityTypeMap;
+ }
+
+ private Map createActionSetMap() {
+ Map actionSetMap = new HashMap();
+ actionSetMap.put(ENTITY_TYPE.CLUSTER, IActionSetIDs.ACTION_SET_CLUSTER);
+ actionSetMap.put(ENTITY_TYPE.VOLUMES, IActionSetIDs.ACTION_SET_VOLUMES);
+ actionSetMap.put(ENTITY_TYPE.VOLUME, IActionSetIDs.ACTION_SET_VOLUME);
+ actionSetMap.put(ENTITY_TYPE.GLUSTER_SERVERS, IActionSetIDs.ACTION_SET_GLUSTER_SERVERS);
+ actionSetMap.put(ENTITY_TYPE.GLUSTER_SERVER, IActionSetIDs.ACTION_SET_GLUSTER_SERVER);
+ actionSetMap.put(ENTITY_TYPE.DISCOVERED_SERVERS, IActionSetIDs.ACTION_SET_DISCOVERED_SERVERS);
+ actionSetMap.put(ENTITY_TYPE.DISCOVERED_SERVER, IActionSetIDs.ACTION_SET_DISCOVERED_SERVER);
+
+ return actionSetMap;
+ }
+
+ public ToolbarManager(IWorkbenchWindow window) {
+ this.window = window;
+ }
+
+ @SuppressWarnings("rawtypes")
+ private ENTITY_TYPE getEntityType(Entity entity) {
+ if (entity instanceof EntityGroup) {
+ EntityGroup entityGroup = (EntityGroup) entity;
+ if (entityGroup.getEntityType() == Volume.class) {
+ return ENTITY_TYPE.VOLUMES;
+ } else if (entityGroup.getEntityType() == GlusterServer.class) {
+ return ENTITY_TYPE.GLUSTER_SERVERS;
+ } else {
+ return ENTITY_TYPE.DISCOVERED_SERVERS;
+ }
+ }
+
+ return entityTypeMap.get(entity.getClass());
+ }
+
+ @Override
+ public void updateToolbar(Entity entity) {
+ ENTITY_TYPE entityType = getEntityType(entity);
+ IWorkbenchPage page = window.getActivePage();
+
+ for (ENTITY_TYPE targetEntityType : actionSetMap.keySet()) {
+ String actionSetId = actionSetMap.get(targetEntityType);
+ if (entityType == targetEntityType) {
+ // show only the action set mapped to given entity
+ page.showActionSet(actionSetId);
+ } else {
+ page.hideActionSet(actionSetId);
+ }
+ }
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePicker.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePicker.java
new file mode 100644
index 00000000..77ec58f7
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePicker.java
@@ -0,0 +1,513 @@
+package com.gluster.storage.management.gui.utils;
+
+import java.text.DateFormatSymbols;
+import java.util.Calendar;
+import java.util.Date;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ControlAdapter;
+import org.eclipse.swt.events.ControlEvent;
+import org.eclipse.swt.events.KeyAdapter;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.events.MouseAdapter;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseMoveListener;
+import org.eclipse.swt.events.PaintEvent;
+import org.eclipse.swt.events.PaintListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Canvas;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.TypedListener;
+
+/**
+ * The date picker panel
+ *
+ * changes by sebthom
+ * ~ setDate will fire the Selection event
+ * + you can use setDate(null) to clear the selection,
+ * the calendar will display the current date, but
+ * getDate will return null until the user explicitely
+ * selects a date from the control
+ *
+ * @author Andrey Onistchuk
+ */
+public class DatePicker extends Composite {
+
+ //~ Inner Classes
+ // ----------------------------------------------------------
+ private class DatePanel extends Canvas {
+ //~ Instance fields
+ // ----------------------------------------------------
+ private int colSize;
+ private Display display = Display.getCurrent();
+ private int rowSize;
+ private Calendar temp = Calendar.getInstance();
+
+ //~ Constructors
+ // -------------------------------------------------------
+ public DatePanel(Composite parent, int style) {
+ super(parent, style | SWT.NO_BACKGROUND | SWT.NO_REDRAW_RESIZE);
+
+ GC gc = new GC(this);
+ Point p = gc.stringExtent("Q");
+ gc.dispose();
+ colSize = p.x * 3;
+ rowSize = (int) (p.y * 1.2);
+
+ addPaintListener(new PaintListener() {
+ public void paintControl(PaintEvent event) {
+ onPaint(event);
+ }
+ });
+ addControlListener(new ControlAdapter() {
+ public void controlResized(ControlEvent e) {
+ redraw();
+ }
+ });
+ addKeyListener(new KeyAdapter() {
+ public void keyPressed(KeyEvent e) {
+ onKeyDown(e);
+ }
+ });
+ addMouseListener(new MouseAdapter() {
+ public void mouseDoubleClick(MouseEvent e) {
+ doubleClick();
+ }
+ public void mouseDown(MouseEvent e) {
+ onMouseDown(e);
+ }
+ });
+ addMouseMoveListener(new MouseMoveListener() {
+ public void mouseMove(MouseEvent e) {
+ onMouseMove(e);
+ }
+ });
+ }
+
+ //~ Methods
+ // ------------------------------------------------------------
+ private int computeOffset(int day) {
+ switch (day) {
+ case Calendar.MONDAY :
+ return 1;
+ case Calendar.TUESDAY :
+ return 2;
+ case Calendar.WEDNESDAY :
+ return 3;
+ case Calendar.THURSDAY :
+ return 4;
+ case Calendar.FRIDAY :
+ return 5;
+ case Calendar.SATURDAY :
+ return 6;
+ case Calendar.SUNDAY :
+ return 7;
+ }
+ return -1;
+ }
+
+ public Point computeSize(int wHint, int hHint, boolean changed) {
+ return new Point(colSize * 7, rowSize * 7);
+ }
+
+ /**
+ * Method drawTextImage.
+ *
+ * @param gc
+ * @param string
+ * @param object
+ * @param i
+ * @param i1
+ * @param i2
+ * @param colSize
+ * @param rowSize
+ */
+ private void drawTextImage(GC gc, String string, int x, int y,
+ int colSize, int rowSize) {
+ gc.fillRectangle(x, y, colSize, rowSize);
+ gc.drawString(string, x, y, true);
+ }
+
+ private int getDayFromPoint(int x, int y) {
+ int result = -1;
+
+ for (int i = 1; i <= 31; i++) {
+ Point p = getDayPoint(i);
+ Rectangle r = new Rectangle(p.x, p.y, colSize, rowSize);
+ if (r.contains(x, y)) {
+ result = i;
+ break;
+ }
+ }
+ return result;
+ }
+
+ private String getDayName(int day) {
+ return dateSymbols.getShortWeekdays()[day];
+ }
+
+ private Point getDayPoint(int day) {
+ syncTime();
+ temp.set(Calendar.DAY_OF_MONTH, 1);
+
+ int firstDayOffset = computeOffset(temp.get(Calendar.DAY_OF_WEEK))
+ - 1;
+ temp.set(Calendar.DAY_OF_MONTH, day);
+ int dayOffset = computeOffset(temp.get(Calendar.DAY_OF_WEEK));
+ int x = (dayOffset - 1) * colSize;
+ int y = (1 + (((firstDayOffset + day) - 1) / 7)) * rowSize;
+
+ return new Point(x, y);
+ }
+
+ private int getMaxDay() {
+ syncTime();
+
+ int day = 28;
+
+ for (int i = 0; i < 10; i++) {
+ temp.set(Calendar.DAY_OF_MONTH, day);
+
+ if (temp.get(Calendar.MONTH) != cal.get(Calendar.MONTH)) {
+ return day - 1;
+ }
+ day++;
+ }
+ return -1;
+ }
+
+ private void onKeyDown(KeyEvent e) {
+ if (e.character == SWT.ESC) {
+ dateSelected(false);
+ return;
+ }
+
+ if ((e.character == ' ') || (e.character == '\r')) {
+ dateSelected(true);
+ return;
+ }
+
+ int day = cal.get(Calendar.DAY_OF_MONTH);
+ int month = cal.get(Calendar.MONTH);
+ int oldDay = day;
+ int oldMonth = month;
+
+ if (e.keyCode == SWT.ARROW_LEFT) {
+ day--;
+ }
+
+ if (e.keyCode == SWT.ARROW_RIGHT) {
+ day++;
+ }
+
+ if (e.keyCode == SWT.ARROW_UP) {
+ day = ((day - 7) < 1 ? oldDay : day - 7);
+ }
+
+ if (e.keyCode == SWT.ARROW_DOWN) {
+ day = ((day + 7) > getMaxDay() ? oldDay : day + 7);
+ }
+
+ if (e.keyCode == SWT.PAGE_UP) {
+ month--;
+ }
+
+ if (e.keyCode == SWT.PAGE_DOWN) {
+ month++;
+ }
+
+ cal.set(Calendar.MONTH, month);
+ cal.set(Calendar.DAY_OF_MONTH, day);
+
+ if ((day != oldDay) || (month != oldMonth)) {
+ redraw();
+
+ if (month != oldMonth) {
+ updateMonthLabel();
+ }
+ }
+ }
+
+ private void onMouseDown(MouseEvent e) {
+ int day = getDayFromPoint(e.x, e.y);
+
+ if (day > 0) {
+ cal.set(Calendar.DAY_OF_MONTH, day);
+ dateSelected(true);
+ updateDate();
+ }
+ }
+
+ private void onMouseMove(MouseEvent e) {
+ int day = getDayFromPoint(e.x, e.y);
+ selection = day;
+ updateDate();
+ }
+
+ private void onPaint(PaintEvent event) {
+ Rectangle rect = getClientArea();
+ GC gc0 = event.gc;
+ Image image = new Image(display, rect.width, rect.height);
+ GC gc = new GC(image);
+ gc.setBackground(display
+ .getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
+ gc.fillRectangle(rect);
+
+ int x = 0;
+ int y = 0;
+
+ for (int i = 0; i < 7; i++) {
+ if (i == 6) {
+ gc.setForeground(display.getSystemColor(SWT.COLOR_RED));
+ }
+ drawTextImage(gc, getDayName(1 + i), x, 0, colSize, rowSize);
+ x += colSize;
+ }
+
+ gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK));
+ y += rowSize;
+ gc.drawLine(0, 0, rect.width, 0);
+ gc.drawLine(0, y - 1, rect.width, y - 1);
+
+ syncTime();
+
+ int day = 1;
+
+ while (true) {
+ temp.set(Calendar.DAY_OF_MONTH, day);
+
+ if (temp.get(Calendar.MONTH) != cal.get(Calendar.MONTH)) {
+ break;
+ }
+
+ int dayOffset = computeOffset(temp.get(Calendar.DAY_OF_WEEK));
+ Point p = getDayPoint(day);
+
+ if (day == cal.get(Calendar.DAY_OF_MONTH)) {
+ gc.setForeground(display.getSystemColor(
+ SWT.COLOR_LIST_SELECTION_TEXT));
+ gc.setBackground(display.getSystemColor(
+ SWT.COLOR_LIST_SELECTION));
+ } else if (day == selection) {
+ gc.setForeground(display.getSystemColor(
+ SWT.COLOR_LIST_SELECTION_TEXT));
+ gc.setBackground(display.getSystemColor(SWT.COLOR_BLACK));
+ } else {
+ gc.setBackground(display.getSystemColor(
+ SWT.COLOR_WIDGET_BACKGROUND));
+ gc.setForeground(display.getSystemColor(dayOffset == 7
+ ? SWT.COLOR_RED
+ : SWT.COLOR_BLACK));
+ }
+
+ drawTextImage(gc, "" + day, p.x, p.y, colSize, rowSize);
+ day++;
+ }
+
+ gc0.drawImage(image, 0, 0);
+ gc.dispose();
+ image.dispose();
+ }
+
+ private void syncTime() {
+ temp.setTimeInMillis(cal.getTimeInMillis());
+ }
+ }
+
+ //~ Instance fields
+ // --------------------------------------------------------
+ private Calendar cal = Calendar.getInstance();
+
+ // sebthom
+ private Date selectedDate;
+
+ private DatePanel datePanel;
+ private DateFormatSymbols dateSymbols = new DateFormatSymbols();
+ private Label monthLabel;
+ private int selection = -1;
+
+ //~ Constructors
+ // -----------------------------------------------------------
+ public DatePicker(Composite parent, int style) {
+ super(parent, style);
+
+ GridLayout gridLayout = new GridLayout();
+ gridLayout.numColumns = 5;
+ gridLayout.verticalSpacing = gridLayout.horizontalSpacing = 0;
+ gridLayout.marginHeight = gridLayout.marginWidth = 0;
+ setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_DARK_CYAN));
+ setLayout(gridLayout);
+
+ GridData gridData;
+
+ // previous year
+ Button prevYear = new Button(this, SWT.FLAT);
+ gridData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
+ gridData.heightHint = gridData.widthHint = 20;
+ prevYear.setLayoutData(gridData);
+ prevYear.setText("<<");
+ prevYear.setSelection(false);
+ prevYear.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ cal.roll(Calendar.YEAR, -1);
+ updateDate();
+ }
+ });
+
+ // previous month
+ Button prevMonth = new Button(this, SWT.FLAT);
+ gridData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
+ gridData.heightHint = gridData.widthHint = 20;
+ prevMonth.setLayoutData(gridData);
+ prevMonth.setText("<");
+ prevMonth.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ cal.roll(Calendar.MONTH, -1);
+ updateDate();
+ }
+ });
+
+ // current month
+ monthLabel = new Label(this, SWT.CENTER);
+ gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.CENTER);
+ gridData.heightHint = prevYear.computeSize(20, 20).y;
+ gridData.grabExcessHorizontalSpace = true;
+ monthLabel.setLayoutData(gridData);
+
+ // next month
+ Button nextMonth = new Button(this, SWT.FLAT);
+ gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
+ gridData.heightHint = gridData.widthHint = 20;
+ nextMonth.setLayoutData(gridData);
+ nextMonth.setText(">");
+ nextMonth.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ cal.roll(Calendar.MONTH, 1);
+ updateDate();
+ }
+ });
+
+ // next year
+ Button nextYear = new Button(this, SWT.FLAT);
+ gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
+ gridData.heightHint = gridData.widthHint = 20;
+ nextYear.setLayoutData(gridData);
+ nextYear.setText(">>");
+ nextYear.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ cal.roll(Calendar.YEAR, 1);
+ updateDate();
+ }
+ });
+
+ // a panel
+ datePanel = new DatePanel(this, SWT.NONE);
+ gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
+ gridData.horizontalSpan = 5;
+ datePanel.setLayoutData(gridData);
+
+ updateDate();
+ }
+
+ //~ Methods
+ // ----------------------------------------------------------------
+ public void addSelectionListener(SelectionListener listener) {
+ checkWidget();
+
+ if (listener == null) {
+ SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ }
+ TypedListener typedListener = new TypedListener(listener);
+ addListener(SWT.Selection, typedListener);
+ addListener(SWT.DefaultSelection, typedListener);
+ }
+
+ public Point computeSize(int wHint, int hHint, boolean changed) {
+ Point pSize = datePanel.computeSize(wHint, hHint, changed);
+ Point labelSize = monthLabel.computeSize(wHint, hHint, changed);
+
+ int x = (pSize.x < (labelSize.x + 80) ? labelSize.x + 80 : pSize.x);
+ int y = (pSize.y < (labelSize.y + 20) ? labelSize.y + 20 : pSize.y);
+ return new Point(x, y);
+ }
+
+ private void dateSelected(boolean good) {
+ // sebthom
+ if (good)
+ selectedDate = cal.getTime();
+
+ Event event = new Event();
+ event.doit = good;
+ notifyListeners(SWT.Selection, event);
+ }
+
+ private void doubleClick() {
+ Event event = new Event();
+ event.doit = true;
+ notifyListeners(SWT.MouseDoubleClick, event);
+ }
+
+ private String getCurrentMonthName() {
+ StringBuffer sb = new StringBuffer();
+ sb.append(getMonthName(cal.get(Calendar.MONTH)));
+ sb.append(", ");
+ sb.append(cal.get(Calendar.YEAR));
+ return sb.toString();
+ }
+
+ public Date getDate() {
+ // sebthom
+ //return cal.getTime();
+ return selectedDate;
+ }
+
+ private String getMonthName(int month) {
+ return dateSymbols.getMonths()[month];
+ }
+
+ public void removeSelectionListener(SelectionListener listener) {
+ checkWidget();
+
+ if (listener == null) {
+ SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ }
+ removeListener(SWT.Selection, listener);
+ removeListener(SWT.DefaultSelection, listener);
+ }
+
+ public void reset() {
+ cal = Calendar.getInstance();
+ updateDate();
+ }
+
+ public void setDate(Date date) {
+ // sebthom
+ //cal.setTime(date);
+ selectedDate = date;
+ cal.setTime(selectedDate == null ? new Date() : date);
+
+ updateMonthLabel();
+ redraw();
+ }
+
+ private void updateDate() {
+ datePanel.redraw();
+ updateMonthLabel();
+ }
+
+ private void updateMonthLabel() {
+ monthLabel.setText(getCurrentMonthName());
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePickerCombo.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePickerCombo.java
new file mode 100644
index 00000000..2f57f792
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DatePickerCombo.java
@@ -0,0 +1,1124 @@
+package com.gluster.storage.management.gui.utils;
+
+import java.text.DateFormat;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.ACC;
+import org.eclipse.swt.accessibility.AccessibleAdapter;
+import org.eclipse.swt.accessibility.AccessibleControlAdapter;
+import org.eclipse.swt.accessibility.AccessibleControlEvent;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.swt.widgets.TypedListener;
+
+/**
+ * The combo widget with drop-down date-picker panel.
+ *
+ * changes by sebthom
+ * ~ declared package accessible methods as private
+ * ~ declared getEditable() as public
+ * + added useSingleMouseClickToCommit behaviour
+ * + manually modifying the date in the text field is reflected in the date picker
+ * + setDate(null) clears the date.
+ * + added getText & setText()
+ *
+ * @author Andrey Onistchuk
+ *
+ */
+public final class DatePickerCombo extends Composite
+{
+ //~ Static Methods ---------------------------------------------------------
+ public static int checkStyle(int style)
+ {
+ int mask = SWT.BORDER | SWT.READ_ONLY | SWT.FLAT;
+
+ return style & mask;
+ }
+
+ //~ Instance fields --------------------------------------------------------
+ private Button arrow;
+ private DatePicker dp;
+ private boolean hasFocus;
+
+ /**
+ * @author sebthom
+ */
+ private boolean isClosePopupWithSingleMouseClick = false;
+ private Shell popup;
+ private Text text;
+
+ //~ Constructors -----------------------------------------------------------
+ public DatePickerCombo(Composite parent, int style)
+ {
+ super(parent, checkStyle(style));
+
+ style = getStyle();
+
+ int textStyle = SWT.SINGLE;
+
+ if ((style & SWT.READ_ONLY) != 0)
+ {
+ textStyle |= SWT.READ_ONLY;
+ }
+
+ if ((style & SWT.FLAT) != 0)
+ {
+ textStyle |= SWT.FLAT;
+ }
+
+ text = new Text(this, textStyle);
+
+ popup = new Shell(getShell(), SWT.NO_TRIM);
+
+ int pickerStyle = SWT.SINGLE;
+
+ if ((style & SWT.FLAT) != 0)
+ {
+ pickerStyle |= SWT.FLAT;
+ }
+
+ dp = new DatePicker(popup, pickerStyle);
+
+ int arrowStyle = SWT.ARROW | SWT.DOWN;
+
+ if ((style & SWT.FLAT) != 0)
+ {
+ arrowStyle |= SWT.FLAT;
+ }
+
+ arrow = new Button(this, arrowStyle);
+
+ Listener listener = new Listener()
+ {
+ public void handleEvent(Event event)
+ {
+ if (popup == event.widget)
+ {
+ popupEvent(event);
+ return;
+ }
+
+ if (text == event.widget)
+ {
+ textEvent(event);
+ return;
+ }
+
+ if (dp == event.widget)
+ {
+ dpEvent(event);
+ return;
+ }
+
+ if (arrow == event.widget)
+ {
+ arrowEvent(event);
+ return;
+ }
+
+ if (DatePickerCombo.this == event.widget)
+ {
+ comboEvent(event);
+ return;
+ }
+ }
+ };
+
+ int[] comboEvents = { SWT.Dispose, SWT.Move, SWT.Resize };
+
+ for (int i = 0; i < comboEvents.length; i++)
+ this.addListener(comboEvents[i], listener);
+
+ int[] popupEvents = { SWT.Close, SWT.Paint, SWT.Deactivate };
+
+ for (int i = 0; i < popupEvents.length; i++)
+ popup.addListener(popupEvents[i], listener);
+
+ int[] textEvents =
+ { SWT.KeyDown, SWT.KeyUp, SWT.Modify, SWT.MouseDown, SWT.MouseUp, SWT.Traverse, SWT.FocusIn, SWT.FocusOut };
+
+ for (int i = 0; i < textEvents.length; i++)
+ text.addListener(textEvents[i], listener);
+
+ int[] dpEvents =
+ {
+ SWT.MouseUp,
+ SWT.MouseDoubleClick,
+ SWT.Selection,
+ SWT.Traverse,
+ SWT.KeyDown,
+ SWT.KeyUp,
+ SWT.FocusIn,
+ SWT.FocusOut };
+
+ for (int i = 0; i < dpEvents.length; i++)
+ dp.addListener(dpEvents[i], listener);
+
+ int[] arrowEvents = { SWT.Selection, SWT.FocusIn, SWT.FocusOut };
+
+ for (int i = 0; i < arrowEvents.length; i++)
+ arrow.addListener(arrowEvents[i], listener);
+
+ initAccessible();
+ }
+
+ //~ Methods ----------------------------------------------------------------
+
+ /**
+ * Adds the listener to receive events.
+ *
+ * @param listener
+ * the listener
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ * @exception SWTError(ERROR_NULL_ARGUMENT)
+ * when listener is null
+ */
+ public void addModifyListener(ModifyListener listener)
+ {
+ checkWidget();
+
+ if (listener == null)
+ {
+ SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ }
+
+ TypedListener typedListener = new TypedListener(listener);
+ addListener(SWT.Modify, typedListener);
+ }
+
+ /**
+ * Adds the listener to receive events.
+ *
+ * @param listener
+ * the listener
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ * @exception SWTError(ERROR_NULL_ARGUMENT)
+ * when listener is null
+ */
+ public void addSelectionListener(SelectionListener listener)
+ {
+ checkWidget();
+
+ if (listener == null)
+ {
+ SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ }
+
+ TypedListener typedListener = new TypedListener(listener);
+ addListener(SWT.Selection, typedListener);
+ addListener(SWT.DefaultSelection, typedListener);
+ }
+
+ private void arrowEvent(Event event)
+ {
+ switch (event.type)
+ {
+ case SWT.FocusIn :
+ {
+ if (hasFocus)
+ {
+ return;
+ }
+
+ hasFocus = true;
+
+ if (getEditable())
+ {
+ text.selectAll();
+ }
+
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.FocusIn, e);
+ break;
+ }
+
+ case SWT.FocusOut :
+ {
+ Control focusControl = getDisplay().getFocusControl();
+
+ if ((focusControl == dp) || (focusControl == text))
+ {
+ return;
+ }
+
+ hasFocus = false;
+
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.FocusOut, e);
+ break;
+ }
+
+ case SWT.Selection :
+ {
+ dropDown(!isDropped());
+ break;
+ }
+ }
+ }
+
+ /**
+ * Clears the current selection.
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ */
+ public void clearSelection()
+ {
+ checkWidget();
+ text.clearSelection();
+ dp.reset();
+ }
+
+ private void comboEvent(Event event)
+ {
+ switch (event.type)
+ {
+ case SWT.Dispose :
+
+ if ((popup != null) && !popup.isDisposed())
+ {
+ popup.dispose();
+ }
+
+ popup = null;
+ text = null;
+ dp = null;
+ arrow = null;
+ break;
+
+ case SWT.Move :
+ dropDown(false);
+ break;
+
+ case SWT.Resize :
+ internalLayout();
+ break;
+ }
+ }
+
+ public Point computeSize(int wHint, int hHint, boolean changed)
+ {
+ checkWidget();
+
+ int width = 0;
+ int height = 0;
+ Point textSize = text.computeSize(wHint, SWT.DEFAULT, changed);
+ Point arrowSize = arrow.computeSize(SWT.DEFAULT, SWT.DEFAULT, changed);
+ Point listSize = dp.computeSize(wHint, SWT.DEFAULT, changed);
+ int borderWidth = getBorderWidth();
+
+ height = Math.max(hHint, Math.max(textSize.y, arrowSize.y) + (2 * borderWidth));
+ width = Math.max(wHint, Math.max(textSize.x + arrowSize.x + (2 * borderWidth), listSize.x + 2));
+
+ return new Point(width, height);
+ }
+
+ private void dpEvent(Event event)
+ {
+ switch (event.type)
+ {
+ case SWT.FocusIn :
+ {
+ if (hasFocus)
+ {
+ return;
+ }
+
+ hasFocus = true;
+
+ if (getEditable())
+ {
+ text.selectAll();
+ }
+
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.FocusIn, e);
+ break;
+ }
+
+ case SWT.FocusOut :
+ {
+ Control focusControl = getDisplay().getFocusControl();
+
+ if ((focusControl == text) || (focusControl == arrow))
+ {
+ return;
+ }
+
+ hasFocus = false;
+
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.FocusOut, e);
+ break;
+ }
+
+ case SWT.MouseDown :
+ {
+ if (event.button != 1)
+ {
+ return;
+ }
+
+ dropDown(false);
+
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.DefaultSelection, e);
+ break;
+ }
+
+ case SWT.Selection :
+ {
+ // sebthom
+ if (!isClosePopupWithSingleMouseClick)
+ {
+ Date date = dp.getDate();
+ text.setText(DateFormat.getDateInstance().format(date));
+ text.selectAll();
+
+ Event e = new Event();
+ e.time = event.time;
+ e.stateMask = event.stateMask;
+ e.doit = event.doit;
+ notifyListeners(SWT.Selection, e);
+ event.doit = e.doit;
+
+ break;
+ }
+ // otherwise perform the code of SWT.MouseDoubleClick
+ }
+
+ case SWT.MouseDoubleClick :
+ {
+ dropDown(false);
+
+ Date date = dp.getDate();
+
+ // sebthom
+ if (date == null)
+ {
+ text.setText("");
+ }
+ else
+ {
+ text.setText(DateFormat.getDateInstance().format(date));
+ text.selectAll();
+ }
+
+ Event e = new Event();
+ e.time = event.time;
+ e.stateMask = event.stateMask;
+ e.doit = event.doit;
+ notifyListeners(SWT.Selection, e);
+ event.doit = e.doit;
+ break;
+ }
+
+ case SWT.Traverse :
+ {
+ switch (event.detail)
+ {
+ case SWT.TRAVERSE_TAB_NEXT :
+ case SWT.TRAVERSE_RETURN :
+ case SWT.TRAVERSE_ESCAPE :
+ case SWT.TRAVERSE_ARROW_PREVIOUS :
+ case SWT.TRAVERSE_ARROW_NEXT :
+ event.doit = false;
+ break;
+ }
+
+ Event e = new Event();
+ e.time = event.time;
+ e.detail = event.detail;
+ e.doit = event.doit;
+ e.keyCode = event.keyCode;
+ notifyListeners(SWT.Traverse, e);
+ event.doit = e.doit;
+ break;
+ }
+
+ case SWT.KeyUp :
+ {
+ Event e = new Event();
+ e.time = event.time;
+ e.character = event.character;
+ e.keyCode = event.keyCode;
+ e.stateMask = event.stateMask;
+ notifyListeners(SWT.KeyUp, e);
+ break;
+ }
+
+ case SWT.KeyDown :
+ {
+ if (event.character == SWT.ESC)
+ {
+ // escape key cancels popup dp
+ dropDown(false);
+ }
+
+ if ((event.character == SWT.CR) || (event.character == '\t'))
+ {
+ // Enter and Tab cause default selection
+ dropDown(false);
+
+ Event e = new Event();
+ e.time = event.time;
+ e.stateMask = event.stateMask;
+ notifyListeners(SWT.DefaultSelection, e);
+ }
+
+ //At this point the widget may have been disposed.
+ // If so, do not continue.
+ if (isDisposed())
+ {
+ break;
+ }
+
+ Event e = new Event();
+ e.time = event.time;
+ e.character = event.character;
+ e.keyCode = event.keyCode;
+ e.stateMask = event.stateMask;
+ notifyListeners(SWT.KeyDown, e);
+ break;
+ }
+ }
+ }
+
+ private void dropDown(boolean drop)
+ {
+ if (drop == isDropped())
+ {
+ return;
+ }
+
+ if (!drop)
+ {
+ popup.setVisible(false);
+ text.setFocus();
+ return;
+ }
+
+ Rectangle listRect = dp.getBounds();
+ Point point = getParent().toDisplay(getLocation());
+ Point comboSize = getSize();
+ int width = Math.max(comboSize.x, listRect.width + 2);
+ popup.setBounds(point.x, point.y + comboSize.y, width, listRect.height + 2);
+ popup.setVisible(true);
+ dp.setFocus();
+ }
+
+ public Control[] getChildren()
+ {
+ checkWidget();
+
+ return new Control[0];
+ }
+
+ public Date getDate()
+ {
+ checkWidget();
+
+ return dp.getDate();
+ }
+
+ public boolean getEditable()
+ {
+ return text.getEditable();
+ }
+
+ /**
+ * @author sebthom
+ */
+ public String getText()
+ {
+ return text.getText();
+ }
+
+ public void setText(String txt)
+ {
+ text.setText(txt);
+ }
+
+ public int getTextHeight()
+ {
+ checkWidget();
+ return text.getLineHeight();
+ }
+
+ private void initAccessible()
+ {
+ getAccessible().addAccessibleListener(new AccessibleAdapter()
+ {
+ public void getHelp(AccessibleEvent e)
+ {
+ e.result = getToolTipText();
+ }
+ });
+
+ getAccessible().addAccessibleControlListener(new AccessibleControlAdapter()
+ {
+ public void getChildAtPoint(AccessibleControlEvent e)
+ {
+ Point testPoint = toControl(new Point(e.x, e.y));
+
+ if (getBounds().contains(testPoint))
+ {
+ e.childID = ACC.CHILDID_SELF;
+ }
+ }
+
+ public void getChildCount(AccessibleControlEvent e)
+ {
+ e.detail = 0;
+ }
+
+ public void getLocation(AccessibleControlEvent e)
+ {
+ Rectangle location = getBounds();
+ Point pt = toDisplay(new Point(location.x, location.y));
+ e.x = pt.x;
+ e.y = pt.y;
+ e.width = location.width;
+ e.height = location.height;
+ }
+
+ public void getRole(AccessibleControlEvent e)
+ {
+ e.detail = ACC.ROLE_COMBOBOX;
+ }
+
+ public void getState(AccessibleControlEvent e)
+ {
+ e.detail = ACC.STATE_NORMAL;
+ }
+
+ public void getValue(AccessibleControlEvent e)
+ {
+ e.result = text.getText();
+ }
+ });
+ }
+
+ private void internalLayout()
+ {
+ if (isDropped())
+ {
+ dropDown(false);
+ }
+
+ Rectangle rect = getClientArea();
+ int width = rect.width;
+ int height = rect.height;
+ Point arrowSize = arrow.computeSize(SWT.DEFAULT, height);
+ text.setBounds(0, 0, width - arrowSize.x, height);
+ arrow.setBounds(width - arrowSize.x, 0, arrowSize.x, arrowSize.y);
+
+ Point size = getSize();
+ int itemHeight = dp.getBounds().height;
+ Point listSize = dp.computeSize(SWT.DEFAULT, itemHeight);
+ dp.setBounds(1, 1, Math.max(size.x - 2, listSize.x), listSize.y);
+ }
+
+ /**
+ * determines if you need to double click a date in the expanded calender control to hide it
+ * default is false meaning you have to double click a date
+ *
+ * @author sebthom
+ *
+ * @param useSingleMouseClickToCommit
+ */
+ public boolean isClosePopupWithSingleMouseClick()
+ {
+ return isClosePopupWithSingleMouseClick;
+ }
+
+ private boolean isDropped()
+ {
+ return popup.getVisible();
+ }
+
+ public boolean isFocusControl()
+ {
+ checkWidget();
+
+ if (text.isFocusControl() || arrow.isFocusControl() || dp.isFocusControl() || popup.isFocusControl())
+ {
+ return true;
+ }
+ else
+ {
+ return super.isFocusControl();
+ }
+ }
+
+ private void popupEvent(Event event)
+ {
+ switch (event.type)
+ {
+ case SWT.Paint :
+
+ // draw black rectangle around dp
+ Rectangle listRect = dp.getBounds();
+ Color black = getDisplay().getSystemColor(SWT.COLOR_BLACK);
+ event.gc.setForeground(black);
+ event.gc.drawRectangle(0, 0, listRect.width + 1, listRect.height + 1);
+ break;
+
+ case SWT.Close :
+ event.doit = false;
+ dropDown(false);
+ break;
+
+ case SWT.Deactivate :
+ dropDown(false);
+ break;
+ }
+ }
+
+ public void redraw(int x, int y, int width, int height, boolean all)
+ {
+ checkWidget();
+
+ if (!all)
+ {
+ return;
+ }
+
+ Point location = text.getLocation();
+ text.redraw(x - location.x, y - location.y, width, height, all);
+ location = dp.getLocation();
+ dp.redraw(x - location.x, y - location.y, width, height, all);
+
+ if (arrow != null)
+ {
+ location = arrow.getLocation();
+ arrow.redraw(x - location.x, y - location.y, width, height, all);
+ }
+ }
+
+ /**
+ * Removes the listener.
+ *
+ * @param listener
+ * the listener
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ * @exception SWTError(ERROR_NULL_ARGUMENT)
+ * when listener is null
+ */
+ public void removeModifyListener(ModifyListener listener)
+ {
+ checkWidget();
+
+ if (listener == null)
+ {
+ SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ }
+
+ removeListener(SWT.Modify, listener);
+ }
+
+ /**
+ * Removes the listener.
+ *
+ * @param listener
+ * the listener
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ * @exception SWTError(ERROR_NULL_ARGUMENT)
+ * when listener is null
+ */
+ public void removeSelectionListener(SelectionListener listener)
+ {
+ checkWidget();
+
+ if (listener == null)
+ {
+ SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ }
+
+ removeListener(SWT.Selection, listener);
+ removeListener(SWT.DefaultSelection, listener);
+ }
+
+ public void setBackground(Color color)
+ {
+ super.setBackground(color);
+
+ if (text != null)
+ {
+ text.setBackground(color);
+ }
+
+ if (dp != null)
+ {
+ dp.setBackground(color);
+ }
+
+ if (arrow != null)
+ {
+ arrow.setBackground(color);
+ }
+ }
+
+ /**
+ * set if you need to double click a date in the expanded calender control to hide it
+ * default is false meaning you have to double click a date
+ *
+ * @author sebthom
+ *
+ * @param useSingleMouseClickToCommit
+ */
+ public void setClosePopupWithSingleMouseClick(boolean isClosePopupWithSingleMouseClick)
+ {
+ this.isClosePopupWithSingleMouseClick = isClosePopupWithSingleMouseClick;
+ }
+
+ /**
+ * Selects an item.
+ *
+ * If the item at an index is not selected, it is selected. Indices that
+ * are out of range are ignored. Indexing is zero based.
+ *
+ * @param index
+ * the index of the item
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ */
+ public void setDate(Date date)
+ {
+ checkWidget();
+
+ //sebthom
+ if (date != null)
+ {
+ text.setText(DateFormat.getDateInstance().format(date));
+ text.selectAll();
+ }
+ else
+ {
+ text.setText("");
+ }
+
+ dp.setDate(date);
+ }
+
+ public boolean setFocus()
+ {
+ checkWidget();
+ return text.setFocus();
+ }
+
+ public void setFont(Font font)
+ {
+ super.setFont(font);
+ text.setFont(font);
+ dp.setFont(font);
+ internalLayout();
+ }
+
+ public void setForeground(Color color)
+ {
+ super.setForeground(color);
+
+ if (text != null)
+ {
+ text.setForeground(color);
+ }
+
+ if (dp != null)
+ {
+ dp.setForeground(color);
+ }
+
+ if (arrow != null)
+ {
+ arrow.setForeground(color);
+ }
+ }
+
+ /**
+ * Sets the new selection.
+ *
+ * @param selection
+ * point representing the start and the end of the new selection
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ * @exception SWTError(ERROR_NULL_ARGUMENT)
+ * when selection is null
+ */
+ public void setSelection(Point selection)
+ {
+ checkWidget();
+
+ if (selection == null)
+ {
+ SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ }
+
+ text.setSelection(selection.x, selection.y);
+ }
+
+ /**
+ * Sets the text limit
+ *
+ * @param limit
+ * new text limit
+ *
+ * @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
+ * when called from the wrong thread
+ * @exception SWTError(ERROR_WIDGET_DISPOSED)
+ * when the widget has been disposed
+ * @exception SWTError(ERROR_CANNOT_BE_ZERO)
+ * when limit is 0
+ */
+ public void setTextLimit(int limit)
+ {
+ checkWidget();
+ text.setTextLimit(limit);
+ }
+
+ public void setToolTipText(String string)
+ {
+ checkWidget();
+ super.setToolTipText(string);
+ arrow.setToolTipText(string);
+ text.setToolTipText(string);
+ }
+
+ public void setVisible(boolean visible)
+ {
+ super.setVisible(visible);
+
+ if (!visible)
+ {
+ popup.setVisible(false);
+ }
+ }
+
+ private void textEvent(Event event)
+ {
+ switch (event.type)
+ {
+ case SWT.FocusIn :
+ {
+ if (hasFocus)
+ {
+ return;
+ }
+
+ hasFocus = true;
+
+ if (getEditable())
+ {
+ text.selectAll();
+ }
+
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.FocusIn, e);
+ break;
+ }
+
+ case SWT.FocusOut :
+ {
+ Control focusControl = getDisplay().getFocusControl();
+
+ if ((focusControl == dp) || (focusControl == arrow))
+ {
+ return;
+ }
+
+ hasFocus = false;
+
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.FocusOut, e);
+ break;
+ }
+
+ case SWT.KeyDown :
+ {
+ if (event.character == SWT.ESC)
+ {
+ // escape key cancels popup dp
+ dropDown(false);
+ }
+
+ if (event.character == SWT.CR)
+ {
+ dropDown(false);
+
+ Event e = new Event();
+ e.time = event.time;
+ e.stateMask = event.stateMask;
+ notifyListeners(SWT.DefaultSelection, e);
+ }
+
+ //At this point the widget may have been disposed.
+ // If so, do not continue.
+ if (isDisposed())
+ {
+ break;
+ }
+
+ if ((event.keyCode == SWT.ARROW_UP) || (event.keyCode == SWT.ARROW_DOWN))
+ {
+ //Date oldDate = getDate();
+
+ //At this point the widget may have been disposed.
+ // If so, do not continue.
+ if (isDisposed())
+ {
+ break;
+ }
+ }
+
+ // Further work : Need to add support for incremental
+ // search in
+ // pop up dp as characters typed in text widget
+ Event e = new Event();
+ e.time = event.time;
+ e.character = event.character;
+ e.keyCode = event.keyCode;
+ e.stateMask = event.stateMask;
+ notifyListeners(SWT.KeyDown, e);
+ break;
+ }
+
+ case SWT.KeyUp :
+ {
+ Event e = new Event();
+ e.time = event.time;
+ e.character = event.character;
+ e.keyCode = event.keyCode;
+ e.stateMask = event.stateMask;
+ notifyListeners(SWT.KeyUp, e);
+ break;
+ }
+
+ case SWT.Modify :
+ {
+ // sebthom
+ if (!popup.isVisible())
+ {
+ if (text.getText().length() == 0)
+ {
+ dp.setDate(null);
+ }
+ else
+ {
+ try
+ {
+ dp.setDate(SimpleDateFormat.getDateInstance().parse(text.getText()));
+ }
+ catch (ParseException pe)
+ {
+ dp.setDate(null);
+ }
+ }
+ }
+ // dp.deselectAll ();
+ Event e = new Event();
+ e.time = event.time;
+ notifyListeners(SWT.Modify, e);
+ break;
+ }
+
+ case SWT.MouseDown :
+ {
+ if (event.button != 1 || text.getEditable())
+ {
+ return;
+ }
+
+ boolean dropped = isDropped();
+ text.selectAll();
+
+ if (!dropped)
+ {
+ setFocus();
+ }
+ dropDown(!dropped);
+
+ break;
+ }
+
+ case SWT.MouseUp :
+ {
+ if (event.button != 1 || text.getEditable())
+ {
+ return;
+ }
+ text.selectAll();
+ break;
+ }
+
+ case SWT.Traverse :
+ {
+ switch (event.detail)
+ {
+ case SWT.TRAVERSE_RETURN :
+ case SWT.TRAVERSE_ARROW_PREVIOUS :
+ case SWT.TRAVERSE_ARROW_NEXT :
+ // The enter causes default selection and
+ // the arrow keys are used to manipulate the dp
+ // contents so do not use them for traversal.
+ event.doit = false;
+ break;
+ }
+
+ Event e = new Event();
+ e.time = event.time;
+ e.detail = event.detail;
+ e.doit = event.doit;
+ e.keyCode = event.keyCode;
+ notifyListeners(SWT.Traverse, e);
+ event.doit = e.doit;
+ break;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DiskViewerEditingSupport.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DiskViewerEditingSupport.java
new file mode 100644
index 00000000..85f6edce
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/DiskViewerEditingSupport.java
@@ -0,0 +1,39 @@
+package com.gluster.storage.management.gui.utils;
+
+import org.eclipse.jface.viewers.CellEditor;
+import org.eclipse.jface.viewers.EditingSupport;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+import com.gluster.storage.management.core.model.Disk;
+
+public class DiskViewerEditingSupport extends EditingSupport {
+ private FormToolkit toolkit;
+
+ public DiskViewerEditingSupport(FormToolkit toolkit, TableViewer viewer) {
+ super(viewer);
+ this.toolkit = toolkit;
+ }
+
+ @Override
+ protected CellEditor getCellEditor(Object element) {
+ return new HyperlinkCellEditor(toolkit, (TableViewer)getViewer(), (Disk) element);
+ }
+
+ @Override
+ protected boolean canEdit(Object element) {
+ Disk disk = (Disk) element;
+ return (disk.isUninitialized());
+ }
+
+ @Override
+ protected Object getValue(Object element) {
+ return ((Disk) element).getStatus();
+ }
+
+ @Override
+ protected void setValue(Object element, Object value) {
+ getViewer().update(element, new String[] { "status" });
+ }
+
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/EntityViewerFilter.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/EntityViewerFilter.java
new file mode 100644
index 00000000..c4774f34
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/EntityViewerFilter.java
@@ -0,0 +1,60 @@
+package com.gluster.storage.management.gui.utils;
+
+import java.util.Map.Entry;
+
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerFilter;
+
+import com.gluster.storage.management.core.model.Filterable;
+import com.gluster.storage.management.core.utils.StringUtils;
+
+public class EntityViewerFilter extends ViewerFilter {
+
+ private String filterString;
+ private boolean caseSensitive = false;
+
+ public EntityViewerFilter(String filterString, boolean caseSensitive) {
+ this.filterString = filterString;
+ this.caseSensitive = caseSensitive;
+ }
+
+ public boolean isCaseSensitive() {
+ return caseSensitive;
+ }
+
+ public void setCaseSensitive(boolean caseSensitive) {
+ this.caseSensitive = caseSensitive;
+ }
+
+ public String getFilterString() {
+ return filterString;
+ }
+
+ public void setFilterString(String filterString) {
+ this.filterString = filterString;
+ }
+
+ @SuppressWarnings("unchecked")
+ @Override
+ public boolean select(Viewer viewer, Object parentElement, Object element) {
+ if (filterString == null || filterString.isEmpty()) {
+ // No filter string. select everything
+ return true;
+ }
+
+ if (element instanceof Filterable) {
+ return ((Filterable) element).filter(filterString, caseSensitive);
+ }
+
+ if(element instanceof Entry) {
+ Entry entry = (Entry)element;
+ return StringUtils.filterString(entry.getKey() + entry.getValue(), filterString, caseSensitive);
+ }
+
+ if(element instanceof String) {
+ return StringUtils.filterString((String)element, filterString, caseSensitive);
+ }
+
+ return false;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/GUIHelper.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/GUIHelper.java
new file mode 100644
index 00000000..1d4a2a00
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/GUIHelper.java
@@ -0,0 +1,313 @@
+package com.gluster.storage.management.gui.utils;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IMenuCreator;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.fieldassist.ControlDecoration;
+import org.eclipse.jface.fieldassist.FieldDecorationRegistry;
+import org.eclipse.jface.layout.TableColumnLayout;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.ColumnLabelProvider;
+import org.eclipse.jface.viewers.ColumnLayoutData;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.TableViewerColumn;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.KeyAdapter;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.TabFolder;
+import org.eclipse.swt.widgets.TabItem;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IViewReference;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.forms.events.ExpansionAdapter;
+import org.eclipse.ui.forms.events.ExpansionEvent;
+import org.eclipse.ui.forms.widgets.ColumnLayout;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+import com.gluster.storage.management.gui.Application;
+import com.gluster.storage.management.gui.IImageKeys;
+
+public class GUIHelper {
+ private static final GUIHelper instance = new GUIHelper();
+
+ private GUIHelper() {
+
+ }
+
+ public static GUIHelper getInstance() {
+ return instance;
+ }
+
+ public ScrolledForm setupForm(Composite parent, FormToolkit toolkit, final String formName) {
+ return setupForm(toolkit, formName, toolkit.createScrolledForm(parent));
+ }
+
+ public ScrolledForm setupForm(FormToolkit toolkit, final String formName, ScrolledForm form) {
+ form.setText(formName);
+ toolkit.decorateFormHeading(form.getForm());
+
+ ColumnLayout layout = new ColumnLayout();
+
+ // layout.topMargin = 0;
+ // layout.bottomMargin = 5;
+ // layout.leftMargin = 10;
+ // layout.rightMargin = 10;
+ // layout.horizontalSpacing = 10;
+ // layout.verticalSpacing = 10;
+ // layout.maxNumColumns = 4;
+ // layout.minNumColumns = 1;
+
+ form.getBody().setLayout(layout);
+ return form;
+ }
+
+ public Composite createSection(final ScrolledForm form, FormToolkit toolkit, String title, String desc,
+ int numColumns, boolean collapsible) {
+ int style = Section.TITLE_BAR | Section.EXPANDED;
+ if (desc != null && !desc.isEmpty()) {
+ style |= Section.DESCRIPTION;
+ }
+ if (collapsible) {
+ style |= Section.TWISTIE;
+ }
+
+ Section section = toolkit.createSection(form.getBody(), style);
+ section.setText(title);
+ section.setDescription(desc);
+
+ // toolkit.createCompositeSeparator(section);
+ Composite client = toolkit.createComposite(section);
+ GridLayout layout = new GridLayout();
+ layout.marginWidth = layout.marginHeight = 0;
+ layout.numColumns = numColumns;
+ layout.verticalSpacing = 15;
+ layout.marginBottom = 20;
+ layout.marginTop = 5;
+
+ client.setLayout(layout);
+ section.setClient(client);
+
+ section.addExpansionListener(new ExpansionAdapter() {
+ public void expansionStateChanged(ExpansionEvent e) {
+ form.reflow(false);
+ }
+ });
+ return client;
+ }
+
+ public Composite createTab(TabFolder tabFolder, String title, String imageKey) {
+ TabItem item = new TabItem(tabFolder, SWT.NONE);
+ item.setText(title);
+ item.setImage(AbstractUIPlugin.imageDescriptorFromPlugin(Application.PLUGIN_ID, imageKey).createImage());
+
+ Composite composite = new Composite(tabFolder, SWT.NONE);
+ composite.setLayout(new FillLayout());
+
+ item.setControl(composite);
+
+ return composite;
+ }
+
+ public ImageDescriptor getImageDescriptor(String imagePath) {
+ return AbstractUIPlugin.imageDescriptorFromPlugin(Application.PLUGIN_ID, imagePath);
+ }
+
+ public Image getImage(String imagePath) {
+ return getImageDescriptor(imagePath).createImage();
+ }
+
+ public Action createPullDownMenu(String menuName, String iconPath, final MenuManager menuManager) {
+ Action action = new Action(menuName, IAction.AS_DROP_DOWN_MENU) {
+ public void run() {
+ }
+ };
+ action.setMenuCreator(new IMenuCreator() {
+
+ @Override
+ public Menu getMenu(Menu menu) {
+ return null;
+ }
+
+ @Override
+ public Menu getMenu(Control control) {
+ return menuManager.createContextMenu(control);
+ }
+
+ @Override
+ public void dispose() {
+ }
+ });
+ action.setImageDescriptor(getImageDescriptor(iconPath));
+ return action;
+ }
+
+ public TableColumnLayout createTableColumnLayout(Table table, String[] columns) {
+ TableColumnLayout tableColumnLayout = new TableColumnLayout();
+ ColumnLayoutData defaultColumnLayoutData = new ColumnWeightData(100);
+
+ for (String columnName : columns) {
+ TableColumn column = new TableColumn(table, SWT.LEFT);
+ column.setText(columnName);
+
+ tableColumnLayout.setColumnData(column, defaultColumnLayoutData);
+ }
+
+ return tableColumnLayout;
+ }
+
+ /**
+ * Creates a filter for given structured viewer that will filter the contents of the viewer based on the current
+ * text of the text field
+ *
+ * @param viewer
+ * Structured viewer for which the filter is to be created
+ * @param filterText
+ * The text field whose contents are to be used for filtering
+ * @param caseSensitive
+ * Flag indicating whether the filtering should be case sensitive
+ * @return The newly created filter
+ */
+ public EntityViewerFilter createFilter(final StructuredViewer viewer, final Text filterText, boolean caseSensitive) {
+ final String initialFilterString = filterText.getText();
+
+ final EntityViewerFilter filter = new EntityViewerFilter(initialFilterString, caseSensitive);
+ // On every keystroke inside the text field, update the filter string
+ filterText.addKeyListener(new KeyAdapter() {
+ private String filterString = initialFilterString;
+
+ @Override
+ public void keyReleased(KeyEvent e) {
+ String enteredString = filterText.getText();
+ if (enteredString.equals(filterString)) {
+ // Filter string has not changed. don't do anything
+ return;
+ }
+
+ // Update filter string
+ filterString = enteredString;
+ filter.setFilterString(filterString);
+
+ // Refresh viewer with newly filtered content
+ viewer.refresh(true);
+ }
+ });
+
+ viewer.addFilter(filter);
+ return filter;
+ }
+
+ public IViewPart getView(String viewId) {
+ IViewReference[] views = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .getViewReferences();
+ for (IViewReference view : views) {
+ if (view.getId().equals(viewId)) {
+ return view.getView(false);
+ }
+ }
+ return null;
+ }
+
+ public ControlDecoration createErrorDecoration(Control control) {
+ ControlDecoration passwordErrorDecoration = new ControlDecoration(control, SWT.LEFT | SWT.TOP);
+ passwordErrorDecoration.setImage(FieldDecorationRegistry.getDefault()
+ .getFieldDecoration(FieldDecorationRegistry.DEC_ERROR).getImage());
+ return passwordErrorDecoration;
+ }
+
+ public void centerShellInScreen(Shell shell) {
+ Rectangle monitorBounds = shell.getMonitor().getBounds();
+ Rectangle myBounds = shell.getBounds();
+
+ int x = monitorBounds.x + (monitorBounds.width - myBounds.width) / 2;
+ int y = monitorBounds.y + (monitorBounds.height - myBounds.height) / 2;
+ shell.setLocation(x, y);
+ }
+
+ public Text createFilterText(FormToolkit toolkit, Composite parent) {
+ final String tooltipMessage = "Start typing to filter table contents.";
+ final Text filterText = toolkit.createText(parent, "", SWT.FLAT);
+
+ GridData data = new GridData(SWT.LEFT, SWT.CENTER, false, false);
+ data.widthHint = 300;
+ filterText.setLayoutData(data);
+
+ ControlDecoration searchDecoration = new ControlDecoration(filterText, SWT.RIGHT);
+ searchDecoration.setImage(getImage(IImageKeys.SEARCH));
+ searchDecoration.show();
+ searchDecoration.setShowHover(true);
+ searchDecoration.setDescriptionText(tooltipMessage);
+
+ filterText.setToolTipText(tooltipMessage);
+ return filterText;
+ }
+
+ public Text createFilterText(Composite parent) {
+ final String tooltipMessage = "Start typing to filter table contents.";
+ final Text filterText = new Text(parent, SWT.FLAT);
+
+ GridData data = new GridData(SWT.LEFT, SWT.CENTER, false, false);
+ data.widthHint = 300;
+ filterText.setLayoutData(data);
+
+ ControlDecoration searchDecoration = new ControlDecoration(filterText, SWT.RIGHT);
+ searchDecoration.setImage(getImage(IImageKeys.SEARCH));
+ searchDecoration.show();
+ searchDecoration.setShowHover(true);
+ searchDecoration.setDescriptionText(tooltipMessage);
+
+ filterText.setToolTipText(tooltipMessage);
+ return filterText;
+ }
+
+ /**
+ * Sets properties for alignment and weight of given column of given table
+ *
+ * @param table
+ * @param columnIndex
+ * @param alignment
+ * @param weight
+ */
+ public void setColumnProperties(Table table, int columnIndex, int alignment, int weight) {
+ TableColumn column = table.getColumn(columnIndex);
+ column.setAlignment(alignment);
+
+ TableColumnLayout tableColumnLayout = (TableColumnLayout) table.getParent().getLayout();
+ tableColumnLayout.setColumnData(column, new ColumnWeightData(weight));
+ }
+
+ /**
+ * Sets properties for alignment and weight of given column of given table
+ *
+ * @param table
+ * @param columnIndex
+ * @param alignment
+ * @param weight
+ *
+ * @return The table viewer column created
+ */
+ public TableViewerColumn setColumnProperties(TableViewer tableViewer, int columnIndex, int style, int weight) {
+ TableViewerColumn column = new TableViewerColumn(tableViewer, style, columnIndex);
+ TableColumnLayout tableColumnLayout = (TableColumnLayout)tableViewer.getTable().getParent().getLayout();
+ tableColumnLayout.setColumnData(column.getColumn(), new ColumnWeightData(weight));
+ column.setLabelProvider(new ColumnLabelProvider());
+ return column;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/HyperlinkCellEditor.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/HyperlinkCellEditor.java
new file mode 100644
index 00000000..48b7117d
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/HyperlinkCellEditor.java
@@ -0,0 +1,50 @@
+package com.gluster.storage.management.gui.utils;
+
+import org.eclipse.jface.viewers.CellEditor;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ImageHyperlink;
+
+import com.gluster.storage.management.core.model.Disk;
+
+public class HyperlinkCellEditor extends CellEditor {
+ private FormToolkit toolkit;
+ private Disk disk;
+ private ImageHyperlink link;
+ private TableViewer viewer;
+
+ public HyperlinkCellEditor(FormToolkit toolkit, TableViewer viewer, Disk disk) {
+ this.toolkit = toolkit;
+ this.viewer = viewer;
+ this.disk = disk;
+ }
+
+ @Override
+ protected Control createControl(Composite parent) {
+ link = toolkit.createImageHyperlink(viewer.getTable(), SWT.NONE);
+ // link.setImage(guiHelper.getImage(IImageKeys.DISK_UNINITIALIZED));
+ link.setText("Initialize");
+ return link;
+ }
+
+ @Override
+ protected Object doGetValue() {
+ return disk.getStatus();
+ }
+
+ @Override
+ protected void doSetFocus() {
+ link.setFocus();
+ }
+
+ @Override
+ protected void doSetValue(Object value) {
+ if(!disk.isUninitialized()) {
+ this.deactivate();
+ this.dispose();
+ }
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/validators/StringRequiredValidator.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/validators/StringRequiredValidator.java
new file mode 100644
index 00000000..cbe352c3
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/validators/StringRequiredValidator.java
@@ -0,0 +1,41 @@
+package com.gluster.storage.management.gui.validators;
+
+import org.eclipse.core.databinding.validation.IValidator;
+import org.eclipse.core.databinding.validation.ValidationStatus;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.fieldassist.ControlDecoration;
+import org.eclipse.swt.widgets.Control;
+
+public class StringRequiredValidator implements IValidator {
+ private final String errorText;
+ private final ControlDecoration controlDecoration;
+ private final Control linkedControl;
+
+ public StringRequiredValidator(String errorText, ControlDecoration controlDecoration, Control linkedControl) {
+ super();
+ this.errorText = errorText;
+ this.controlDecoration = controlDecoration;
+ this.linkedControl = linkedControl;
+ }
+
+ public StringRequiredValidator(String errorText, ControlDecoration controlDecoration) {
+ this(errorText, controlDecoration, null);
+ }
+
+ public IStatus validate(Object value) {
+ if (value instanceof String) {
+ if (((String) value).isEmpty()) {
+ controlDecoration.setDescriptionText(errorText);
+ controlDecoration.show();
+ if (linkedControl != null) {
+ linkedControl.setEnabled(false);
+ }
+ return ValidationStatus.error(errorText);
+ }
+ }
+ linkedControl.setEnabled(true);
+ controlDecoration.hide();
+ return Status.OK_STATUS;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/AbstractDisksPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/AbstractDisksPage.java
new file mode 100644
index 00000000..c76d8582
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/AbstractDisksPage.java
@@ -0,0 +1,297 @@
+package com.gluster.storage.management.gui.views.details;
+
+import java.util.List;
+
+import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.CheckboxTableViewer;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.TableEditor;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.PaintEvent;
+import org.eclipse.swt.events.PaintListener;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.IWorkbenchSite;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.forms.events.HyperlinkAdapter;
+import org.eclipse.ui.forms.events.HyperlinkEvent;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ImageHyperlink;
+import org.eclipse.ui.progress.IProgressConstants;
+
+import com.gluster.storage.management.core.exceptions.GlusterRuntimeException;
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.core.model.Entity;
+import com.gluster.storage.management.core.model.Disk.DISK_STATUS;
+import com.gluster.storage.management.gui.Application;
+import com.gluster.storage.management.gui.IEntityListener;
+import com.gluster.storage.management.gui.IImageKeys;
+import com.gluster.storage.management.gui.jobs.InitializeDiskJob;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+public abstract class AbstractDisksPage extends Composite implements IEntityListener {
+ protected final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
+ protected TableViewer tableViewer;
+ private IWorkbenchSite site;
+ protected static final GUIHelper guiHelper = GUIHelper.getInstance();
+
+ /**
+ * Setup properties of the table e.g. column headers, widths, etc.
+ *
+ * @param parent
+ * The parent composite. (TableColumnLayout has to be set on this)
+ * @param table
+ * The table to be set up
+ */
+ protected abstract void setupDiskTable(Composite parent, Table table);
+
+ /**
+ * @return The label provider to be used with the disk table viewer
+ */
+ protected abstract ITableLabelProvider getTableLabelProvider();
+
+ /**
+ * @return Index of the "status" column in the table. Return -1 if status column is not displayed
+ */
+ protected abstract int getStatusColumnIndex();
+
+ private void init(final Composite parent, IWorkbenchSite site, List disks) {
+ addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ toolkit.dispose();
+ }
+ });
+
+ this.site = site;
+
+ setupPageLayout();
+ Text filterText = guiHelper.createFilterText(toolkit, this);
+ setupDiskTableViewer(createTableViewerComposite(), filterText);
+
+ tableViewer.setInput(disks);
+ setupStatusCellEditor(); // creates hyperlinks for "unitialized" disks
+
+ site.setSelectionProvider(tableViewer);
+ Application.getApplication().addEntityListener(this);
+
+ parent.layout(); // Important - this actually paints the table
+
+ toolkit.adapt(this);
+ toolkit.paintBordersFor(this);
+
+ /**
+ * Ideally not required. However the table viewer is not getting laid out properly on performing
+ * "maximize + restore" So this is a hack to make sure that the table is laid out again on re-size of the window
+ */
+ addPaintListener(new PaintListener() {
+
+ @Override
+ public void paintControl(PaintEvent e) {
+ parent.layout();
+ }
+ });
+ }
+
+ public AbstractDisksPage(final Composite parent, int style, IWorkbenchSite site, List disks) {
+ super(parent, style);
+ init(parent, site, disks);
+ }
+
+ private void setupPageLayout() {
+ final GridLayout layout = new GridLayout(1, false);
+ layout.verticalSpacing = 10;
+ layout.marginTop = 10;
+ setLayout(layout);
+ }
+
+ private void createInitializeLink(final TableItem item, final int rowNum, final Disk disk) {
+ final Table table = tableViewer.getTable();
+ final TableEditor editor = new TableEditor(table);
+ editor.grabHorizontal = true;
+ editor.horizontalAlignment = SWT.RIGHT;
+
+ table.addPaintListener(new PaintListener() {
+ private TableItem myItem = item;
+ private int myRowNum = rowNum;
+ private ImageHyperlink myLink = null;
+ private TableEditor myEditor = null;
+
+ private void createLinkFor(Disk disk1, TableItem item1, int rowNum1) {
+ myItem = item1;
+ myRowNum = rowNum1;
+
+ myEditor = new TableEditor(table);
+ myEditor.grabHorizontal = true;
+ myEditor.horizontalAlignment = SWT.RIGHT;
+
+ myLink = toolkit.createImageHyperlink(table, SWT.NONE);
+ // link.setImage(guiHelper.getImage(IImageKeys.DISK_UNINITIALIZED));
+ myLink.setText("Initialize");
+ myLink.addHyperlinkListener(new StatusLinkListener(myLink, myEditor, myItem, tableViewer, disk1, site));
+
+ myEditor.setEditor(myLink, item1, getStatusColumnIndex());
+
+ myItem.addDisposeListener(new DisposeListener() {
+ @Override
+ public void widgetDisposed(DisposeEvent e) {
+ myLink.dispose();
+ myEditor.dispose();
+ }
+ });
+ }
+
+ @Override
+ public void paintControl(PaintEvent e) {
+ int itemCount = table.getItemCount();
+
+ // Find the table item corresponding to our disk
+ Disk disk1 = null;
+ int rowNum1 = -1;
+ TableItem item1 = null;
+ for (int i = 0; i < itemCount; i++) {
+ item1 = table.getItem(i);
+ disk1 = (Disk) item1.getData();
+ if (disk1 != null && disk1 == disk) {
+ rowNum1 = i;
+ break;
+ }
+ }
+
+ if (rowNum1 == -1) {
+ // item disposed and disk not visible. nothing to do.
+ return;
+ }
+
+ if (myEditor == null || myItem.isDisposed()) {
+ // item visible, and
+ // either editor never created, OR
+ // old item disposed. create the link for it
+ createLinkFor(disk1, item1, rowNum1);
+ }
+
+ if (rowNum1 != myRowNum) {
+ // disk visible, but at a different row num. re-create the link
+ myLink.dispose();
+ myEditor.dispose();
+ createLinkFor(disk1, item1, rowNum1);
+ }
+
+ myEditor.layout(); // IMPORTANT. Without this, the link location goes for a toss on maximize + restore
+ }
+ });
+ }
+
+ private void setupStatusCellEditor() {
+ final TableViewer viewer = tableViewer;
+ final Table table = viewer.getTable();
+ for (int i = 0; i < table.getItemCount(); i++) {
+ final TableItem item = table.getItem(i);
+ if (item.isDisposed() || item.getData() == null) {
+ continue;
+ }
+ final Disk disk = (Disk) item.getData();
+ if (disk.isUninitialized()) {
+ createInitializeLink(item, i, disk);
+ }
+ }
+ }
+
+ private Composite createTableViewerComposite() {
+ Composite tableViewerComposite = new Composite(this, SWT.NO);
+ tableViewerComposite.setLayout(new FillLayout(SWT.HORIZONTAL));
+ tableViewerComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ return tableViewerComposite;
+ }
+
+ private TableViewer createDiskTableViewer(Composite parent) {
+ tableViewer = CheckboxTableViewer.newCheckList(parent, SWT.FLAT | SWT.FULL_SELECTION | SWT.MULTI);
+
+ tableViewer.setLabelProvider(getTableLabelProvider());
+ tableViewer.setContentProvider(new ArrayContentProvider());
+
+ setupDiskTable(parent, tableViewer.getTable());
+
+ return tableViewer;
+ }
+
+ private void setupDiskTableViewer(Composite parent, final Text filterText) {
+ tableViewer = createDiskTableViewer(parent);
+ // Create a case insensitive filter for the table viewer using the filter text field
+ guiHelper.createFilter(tableViewer, filterText, false);
+ }
+
+ private final class StatusLinkListener extends HyperlinkAdapter {
+ private final Disk disk;
+ private final TableEditor myEditor;
+ private final ImageHyperlink myLink;
+ private final TableViewer viewer;
+ private final IWorkbenchSite site;
+
+ private StatusLinkListener(ImageHyperlink link, TableEditor editor, TableItem item, TableViewer viewer,
+ Disk disk, IWorkbenchSite site) {
+ this.disk = disk;
+ this.viewer = viewer;
+ this.myEditor = editor;
+ this.myLink = link;
+ this.site = site;
+ }
+
+ private void updateStatus(final DISK_STATUS status, final boolean disposeEditor) {
+ if (disposeEditor) {
+ myLink.dispose();
+ myEditor.dispose();
+ }
+ disk.setStatus(status);
+ viewer.update(disk, new String[] { "status" });
+ Application.getApplication().entityChanged(disk, new String[] { "status" });
+ }
+
+ @Override
+ public void linkActivated(HyperlinkEvent e) {
+ updateStatus(DISK_STATUS.INITIALIZING, true);
+
+ try {
+ site.getWorkbenchWindow().getActivePage().showView(IProgressConstants.PROGRESS_VIEW_ID);
+ } catch (PartInitException e1) {
+ e1.printStackTrace();
+ throw new GlusterRuntimeException("Could not open the progress view!", e1);
+ }
+
+ new InitializeDiskJob(disk).schedule();
+ }
+ }
+
+ @Override
+ public void entityChanged(final Entity entity, final String[] paremeters) {
+ if (!(entity instanceof Disk)) {
+ return;
+ }
+ final Disk disk = (Disk) entity;
+
+ Display.getDefault().syncExec(new Runnable() {
+ public void run() {
+ tableViewer.update(disk, paremeters);
+
+ if (disk.isUninitialized()) {
+ Table table = tableViewer.getTable();
+
+ for (int rowNum = 0; rowNum < table.getItemCount(); rowNum++) {
+ TableItem item = table.getItem(rowNum);
+ if (item.getData() == disk) {
+ createInitializeLink(item, rowNum, disk);
+ }
+ }
+ }
+ }
+ });
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DetailsView.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DetailsView.java
new file mode 100644
index 00000000..ff40d1ea
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DetailsView.java
@@ -0,0 +1,93 @@
+package com.gluster.storage.management.gui.views.details;
+
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.TreeSelection;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.TabFolder;
+import org.eclipse.swt.widgets.TabItem;
+import org.eclipse.ui.ISelectionListener;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.IWorkbenchPartSite;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.contexts.IContextService;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.part.ViewPart;
+
+import com.gluster.storage.management.core.model.Entity;
+import com.gluster.storage.management.core.model.Volume;
+import com.gluster.storage.management.gui.toolbar.ToolbarManager;
+import com.gluster.storage.management.gui.views.navigator.NavigationView;
+
+/**
+ * This view is displayed on the right hand side of the platform UI. It updates itself with appropriate tabs
+ * whenever selection changes on the navigation view (cluster tree) on the left hand side of the UI.
+ */
+public class DetailsView extends ViewPart implements ISelectionListener {
+ public static final String ID = "com.gluster.storage.management.gui.views.details";
+ private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
+ private TabFolder tabFolder;
+ private Entity entity;
+ private TabCreatorFactory tabCreatorFactory = new TabCreatorFactoryImpl();
+ private ToolbarManager toolbarManager;
+ private IWorkbenchPartSite site;
+
+ public DetailsView() {
+ super();
+ }
+
+ @Override
+ public void createPartControl(final Composite parent) {
+ parent.addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ toolkit.dispose();
+ }
+ });
+
+ tabFolder = new TabFolder(parent, SWT.TOP);
+
+ // listen to selection event on the navigation tree view
+ IWorkbenchWindow window = getViewSite().getWorkbenchWindow();
+ window.getSelectionService().addSelectionListener(this);
+
+ // Create the toolbar manager
+ toolbarManager = new ToolbarManager(window);
+ site = getSite();
+ }
+
+ @Override
+ public void setFocus() {
+ tabFolder.setFocus();
+ }
+
+ private void removeAllTabs() {
+ for (TabItem item : tabFolder.getItems()) {
+ item.getControl().dispose();
+ item.dispose();
+ }
+ }
+
+ @Override
+ public void selectionChanged(IWorkbenchPart part, ISelection selection) {
+ if (part instanceof NavigationView && selection instanceof TreeSelection) {
+ Entity selectedEntity = (Entity) ((TreeSelection) selection).getFirstElement();
+
+ if (entity == selectedEntity || selectedEntity == null) {
+ // entity selection has not changed. do nothing.
+ return;
+ }
+
+ entity = selectedEntity;
+ removeAllTabs();
+
+ // Create tabs for newly selected entity
+ tabCreatorFactory.getTabCreator(entity).createTabs(entity, tabFolder, toolkit, site);
+
+ // update toolbar buttons visibility based on selected entity
+ toolbarManager.updateToolbar(entity);
+ }
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DisksPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DisksPage.java
new file mode 100644
index 00000000..cdd3ebb5
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/DisksPage.java
@@ -0,0 +1,53 @@
+package com.gluster.storage.management.gui.views.details;
+
+import java.util.List;
+
+import org.eclipse.jface.layout.TableColumnLayout;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.viewers.TableViewerColumn;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.ui.IWorkbenchSite;
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.gui.DiskTableLabelProvider;
+import com.gluster.storage.management.gui.utils.DiskViewerEditingSupport;
+
+public class DisksPage extends AbstractDisksPage {
+
+ public enum DISK_TABLE_COLUMN_INDICES {
+ SERVER, DISK, SPACE, SPACE_IN_USE, STATUS
+ };
+
+ private static final String[] DISK_TABLE_COLUMN_NAMES = new String[] { "Server", "Disk", "Space (GB)",
+ "Space in Use (GB)", "Status" };
+
+ public DisksPage(final Composite parent, int style, IWorkbenchSite site, List disks) {
+ super(parent, style, site, disks);
+ }
+
+ @Override
+ protected void setupDiskTable(Composite parent, Table table) {
+ table.setHeaderVisible(true);
+ table.setLinesVisible(false);
+
+ TableColumnLayout tableColumnLayout = guiHelper.createTableColumnLayout(table, DISK_TABLE_COLUMN_NAMES);
+ parent.setLayout(tableColumnLayout);
+
+ guiHelper.setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.SERVER.ordinal(), SWT.CENTER, 100);
+ guiHelper.setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.DISK.ordinal(), SWT.CENTER, 100);
+ guiHelper.setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.SPACE.ordinal(), SWT.CENTER, 90);
+ guiHelper.setColumnProperties(table, DISK_TABLE_COLUMN_INDICES.SPACE_IN_USE.ordinal(), SWT.CENTER, 90);
+ }
+
+ @Override
+ protected ITableLabelProvider getTableLabelProvider() {
+ return new DiskTableLabelProvider();
+ }
+
+ @Override
+ protected int getStatusColumnIndex() {
+ return DISK_TABLE_COLUMN_INDICES.STATUS.ordinal();
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/GlusterServersPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/GlusterServersPage.java
new file mode 100644
index 00000000..c4d03b7d
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/GlusterServersPage.java
@@ -0,0 +1,146 @@
+package com.gluster.storage.management.gui.views.details;
+
+import org.eclipse.jface.layout.TableColumnLayout;
+import org.eclipse.jface.viewers.CheckboxTableViewer;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.PaintEvent;
+import org.eclipse.swt.events.PaintListener;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+import com.gluster.storage.management.core.model.EntityGroup;
+import com.gluster.storage.management.core.model.GlusterServer;
+import com.gluster.storage.management.gui.EntityGroupContentProvider;
+import com.gluster.storage.management.gui.GlusterServerTableLabelProvider;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+public class GlusterServersPage extends Composite {
+
+ private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
+ private TableViewer tableViewer;
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ public enum GLUSTER_SERVER_TABLE_COLUMN_INDICES {
+ NAME, PREFERRED_NETWORK, IP_ADDRESSES, NUM_OF_CPUS, TOTAL_MEMORY, TOTAL_DISK_SPACE, STATUS
+ };
+
+ private static final String[] GLUSTER_SERVER_TABLE_COLUMN_NAMES = new String[] { "Name", "Preferred\nNetwork",
+ "IP Address(es)", "Number\nof CPUs", "Total\nMemory (GB)", "Total Disk\n Space (GB)", "Status" };
+
+ public GlusterServersPage(Composite parent, int style) {
+ super(parent, style);
+ addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ toolkit.dispose();
+ }
+ });
+
+ toolkit.adapt(this);
+ toolkit.paintBordersFor(this);
+
+ setupPageLayout();
+ Text filterText = guiHelper.createFilterText(toolkit, this);
+ setupServerTableViewer(filterText);
+ }
+
+ public GlusterServersPage(final Composite parent, int style, EntityGroup servers) {
+ this(parent, style);
+
+ tableViewer.setInput(servers);
+ parent.layout(); // Important - this actually paints the table
+
+ /**
+ * Ideally not required. However the table viewer is not getting laid out properly on performing
+ * "maximize + restore" So this is a hack to make sure that the table is laid out again on re-size of the window
+ */
+ addPaintListener(new PaintListener() {
+
+ @Override
+ public void paintControl(PaintEvent e) {
+ parent.layout();
+ }
+ });
+ }
+
+ public void addDoubleClickListener(IDoubleClickListener listener) {
+ tableViewer.addDoubleClickListener(listener);
+ }
+
+ private void setupPageLayout() {
+ final GridLayout layout = new GridLayout(1, false);
+ layout.verticalSpacing = 10;
+ layout.marginTop = 10;
+ setLayout(layout);
+ }
+
+ private void setupServerTable(Composite parent, Table table) {
+ table.setHeaderVisible(true);
+ table.setLinesVisible(false);
+
+ TableColumnLayout tableColumnLayout = guiHelper.createTableColumnLayout(table, GLUSTER_SERVER_TABLE_COLUMN_NAMES);
+ parent.setLayout(tableColumnLayout);
+
+ setColumnProperties(table, GLUSTER_SERVER_TABLE_COLUMN_INDICES.NAME, SWT.CENTER, 100);
+ setColumnProperties(table, GLUSTER_SERVER_TABLE_COLUMN_INDICES.STATUS, SWT.CENTER, 70);
+ setColumnProperties(table, GLUSTER_SERVER_TABLE_COLUMN_INDICES.PREFERRED_NETWORK, SWT.CENTER, 90);
+ setColumnProperties(table, GLUSTER_SERVER_TABLE_COLUMN_INDICES.NUM_OF_CPUS, SWT.CENTER, 90);
+ //setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.CPU_USAGE, SWT.CENTER, 90);
+ setColumnProperties(table, GLUSTER_SERVER_TABLE_COLUMN_INDICES.TOTAL_MEMORY, SWT.CENTER, 90);
+ //setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.MEMORY_IN_USE, SWT.CENTER, 90);
+ setColumnProperties(table, GLUSTER_SERVER_TABLE_COLUMN_INDICES.TOTAL_DISK_SPACE, SWT.CENTER, 90);
+ //setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.DISK_SPACE_IN_USE, SWT.CENTER, 90);
+ }
+
+ private TableViewer createServerTableViewer(Composite parent) {
+ TableViewer tableViewer = CheckboxTableViewer.newCheckList(parent, SWT.FLAT | SWT.FULL_SELECTION | SWT.MULTI);
+ //TableViewer tableViewer = new TableViewer(parent, SWT.FLAT | SWT.FULL_SELECTION | SWT.MULTI);
+ tableViewer.setLabelProvider(new GlusterServerTableLabelProvider());
+ tableViewer.setContentProvider(new EntityGroupContentProvider());
+
+ setupServerTable(parent, tableViewer.getTable());
+
+ return tableViewer;
+ }
+
+ private Composite createTableViewerComposite() {
+ Composite tableViewerComposite = new Composite(this, SWT.NO);
+ tableViewerComposite.setLayout(new FillLayout(SWT.HORIZONTAL));
+ tableViewerComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ return tableViewerComposite;
+ }
+
+ private void setupServerTableViewer(final Text filterText) {
+ Composite tableViewerComposite = createTableViewerComposite();
+ tableViewer = createServerTableViewer(tableViewerComposite);
+ // Create a case insensitive filter for the table viewer using the filter text field
+ guiHelper.createFilter(tableViewer, filterText, false);
+ }
+
+ /**
+ * Sets properties for alignment and weight of given column of given table
+ *
+ * @param table
+ * @param columnIndex
+ * @param alignment
+ * @param weight
+ */
+ public void setColumnProperties(Table table, GLUSTER_SERVER_TABLE_COLUMN_INDICES columnIndex, int alignment, int weight) {
+ TableColumn column = table.getColumn(columnIndex.ordinal());
+ column.setAlignment(alignment);
+
+ TableColumnLayout tableColumnLayout = (TableColumnLayout) table.getParent().getLayout();
+ tableColumnLayout.setColumnData(column, new ColumnWeightData(weight));
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerDisksPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerDisksPage.java
new file mode 100644
index 00000000..f65ddc0c
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerDisksPage.java
@@ -0,0 +1,50 @@
+package com.gluster.storage.management.gui.views.details;
+
+import java.util.List;
+
+import org.eclipse.jface.layout.TableColumnLayout;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.ui.IWorkbenchSite;
+
+import com.gluster.storage.management.core.model.Disk;
+import com.gluster.storage.management.gui.ServerDiskTableLabelProvider;
+import com.gluster.storage.management.gui.TableLabelProviderAdapter;
+
+public class ServerDisksPage extends AbstractDisksPage {
+ public ServerDisksPage(Composite parent, int style, IWorkbenchSite site, List disks) {
+ super(parent, style, site, disks);
+ }
+
+ public enum SERVER_DISK_TABLE_COLUMN_INDICES {
+ DISK, SPACE, SPACE_IN_USE, STATUS
+ };
+
+ private static final String[] SERVER_DISK_TABLE_COLUMN_NAMES = new String[] { "Disk", "Space (GB)",
+ "Space in Use (GB)", "Status" };
+
+ @Override
+ protected void setupDiskTable(Composite parent, Table table) {
+ table.setHeaderVisible(true);
+ table.setLinesVisible(false);
+
+ TableColumnLayout tableColumnLayout = guiHelper.createTableColumnLayout(table, SERVER_DISK_TABLE_COLUMN_NAMES);
+ parent.setLayout(tableColumnLayout);
+
+ guiHelper.setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.DISK.ordinal(), SWT.CENTER, 100);
+ guiHelper.setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.SPACE.ordinal(), SWT.CENTER, 90);
+ guiHelper.setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.SPACE_IN_USE.ordinal(), SWT.CENTER, 90);
+ guiHelper.setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.STATUS.ordinal(), SWT.LEFT, 90);
+ }
+
+ @Override
+ protected int getStatusColumnIndex() {
+ return SERVER_DISK_TABLE_COLUMN_INDICES.STATUS.ordinal();
+ }
+
+ @Override
+ protected TableLabelProviderAdapter getTableLabelProvider() {
+ return new ServerDiskTableLabelProvider();
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerLogsPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerLogsPage.java
new file mode 100644
index 00000000..4d867e58
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServerLogsPage.java
@@ -0,0 +1,161 @@
+package com.gluster.storage.management.gui.views.details;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.ListViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+import com.gluster.storage.management.core.model.GlusterServer;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+public class ServerLogsPage extends Composite {
+
+ private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
+ private final GUIHelper guiHelper = GUIHelper.getInstance();
+ private Text text;
+ private Table table;
+
+ public enum LOG_TABLE_COLUMN_INDICES {
+ DATE, TIME, DISK, SEVERITY, MESSAGE
+ };
+
+ private static final String[] LOG_TABLE_COLUMN_NAMES = new String[] { "Date", "Time", "Disk", "Severity", "Message" };
+
+ /**
+ * Create the composite.
+ *
+ * @param parent
+ * @param style
+ */
+ public ServerLogsPage(Composite parent, int style, GlusterServer server) {
+ super(parent, style);
+ addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ toolkit.dispose();
+ }
+ });
+ toolkit.adapt(this);
+ toolkit.paintBordersFor(this);
+
+ setLayout(new GridLayout(1, false));
+ GridData layoutData = new GridData();
+ layoutData.grabExcessHorizontalSpace = true;
+ layoutData.grabExcessVerticalSpace = true;
+ setLayoutData(layoutData);
+
+ Composite composite = toolkit.createComposite(this, SWT.NONE);
+ toolkit.paintBordersFor(composite);
+
+ Label lblScanLast = toolkit.createLabel(composite, "Scan last", SWT.NONE);
+ lblScanLast.setBounds(0, 15, 80, 20);
+
+ text = toolkit.createText(composite, "100", SWT.NONE);
+ text.setBounds(85, 15, 60, 20);
+
+ Label lblMessagesAndFilter = toolkit.createLabel(composite, " messages from ", SWT.CENTER);
+ lblMessagesAndFilter.setBounds(160, 15, 110, 20);
+
+ Combo combo = new Combo(composite, SWT.CENTER);
+ combo.setBounds(295, 15, 100, 20);
+ combo.setItems(new String[] { "syslog", "dmesg" });
+ toolkit.adapt(combo);
+ toolkit.paintBordersFor(combo);
+ combo.select(0);
+
+ Button btngo = toolkit.createButton(composite, "&Go", SWT.NONE);
+ btngo.setBounds(410, 13, 50, 30);
+
+ Label separator = toolkit.createLabel(composite, "", SWT.SEPARATOR | SWT.HORIZONTAL | SWT.FILL);
+ separator.setBounds(0, 50, 500, 2);
+
+ Label lblFilterString = toolkit.createLabel(composite, "Filter String", SWT.LEFT);
+ lblFilterString.setBounds(0, 65, 100, 20);
+
+ text = guiHelper.createFilterText(toolkit, composite);
+ text.setBounds(105, 65, 250, 20);
+
+ Composite logContentsComposite = createLogContentsComposite(toolkit);
+ // Text logContentsText = toolkit.createText(logContentsComposite, "", SWT.MULTI | SWT.FLAT | SWT.BORDER);
+ // logContentsText.setEditable(false);
+ // populateDummyLogContent(logContentsText);
+
+ ListViewer logViewer = new ListViewer(logContentsComposite, SWT.BORDER | SWT.V_SCROLL | SWT.NO);
+ logViewer.setContentProvider(new ArrayContentProvider());
+ guiHelper.createFilter(logViewer, text, false);
+ logViewer.setInput(getDummyLogContents());
+
+ // TODO: Link the filter string with the contents text
+ }
+
+ private Composite createLogContentsComposite(FormToolkit toolkit) {
+ Composite tableViewerComposite = toolkit.createComposite(this, SWT.NONE);
+ tableViewerComposite.setLayout(new FillLayout(SWT.HORIZONTAL));
+ GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ layoutData.verticalIndent = 10;
+ tableViewerComposite.setLayoutData(layoutData);
+ return tableViewerComposite;
+ }
+
+ private String[] getDummyLogContents() {
+
+ String[] logMessages = {
+ "Jan 19 13:43:08 shireesh-laptop dhclient: last message repeated 6 times",
+ "Jan 19 13:44:08 shireesh-laptop dhclient: last message repeated 5 times",
+ "Jan 19 13:44:47 shireesh-laptop dhclient: last message repeated 2 times",
+ "Jan 19 13:44:47 shireesh-laptop dhclient: DHCPREQUEST of 192.168.1.174 on eth1 to 255.255.255.255 port 67",
+ "Jan 19 13:45:49 shireesh-laptop dhclient: last message repeated 6 times",
+ "Jan 19 13:46:59 shireesh-laptop dhclient: last message repeated 6 times",
+ "Jan 19 13:48:01 shireesh-laptop dhclient: last message repeated 4 times",
+ "Jan 19 13:49:02 shireesh-laptop dhclient: last message repeated 5 times",
+ "Jan 19 13:50:08 shireesh-laptop dhclient: last message repeated 4 times",
+ "Jan 19 13:51:08 shireesh-laptop dhclient: last message repeated 6 times",
+ "Jan 19 13:52:08 shireesh-laptop dhclient: last message repeated 4 times",
+ "Jan 19 13:53:08 shireesh-laptop dhclient: last message repeated 6 times",
+ "Jan 19 13:54:08 shireesh-laptop dhclient: last message repeated 5 times",
+ "Jan 19 13:55:08 shireesh-laptop dhclient: last message repeated 4 times",
+ "Jan 19 13:56:08 shireesh-laptop dhclient: last message repeated 4 times",
+ "Jan 19 13:57:08 shireesh-laptop dhclient: last message repeated 3 times",
+ "Jan 19 13:58:08 shireesh-laptop dhclient: last message repeated 6 times",
+ "Jan 19 13:59:08 shireesh-laptop dhclient: last message repeated 4 times",
+ "Jan 19 13:59:40 shireesh-laptop dhclient: last message repeated 3 times",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: DHCP: device eth1 state changed bound -> expire",
+ "Jan 19 13:59:40 shireesh-laptop dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: DHCP: device eth1 state changed expire -> preinit",
+ "Jan 19 13:59:40 shireesh-laptop dhclient: DHCPOFFER of 192.168.1.174 from 192.168.1.1",
+ "Jan 19 13:59:40 shireesh-laptop dhclient: DHCPREQUEST of 192.168.1.174 on eth1 to 255.255.255.255 port 67",
+ "Jan 19 13:59:40 shireesh-laptop dhclient: DHCPACK of 192.168.1.174 from 192.168.1.1",
+ "Jan 19 13:59:40 shireesh-laptop dhclient: bound to 192.168.1.174 -- renewal in 3205 seconds.",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: DHCP: device eth1 state changed preinit -> bound",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: address 192.168.1.174",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: prefix 24 (255.255.255.0)",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: gateway 192.168.1.1",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: nameserver '192.168.1.1'",
+ "Jan 19 13:59:40 shireesh-laptop NetworkManager: domain name 'in.gluster.com'",
+ "Jan 19 14:03:53 shireesh-laptop avahi-daemon[1098]: Invalid legacy unicast query packet.",
+ "Jan 19 14:03:53 shireesh-laptop avahi-daemon[1098]: Received response from host 192.168.1.155 with invalid source port 37219 on interface 'eth0.0'",
+ "Jan 19 14:03:54 shireesh-laptop avahi-daemon[1098]: Invalid legacy unicast query packet.",
+ "Jan 19 14:03:54 shireesh-laptop avahi-daemon[1098]: Invalid legacy unicast query packet.",
+ "Jan 19 14:03:54 shireesh-laptop avahi-daemon[1098]: Received response from host 192.168.1.155 with invalid source port 37219 on interface 'eth0.0'",
+ "Jan 19 14:05:09 shireesh-laptop avahi-daemon[1098]: last message repeated 8 times",
+ "Jan 19 14:12:48 shireesh-laptop NetworkManager: [1295426568.002642] periodic_update(): Roamed from BSSID E0:CB:4E:C0:0B:7F (glfs) to (none) ((none))",
+ "Jan 19 14:12:54 shireesh-laptop NetworkManager: [1295426574.002448] periodic_update(): Roamed from BSSID (none) ((none)) to E0:CB:4E:C0:0B:7F (glfs)",
+ "Jan 19 14:17:01 shireesh-laptop CRON[5321]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)" };
+
+ return logMessages;
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServersPage.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServersPage.java
new file mode 100644
index 00000000..43a64ffc
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/ServersPage.java
@@ -0,0 +1,153 @@
+package com.gluster.storage.management.gui.views.details;
+
+import org.eclipse.jface.layout.TableColumnLayout;
+import org.eclipse.jface.viewers.CheckboxTableViewer;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.PaintEvent;
+import org.eclipse.swt.events.PaintListener;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+import com.gluster.storage.management.core.model.EntityGroup;
+import com.gluster.storage.management.core.model.Server;
+import com.gluster.storage.management.gui.EntityGroupContentProvider;
+import com.gluster.storage.management.gui.ServerTableLabelProvider;
+import com.gluster.storage.management.gui.utils.GUIHelper;
+
+public class ServersPage extends Composite {
+
+ private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
+ private TableViewer tableViewer;
+ private GUIHelper guiHelper = GUIHelper.getInstance();
+
+ public enum SERVER_TABLE_COLUMN_INDICES {
+ NAME, IP_ADDRESSES, NUM_OF_DISKS, TOTAL_DISK_SPACE
+ };
+
+ private static final String[] SERVER_TABLE_COLUMN_NAMES = new String[] { "Name", "IP Address(es)", "Number of Disks", "Total Disk Space (GB)" };
+
+ // public enum SERVER_DISK_TABLE_COLUMN_INDICES {
+ // NAME, NUM_OF_CPUS, CPU_USAGE, TOTAL_MEMORY, MEMORY_IN_USE, TOTAL_DISK_SPACE, DISK_SPACE_IN_USE
+ // };
+ //
+ // private static final String[] SERVER_TABLE_COLUMN_NAMES = new String[] { "Name",
+ // "Number\nof CPUs", "CPU\nUsage (%)", "Total\nMemory (GB)", "Memory\nIn Use (GB)",
+ // "Total Disk\n Space (GB)", "Disk Space\nin Use (GB)"};
+
+ public ServersPage(Composite parent, int style) {
+ super(parent, style);
+ addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ toolkit.dispose();
+ }
+ });
+
+ toolkit.adapt(this);
+ toolkit.paintBordersFor(this);
+
+ setupPageLayout();
+ Text filterText = guiHelper.createFilterText(toolkit, this);
+ setupServerTableViewer(filterText);
+ }
+
+ public ServersPage(final Composite parent, int style, EntityGroup servers) {
+ this(parent, style);
+
+ tableViewer.setInput(servers);
+ parent.layout(); // Important - this actually paints the table
+
+ /**
+ * Ideally not required. However the table viewer is not getting laid out properly on performing
+ * "maximize + restore" So this is a hack to make sure that the table is laid out again on re-size of the window
+ */
+ addPaintListener(new PaintListener() {
+
+ @Override
+ public void paintControl(PaintEvent e) {
+ parent.layout();
+ }
+ });
+ }
+
+ public void addDoubleClickListener(IDoubleClickListener listener) {
+ tableViewer.addDoubleClickListener(listener);
+ }
+
+ private void setupPageLayout() {
+ final GridLayout layout = new GridLayout(1, false);
+ layout.verticalSpacing = 10;
+ layout.marginTop = 10;
+ setLayout(layout);
+ }
+
+ private void setupServerTable(Composite parent, Table table) {
+ table.setHeaderVisible(true);
+ table.setLinesVisible(false);
+
+ TableColumnLayout tableColumnLayout = guiHelper.createTableColumnLayout(table, SERVER_TABLE_COLUMN_NAMES);
+ parent.setLayout(tableColumnLayout);
+
+ setColumnProperties(table, SERVER_TABLE_COLUMN_INDICES.NAME, SWT.CENTER, 70);
+ setColumnProperties(table, SERVER_TABLE_COLUMN_INDICES.IP_ADDRESSES, SWT.CENTER, 100);
+ setColumnProperties(table, SERVER_TABLE_COLUMN_INDICES.NUM_OF_DISKS, SWT.CENTER, 70);
+ setColumnProperties(table, SERVER_TABLE_COLUMN_INDICES.TOTAL_DISK_SPACE, SWT.CENTER, 70);
+ // setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.NUM_OF_CPUS, SWT.CENTER, 90);
+ // setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.CPU_USAGE, SWT.CENTER, 90);
+ // setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.TOTAL_MEMORY, SWT.CENTER, 90);
+ // setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.MEMORY_IN_USE, SWT.CENTER, 90);
+ // setColumnProperties(table, SERVER_DISK_TABLE_COLUMN_INDICES.DISK_SPACE_IN_USE, SWT.CENTER, 90);
+ }
+
+ private TableViewer createServerTableViewer(Composite parent) {
+ TableViewer tableViewer = CheckboxTableViewer.newCheckList(parent, SWT.FLAT | SWT.FULL_SELECTION | SWT.MULTI);
+ // TableViewer tableViewer = new TableViewer(parent, SWT.FLAT | SWT.FULL_SELECTION | SWT.MULTI);
+ tableViewer.setLabelProvider(new ServerTableLabelProvider());
+ tableViewer.setContentProvider(new EntityGroupContentProvider());
+
+ setupServerTable(parent, tableViewer.getTable());
+
+ return tableViewer;
+ }
+
+ private Composite createTableViewerComposite() {
+ Composite tableViewerComposite = new Composite(this, SWT.NONE);
+ tableViewerComposite.setLayout(new FillLayout(SWT.HORIZONTAL));
+ tableViewerComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ return tableViewerComposite;
+ }
+
+ private void setupServerTableViewer(final Text filterText) {
+ Composite tableViewerComposite = createTableViewerComposite();
+ tableViewer = createServerTableViewer(tableViewerComposite);
+ // Create a case insensitive filter for the table viewer using the filter text field
+ guiHelper.createFilter(tableViewer, filterText, false);
+ }
+
+ /**
+ * Sets properties for alignment and weight of given column of given table
+ *
+ * @param table
+ * @param columnIndex
+ * @param alignment
+ * @param weight
+ */
+ private void setColumnProperties(Table table, SERVER_TABLE_COLUMN_INDICES columnIndex, int alignment, int weight) {
+ TableColumn column = table.getColumn(columnIndex.ordinal());
+ column.setAlignment(alignment);
+
+ TableColumnLayout tableColumnLayout = (TableColumnLayout) table.getParent().getLayout();
+ tableColumnLayout.setColumnData(column, new ColumnWeightData(weight));
+ }
+}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/SmartControlAdapter.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/SmartControlAdapter.java
new file mode 100644
index 00000000..0cf60af0
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/SmartControlAdapter.java
@@ -0,0 +1,35 @@
+package com.gluster.storage.management.gui.views.details;
+
+import org.eclipse.swt.events.ControlAdapter;
+import org.eclipse.swt.events.ControlEvent;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Shell;
+
+/**
+ * This is an extended version of the regular ControlAdapter.
+ * It is used to get only the real resize events and excludes all resize
+ * events of the text size determination.
+ *
+ */
+public abstract class SmartControlAdapter extends ControlAdapter {
+
+ public void controlResized( ControlEvent e ) {
+ Shell shell = ( ( Control )e.widget ).getShell();
+ Point shellSize = shell.getSize();
+ Point previousSize = ( Point )e.widget.getData( "previousShellSize"
+ + this.hashCode() );
+ e.widget.setData( "previousShellSize" + this.hashCode(), shellSize );
+ if( previousSize != null ) {
+ int dx = Math.abs( Math.abs( shellSize.x - previousSize.x ) - 1000 );
+ int dy = Math.abs( Math.abs( shellSize.y - previousSize.y ) - 1000 );
+ if( ( dx <= 2 || dy <= 2 ) ) {
+ // This came from the TextSizeDetermination
+ return;
+ }
+ }
+ handleControlResized( e );
+ }
+
+ protected abstract void handleControlResized( ControlEvent e );
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/TabCreator.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/TabCreator.java
new file mode 100644
index 00000000..d6d9c77b
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/TabCreator.java
@@ -0,0 +1,31 @@
+package com.gluster.storage.management.gui.views.details;
+
+import org.eclipse.swt.widgets.TabFolder;
+import org.eclipse.ui.IWorkbenchSite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+import com.gluster.storage.management.core.model.Entity;
+
+/**
+ * For every entity that can be selected from the navigation view (cluster tree), a set of tabs are created on the
+ * details view. Each entity has a corresponding tab creator that creates these tabs. These tab creators must implement
+ * this interface.
+ *
+ *
+ * @author scheglov_ke
+ * @author Dan Rubel
+ */
+public class ResourceManager extends SWTResourceManager {
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // Image
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ private static Map m_descriptorImageMap = new HashMap();
+ /**
+ * Returns an {@link ImageDescriptor} stored in the file at the specified path relative to the specified
+ * class.
+ *
+ * @param clazz
+ * the {@link Class} relative to which to find the image descriptor.
+ * @param path
+ * the path to the image file.
+ * @return the {@link ImageDescriptor} stored in the file at the specified path.
+ */
+ public static ImageDescriptor getImageDescriptor(Class> clazz, String path) {
+ return ImageDescriptor.createFromFile(clazz, path);
+ }
+ /**
+ * Returns an {@link ImageDescriptor} stored in the file at the specified path.
+ *
+ * @param path
+ * the path to the image file.
+ * @return the {@link ImageDescriptor} stored in the file at the specified path.
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ try {
+ return ImageDescriptor.createFromURL(new File(path).toURI().toURL());
+ } catch (MalformedURLException e) {
+ return null;
+ }
+ }
+ /**
+ * Returns an {@link Image} based on the specified {@link ImageDescriptor}.
+ *
+ * @param descriptor
+ * the {@link ImageDescriptor} for the {@link Image}.
+ * @return the {@link Image} based on the specified {@link ImageDescriptor}.
+ */
+ public static Image getImage(ImageDescriptor descriptor) {
+ if (descriptor == null) {
+ return null;
+ }
+ Image image = m_descriptorImageMap.get(descriptor);
+ if (image == null) {
+ image = descriptor.createImage();
+ m_descriptorImageMap.put(descriptor, image);
+ }
+ return image;
+ }
+ /**
+ * Maps images to decorated images.
+ */
+ @SuppressWarnings("unchecked")
+ private static Map>[] m_decoratedImageMap = new Map[LAST_CORNER_KEY];
+ /**
+ * Returns an {@link Image} composed of a base image decorated by another image.
+ *
+ * @param baseImage
+ * the base {@link Image} that should be decorated.
+ * @param decorator
+ * the {@link Image} to decorate the base image.
+ * @return {@link Image} The resulting decorated image.
+ */
+ public static Image decorateImage(Image baseImage, Image decorator) {
+ return decorateImage(baseImage, decorator, BOTTOM_RIGHT);
+ }
+ /**
+ * Returns an {@link Image} composed of a base image decorated by another image.
+ *
+ * @param baseImage
+ * the base {@link Image} that should be decorated.
+ * @param decorator
+ * the {@link Image} to decorate the base image.
+ * @param corner
+ * the corner to place decorator image.
+ * @return the resulting decorated {@link Image}.
+ */
+ public static Image decorateImage(final Image baseImage, final Image decorator, final int corner) {
+ if (corner <= 0 || corner >= LAST_CORNER_KEY) {
+ throw new IllegalArgumentException("Wrong decorate corner");
+ }
+ Map> cornerDecoratedImageMap = m_decoratedImageMap[corner];
+ if (cornerDecoratedImageMap == null) {
+ cornerDecoratedImageMap = new HashMap>();
+ m_decoratedImageMap[corner] = cornerDecoratedImageMap;
+ }
+ Map decoratedMap = cornerDecoratedImageMap.get(baseImage);
+ if (decoratedMap == null) {
+ decoratedMap = new HashMap();
+ cornerDecoratedImageMap.put(baseImage, decoratedMap);
+ }
+ //
+ Image result = decoratedMap.get(decorator);
+ if (result == null) {
+ final Rectangle bib = baseImage.getBounds();
+ final Rectangle dib = decorator.getBounds();
+ final Point baseImageSize = new Point(bib.width, bib.height);
+ CompositeImageDescriptor compositImageDesc = new CompositeImageDescriptor() {
+ @Override
+ protected void drawCompositeImage(int width, int height) {
+ drawImage(baseImage.getImageData(), 0, 0);
+ if (corner == TOP_LEFT) {
+ drawImage(decorator.getImageData(), 0, 0);
+ } else if (corner == TOP_RIGHT) {
+ drawImage(decorator.getImageData(), bib.width - dib.width, 0);
+ } else if (corner == BOTTOM_LEFT) {
+ drawImage(decorator.getImageData(), 0, bib.height - dib.height);
+ } else if (corner == BOTTOM_RIGHT) {
+ drawImage(decorator.getImageData(), bib.width - dib.width, bib.height - dib.height);
+ }
+ }
+ @Override
+ protected Point getSize() {
+ return baseImageSize;
+ }
+ };
+ //
+ result = compositImageDesc.createImage();
+ decoratedMap.put(decorator, result);
+ }
+ return result;
+ }
+ /**
+ * Dispose all of the cached images.
+ */
+ public static void disposeImages() {
+ SWTResourceManager.disposeImages();
+ // dispose ImageDescriptor images
+ {
+ for (Iterator I = m_descriptorImageMap.values().iterator(); I.hasNext();) {
+ I.next().dispose();
+ }
+ m_descriptorImageMap.clear();
+ }
+ // dispose decorated images
+ for (int i = 0; i < m_decoratedImageMap.length; i++) {
+ Map> cornerDecoratedImageMap = m_decoratedImageMap[i];
+ if (cornerDecoratedImageMap != null) {
+ for (Map decoratedMap : cornerDecoratedImageMap.values()) {
+ for (Image image : decoratedMap.values()) {
+ image.dispose();
+ }
+ decoratedMap.clear();
+ }
+ cornerDecoratedImageMap.clear();
+ }
+ }
+ // dispose plugin images
+ {
+ for (Iterator I = m_URLImageMap.values().iterator(); I.hasNext();) {
+ I.next().dispose();
+ }
+ m_URLImageMap.clear();
+ }
+ }
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // Plugin images support
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ /**
+ * Maps URL to images.
+ */
+ private static Map m_URLImageMap = new HashMap();
+ /**
+ * Provider for plugin resources, used by WindowBuilder at design time.
+ */
+ public interface PluginResourceProvider {
+ URL getEntry(String symbolicName, String path);
+ }
+ /**
+ * Instance of {@link PluginResourceProvider}, used by WindowBuilder at design time.
+ */
+ private static PluginResourceProvider m_designTimePluginResourceProvider = null;
+ /**
+ * Returns an {@link Image} based on a plugin and file path.
+ *
+ * @param plugin
+ * the plugin {@link Object} containing the image
+ * @param name
+ * the path to the image within the plugin
+ * @return the {@link Image} stored in the file at the specified path
+ *
+ * @deprecated Use {@link #getPluginImage(String, String)} instead.
+ */
+ @Deprecated
+ public static Image getPluginImage(Object plugin, String name) {
+ try {
+ URL url = getPluginImageURL(plugin, name);
+ if (url != null) {
+ return getPluginImageFromUrl(url);
+ }
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ return null;
+ }
+ /**
+ * Returns an {@link Image} based on a {@link Bundle} and resource entry path.
+ *
+ * @param symbolicName
+ * the symbolic name of the {@link Bundle}.
+ * @param path
+ * the path of the resource entry.
+ * @return the {@link Image} stored in the file at the specified path.
+ */
+ public static Image getPluginImage(String symbolicName, String path) {
+ try {
+ URL url = getPluginImageURL(symbolicName, path);
+ if (url != null) {
+ return getPluginImageFromUrl(url);
+ }
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ return null;
+ }
+ /**
+ * Returns an {@link Image} based on given {@link URL}.
+ */
+ private static Image getPluginImageFromUrl(URL url) {
+ try {
+ try {
+ String key = url.toExternalForm();
+ Image image = m_URLImageMap.get(key);
+ if (image == null) {
+ InputStream stream = url.openStream();
+ try {
+ image = getImage(stream);
+ m_URLImageMap.put(key, image);
+ } finally {
+ stream.close();
+ }
+ }
+ return image;
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ return null;
+ }
+ /**
+ * Returns an {@link ImageDescriptor} based on a plugin and file path.
+ *
+ * @param plugin
+ * the plugin {@link Object} containing the image.
+ * @param name
+ * the path to th eimage within the plugin.
+ * @return the {@link ImageDescriptor} stored in the file at the specified path.
+ *
+ * @deprecated Use {@link #getPluginImageDescriptor(String, String)} instead.
+ */
+ @Deprecated
+ public static ImageDescriptor getPluginImageDescriptor(Object plugin, String name) {
+ try {
+ try {
+ URL url = getPluginImageURL(plugin, name);
+ return ImageDescriptor.createFromURL(url);
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ return null;
+ }
+ /**
+ * Returns an {@link ImageDescriptor} based on a {@link Bundle} and resource entry path.
+ *
+ * @param symbolicName
+ * the symbolic name of the {@link Bundle}.
+ * @param path
+ * the path of the resource entry.
+ * @return the {@link ImageDescriptor} based on a {@link Bundle} and resource entry path.
+ */
+ public static ImageDescriptor getPluginImageDescriptor(String symbolicName, String path) {
+ try {
+ URL url = getPluginImageURL(symbolicName, path);
+ if (url != null) {
+ return ImageDescriptor.createFromURL(url);
+ }
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ return null;
+ }
+ /**
+ * Returns an {@link URL} based on a {@link Bundle} and resource entry path.
+ */
+ private static URL getPluginImageURL(String symbolicName, String path) {
+ // try runtime plugins
+ {
+ Bundle bundle = Platform.getBundle(symbolicName);
+ if (bundle != null) {
+ return bundle.getEntry(path);
+ }
+ }
+ // try design time provider
+ if (m_designTimePluginResourceProvider != null) {
+ return m_designTimePluginResourceProvider.getEntry(symbolicName, path);
+ }
+ // no such resource
+ return null;
+ }
+ /**
+ * Returns an {@link URL} based on a plugin and file path.
+ *
+ * @param plugin
+ * the plugin {@link Object} containing the file path.
+ * @param name
+ * the file path.
+ * @return the {@link URL} representing the file at the specified path.
+ * @throws Exception
+ */
+ private static URL getPluginImageURL(Object plugin, String name) throws Exception {
+ // try to work with 'plugin' as with OSGI BundleContext
+ try {
+ Class> BundleClass = Class.forName("org.osgi.framework.Bundle"); //$NON-NLS-1$
+ Class> BundleContextClass = Class.forName("org.osgi.framework.BundleContext"); //$NON-NLS-1$
+ if (BundleContextClass.isAssignableFrom(plugin.getClass())) {
+ Method getBundleMethod = BundleContextClass.getMethod("getBundle", new Class[0]); //$NON-NLS-1$
+ Object bundle = getBundleMethod.invoke(plugin, new Object[0]);
+ //
+ Class> PathClass = Class.forName("org.eclipse.core.runtime.Path"); //$NON-NLS-1$
+ Constructor> pathConstructor = PathClass.getConstructor(new Class[]{String.class});
+ Object path = pathConstructor.newInstance(new Object[]{name});
+ //
+ Class> IPathClass = Class.forName("org.eclipse.core.runtime.IPath"); //$NON-NLS-1$
+ Class> PlatformClass = Class.forName("org.eclipse.core.runtime.Platform"); //$NON-NLS-1$
+ Method findMethod = PlatformClass.getMethod("find", new Class[]{BundleClass, IPathClass}); //$NON-NLS-1$
+ return (URL) findMethod.invoke(null, new Object[]{bundle, path});
+ }
+ } catch (Throwable e) {
+ // Ignore any exceptions
+ }
+ // else work with 'plugin' as with usual Eclipse plugin
+ {
+ Class> PluginClass = Class.forName("org.eclipse.core.runtime.Plugin"); //$NON-NLS-1$
+ if (PluginClass.isAssignableFrom(plugin.getClass())) {
+ //
+ Class> PathClass = Class.forName("org.eclipse.core.runtime.Path"); //$NON-NLS-1$
+ Constructor> pathConstructor = PathClass.getConstructor(new Class[]{String.class});
+ Object path = pathConstructor.newInstance(new Object[]{name});
+ //
+ Class> IPathClass = Class.forName("org.eclipse.core.runtime.IPath"); //$NON-NLS-1$
+ Method findMethod = PluginClass.getMethod("find", new Class[]{IPathClass}); //$NON-NLS-1$
+ return (URL) findMethod.invoke(plugin, new Object[]{path});
+ }
+ }
+ return null;
+ }
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // General
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ /**
+ * Dispose of cached objects and their underlying OS resources. This should only be called when the cached
+ * objects are no longer needed (e.g. on application shutdown).
+ */
+ public static void dispose() {
+ disposeColors();
+ disposeFonts();
+ disposeImages();
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.gui/src/com/swtdesigner/SWTResourceManager.java b/com.gluster.storage.management.gui/src/com/swtdesigner/SWTResourceManager.java
new file mode 100644
index 00000000..ef062c0b
--- /dev/null
+++ b/com.gluster.storage.management.gui/src/com/swtdesigner/SWTResourceManager.java
@@ -0,0 +1,437 @@
+package com.swtdesigner;
+
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Cursor;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.ImageData;
+import org.eclipse.swt.graphics.RGB;
+import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Utility class for managing OS resources associated with SWT controls such as colors, fonts, images, etc.
+ *
+ * !!! IMPORTANT !!! Application code must explicitly invoke the dispose() method to release the
+ * operating system resources managed by cached objects when those objects and OS resources are no longer
+ * needed (e.g. on application shutdown)
+ *
+ * This class may be freely distributed as part of any application or plugin.
+ *
+ * @author scheglov_ke
+ * @author Dan Rubel
+ */
+public class SWTResourceManager {
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // Color
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ private static Map m_colorMap = new HashMap();
+ /**
+ * Returns the system {@link Color} matching the specific ID.
+ *
+ * @param systemColorID
+ * the ID value for the color
+ * @return the system {@link Color} matching the specific ID
+ */
+ public static Color getColor(int systemColorID) {
+ Display display = Display.getCurrent();
+ return display.getSystemColor(systemColorID);
+ }
+ /**
+ * Returns a {@link Color} given its red, green and blue component values.
+ *
+ * @param r
+ * the red component of the color
+ * @param g
+ * the green component of the color
+ * @param b
+ * the blue component of the color
+ * @return the {@link Color} matching the given red, green and blue component values
+ */
+ public static Color getColor(int r, int g, int b) {
+ return getColor(new RGB(r, g, b));
+ }
+ /**
+ * Returns a {@link Color} given its RGB value.
+ *
+ * @param rgb
+ * the {@link RGB} value of the color
+ * @return the {@link Color} matching the RGB value
+ */
+ public static Color getColor(RGB rgb) {
+ Color color = m_colorMap.get(rgb);
+ if (color == null) {
+ Display display = Display.getCurrent();
+ color = new Color(display, rgb);
+ m_colorMap.put(rgb, color);
+ }
+ return color;
+ }
+ /**
+ * Dispose of all the cached {@link Color}'s.
+ */
+ public static void disposeColors() {
+ for (Color color : m_colorMap.values()) {
+ color.dispose();
+ }
+ m_colorMap.clear();
+ }
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // Image
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ /**
+ * Maps image paths to images.
+ */
+ private static Map m_imageMap = new HashMap();
+ /**
+ * Returns an {@link Image} encoded by the specified {@link InputStream}.
+ *
+ * @param stream
+ * the {@link InputStream} encoding the image data
+ * @return the {@link Image} encoded by the specified input stream
+ */
+ protected static Image getImage(InputStream stream) throws IOException {
+ try {
+ Display display = Display.getCurrent();
+ ImageData data = new ImageData(stream);
+ if (data.transparentPixel > 0) {
+ return new Image(display, data, data.getTransparencyMask());
+ }
+ return new Image(display, data);
+ } finally {
+ stream.close();
+ }
+ }
+ /**
+ * Returns an {@link Image} stored in the file at the specified path.
+ *
+ * @param path
+ * the path to the image file
+ * @return the {@link Image} stored in the file at the specified path
+ */
+ public static Image getImage(String path) {
+ Image image = m_imageMap.get(path);
+ if (image == null) {
+ try {
+ image = getImage(new FileInputStream(path));
+ m_imageMap.put(path, image);
+ } catch (Exception e) {
+ image = getMissingImage();
+ m_imageMap.put(path, image);
+ }
+ }
+ return image;
+ }
+ /**
+ * Returns an {@link Image} stored in the file at the specified path relative to the specified class.
+ *
+ * @param clazz
+ * the {@link Class} relative to which to find the image
+ * @param path
+ * the path to the image file, if starts with '/'
+ * @return the {@link Image} stored in the file at the specified path
+ */
+ public static Image getImage(Class> clazz, String path) {
+ String key = clazz.getName() + '|' + path;
+ Image image = m_imageMap.get(key);
+ if (image == null) {
+ try {
+ image = getImage(clazz.getResourceAsStream(path));
+ m_imageMap.put(key, image);
+ } catch (Exception e) {
+ image = getMissingImage();
+ m_imageMap.put(key, image);
+ }
+ }
+ return image;
+ }
+ private static final int MISSING_IMAGE_SIZE = 10;
+ /**
+ * @return the small {@link Image} that can be used as placeholder for missing image.
+ */
+ private static Image getMissingImage() {
+ Image image = new Image(Display.getCurrent(), MISSING_IMAGE_SIZE, MISSING_IMAGE_SIZE);
+ //
+ GC gc = new GC(image);
+ gc.setBackground(getColor(SWT.COLOR_RED));
+ gc.fillRectangle(0, 0, MISSING_IMAGE_SIZE, MISSING_IMAGE_SIZE);
+ gc.dispose();
+ //
+ return image;
+ }
+ /**
+ * Style constant for placing decorator image in top left corner of base image.
+ */
+ public static final int TOP_LEFT = 1;
+ /**
+ * Style constant for placing decorator image in top right corner of base image.
+ */
+ public static final int TOP_RIGHT = 2;
+ /**
+ * Style constant for placing decorator image in bottom left corner of base image.
+ */
+ public static final int BOTTOM_LEFT = 3;
+ /**
+ * Style constant for placing decorator image in bottom right corner of base image.
+ */
+ public static final int BOTTOM_RIGHT = 4;
+ /**
+ * Internal value.
+ */
+ protected static final int LAST_CORNER_KEY = 5;
+ /**
+ * Maps images to decorated images.
+ */
+ @SuppressWarnings("unchecked")
+ private static Map>[] m_decoratedImageMap = new Map[LAST_CORNER_KEY];
+ /**
+ * Returns an {@link Image} composed of a base image decorated by another image.
+ *
+ * @param baseImage
+ * the base {@link Image} that should be decorated
+ * @param decorator
+ * the {@link Image} to decorate the base image
+ * @return {@link Image} The resulting decorated image
+ */
+ public static Image decorateImage(Image baseImage, Image decorator) {
+ return decorateImage(baseImage, decorator, BOTTOM_RIGHT);
+ }
+ /**
+ * Returns an {@link Image} composed of a base image decorated by another image.
+ *
+ * @param baseImage
+ * the base {@link Image} that should be decorated
+ * @param decorator
+ * the {@link Image} to decorate the base image
+ * @param corner
+ * the corner to place decorator image
+ * @return the resulting decorated {@link Image}
+ */
+ public static Image decorateImage(final Image baseImage, final Image decorator, final int corner) {
+ if (corner <= 0 || corner >= LAST_CORNER_KEY) {
+ throw new IllegalArgumentException("Wrong decorate corner");
+ }
+ Map> cornerDecoratedImageMap = m_decoratedImageMap[corner];
+ if (cornerDecoratedImageMap == null) {
+ cornerDecoratedImageMap = new HashMap>();
+ m_decoratedImageMap[corner] = cornerDecoratedImageMap;
+ }
+ Map decoratedMap = cornerDecoratedImageMap.get(baseImage);
+ if (decoratedMap == null) {
+ decoratedMap = new HashMap();
+ cornerDecoratedImageMap.put(baseImage, decoratedMap);
+ }
+ //
+ Image result = decoratedMap.get(decorator);
+ if (result == null) {
+ Rectangle bib = baseImage.getBounds();
+ Rectangle dib = decorator.getBounds();
+ //
+ result = new Image(Display.getCurrent(), bib.width, bib.height);
+ //
+ GC gc = new GC(result);
+ gc.drawImage(baseImage, 0, 0);
+ if (corner == TOP_LEFT) {
+ gc.drawImage(decorator, 0, 0);
+ } else if (corner == TOP_RIGHT) {
+ gc.drawImage(decorator, bib.width - dib.width, 0);
+ } else if (corner == BOTTOM_LEFT) {
+ gc.drawImage(decorator, 0, bib.height - dib.height);
+ } else if (corner == BOTTOM_RIGHT) {
+ gc.drawImage(decorator, bib.width - dib.width, bib.height - dib.height);
+ }
+ gc.dispose();
+ //
+ decoratedMap.put(decorator, result);
+ }
+ return result;
+ }
+ /**
+ * Dispose all of the cached {@link Image}'s.
+ */
+ public static void disposeImages() {
+ // dispose loaded images
+ {
+ for (Image image : m_imageMap.values()) {
+ image.dispose();
+ }
+ m_imageMap.clear();
+ }
+ // dispose decorated images
+ for (int i = 0; i < m_decoratedImageMap.length; i++) {
+ Map> cornerDecoratedImageMap = m_decoratedImageMap[i];
+ if (cornerDecoratedImageMap != null) {
+ for (Map decoratedMap : cornerDecoratedImageMap.values()) {
+ for (Image image : decoratedMap.values()) {
+ image.dispose();
+ }
+ decoratedMap.clear();
+ }
+ cornerDecoratedImageMap.clear();
+ }
+ }
+ }
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // Font
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ /**
+ * Maps font names to fonts.
+ */
+ private static Map m_fontMap = new HashMap();
+ /**
+ * Maps fonts to their bold versions.
+ */
+ private static Map m_fontToBoldFontMap = new HashMap();
+ /**
+ * Returns a {@link Font} based on its name, height and style.
+ *
+ * @param name
+ * the name of the font
+ * @param height
+ * the height of the font
+ * @param style
+ * the style of the font
+ * @return {@link Font} The font matching the name, height and style
+ */
+ public static Font getFont(String name, int height, int style) {
+ return getFont(name, height, style, false, false);
+ }
+ /**
+ * Returns a {@link Font} based on its name, height and style. Windows-specific strikeout and underline
+ * flags are also supported.
+ *
+ * @param name
+ * the name of the font
+ * @param size
+ * the size of the font
+ * @param style
+ * the style of the font
+ * @param strikeout
+ * the strikeout flag (warning: Windows only)
+ * @param underline
+ * the underline flag (warning: Windows only)
+ * @return {@link Font} The font matching the name, height, style, strikeout and underline
+ */
+ public static Font getFont(String name, int size, int style, boolean strikeout, boolean underline) {
+ String fontName = name + '|' + size + '|' + style + '|' + strikeout + '|' + underline;
+ Font font = m_fontMap.get(fontName);
+ if (font == null) {
+ FontData fontData = new FontData(name, size, style);
+ if (strikeout || underline) {
+ try {
+ Class> logFontClass = Class.forName("org.eclipse.swt.internal.win32.LOGFONT"); //$NON-NLS-1$
+ Object logFont = FontData.class.getField("data").get(fontData); //$NON-NLS-1$
+ if (logFont != null && logFontClass != null) {
+ if (strikeout) {
+ logFontClass.getField("lfStrikeOut").set(logFont, Byte.valueOf((byte) 1)); //$NON-NLS-1$
+ }
+ if (underline) {
+ logFontClass.getField("lfUnderline").set(logFont, Byte.valueOf((byte) 1)); //$NON-NLS-1$
+ }
+ }
+ } catch (Throwable e) {
+ System.err.println("Unable to set underline or strikeout" + " (probably on a non-Windows platform). " + e); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ }
+ font = new Font(Display.getCurrent(), fontData);
+ m_fontMap.put(fontName, font);
+ }
+ return font;
+ }
+ /**
+ * Returns a bold version of the given {@link Font}.
+ *
+ * @param baseFont
+ * the {@link Font} for which a bold version is desired
+ * @return the bold version of the given {@link Font}
+ */
+ public static Font getBoldFont(Font baseFont) {
+ Font font = m_fontToBoldFontMap.get(baseFont);
+ if (font == null) {
+ FontData fontDatas[] = baseFont.getFontData();
+ FontData data = fontDatas[0];
+ font = new Font(Display.getCurrent(), data.getName(), data.getHeight(), SWT.BOLD);
+ m_fontToBoldFontMap.put(baseFont, font);
+ }
+ return font;
+ }
+ /**
+ * Dispose all of the cached {@link Font}'s.
+ */
+ public static void disposeFonts() {
+ // clear fonts
+ for (Font font : m_fontMap.values()) {
+ font.dispose();
+ }
+ m_fontMap.clear();
+ // clear bold fonts
+ for (Font font : m_fontToBoldFontMap.values()) {
+ font.dispose();
+ }
+ m_fontToBoldFontMap.clear();
+ }
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // Cursor
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ /**
+ * Maps IDs to cursors.
+ */
+ private static Map m_idToCursorMap = new HashMap();
+ /**
+ * Returns the system cursor matching the specific ID.
+ *
+ * @param id
+ * int The ID value for the cursor
+ * @return Cursor The system cursor matching the specific ID
+ */
+ public static Cursor getCursor(int id) {
+ Integer key = Integer.valueOf(id);
+ Cursor cursor = m_idToCursorMap.get(key);
+ if (cursor == null) {
+ cursor = new Cursor(Display.getDefault(), id);
+ m_idToCursorMap.put(key, cursor);
+ }
+ return cursor;
+ }
+ /**
+ * Dispose all of the cached cursors.
+ */
+ public static void disposeCursors() {
+ for (Cursor cursor : m_idToCursorMap.values()) {
+ cursor.dispose();
+ }
+ m_idToCursorMap.clear();
+ }
+ ////////////////////////////////////////////////////////////////////////////
+ //
+ // General
+ //
+ ////////////////////////////////////////////////////////////////////////////
+ /**
+ * Dispose of cached objects and their underlying OS resources. This should only be called when the cached
+ * objects are no longer needed (e.g. on application shutdown).
+ */
+ public static void dispose() {
+ disposeColors();
+ disposeImages();
+ disposeFonts();
+ disposeCursors();
+ }
+}
\ No newline at end of file
diff --git a/com.gluster.storage.management.server/.classpath b/com.gluster.storage.management.server/.classpath
new file mode 100644
index 00000000..c96b5783
--- /dev/null
+++ b/com.gluster.storage.management.server/.classpath
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.server/.project b/com.gluster.storage.management.server/.project
new file mode 100644
index 00000000..cb36e33f
--- /dev/null
+++ b/com.gluster.storage.management.server/.project
@@ -0,0 +1,36 @@
+
+
+ com.gluster.storage.management.server
+
+
+
+
+
+ org.eclipse.wst.jsdt.core.javascriptValidator
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+ org.eclipse.wst.common.project.facet.core.nature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.wst.jsdt.core.jsNature
+
+
diff --git a/com.gluster.storage.management.server/.settings/.jsdtscope b/com.gluster.storage.management.server/.settings/.jsdtscope
new file mode 100644
index 00000000..3a28de0c
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/.jsdtscope
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.server/.settings/org.eclipse.jdt.core.prefs b/com.gluster.storage.management.server/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..476db350
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Wed Dec 29 14:57:23 IST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/com.gluster.storage.management.server/.settings/org.eclipse.ltk.core.refactoring.prefs b/com.gluster.storage.management.server/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 00000000..5d9c71b6
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Mon Jan 31 15:29:36 IST 2011
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/com.gluster.storage.management.server/.settings/org.eclipse.wst.common.component b/com.gluster.storage.management.server/.settings/org.eclipse.wst.common.component
new file mode 100644
index 00000000..bb2eaf45
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.server/.settings/org.eclipse.wst.common.project.facet.core.xml b/com.gluster.storage.management.server/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 00000000..307f3bb7
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.container b/com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.container
new file mode 100644
index 00000000..3bd5d0a4
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.name b/com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.name
new file mode 100644
index 00000000..05bd71b6
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
\ No newline at end of file
diff --git a/com.gluster.storage.management.server/.settings/org.eclipse.wst.ws.service.policy.prefs b/com.gluster.storage.management.server/.settings/org.eclipse.wst.ws.service.policy.prefs
new file mode 100644
index 00000000..e5ca6272
--- /dev/null
+++ b/com.gluster.storage.management.server/.settings/org.eclipse.wst.ws.service.policy.prefs
@@ -0,0 +1,3 @@
+#Mon Jan 31 15:29:36 IST 2011
+eclipse.preferences.version=1
+org.eclipse.wst.ws.service.policy.projectEnabled=false
diff --git a/com.gluster.storage.management.server/WebContent/META-INF/MANIFEST.MF b/com.gluster.storage.management.server/WebContent/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..5e949512
--- /dev/null
+++ b/com.gluster.storage.management.server/WebContent/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/asm-3.1.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/asm-3.1.jar
new file mode 100644
index 00000000..8217cae0
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/asm-3.1.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/com.gluster.storage.management.core_1.0.0.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/com.gluster.storage.management.core_1.0.0.jar
new file mode 100644
index 00000000..2f689843
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/com.gluster.storage.management.core_1.0.0.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-core-asl-1.5.5.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-core-asl-1.5.5.jar
new file mode 100644
index 00000000..a3248188
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-core-asl-1.5.5.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-jaxrs-1.5.5.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-jaxrs-1.5.5.jar
new file mode 100644
index 00000000..faf12cf6
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-jaxrs-1.5.5.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-mapper-asl-1.5.5.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-mapper-asl-1.5.5.jar
new file mode 100644
index 00000000..ca612580
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-mapper-asl-1.5.5.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-xc-1.5.5.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-xc-1.5.5.jar
new file mode 100644
index 00000000..57c2c670
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jackson-xc-1.5.5.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-client-1.4.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-client-1.4.jar
new file mode 100644
index 00000000..e7debb0f
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-client-1.4.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-core-1.4.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-core-1.4.jar
new file mode 100644
index 00000000..ae78fe33
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-core-1.4.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-json-1.4.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-json-1.4.jar
new file mode 100644
index 00000000..78c14c1b
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-json-1.4.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-server-1.4.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-server-1.4.jar
new file mode 100644
index 00000000..c420a6d8
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jersey-server-1.4.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jettison-1.1.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jettison-1.1.jar
new file mode 100644
index 00000000..e4e9c8c3
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jettison-1.1.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar
new file mode 100644
index 00000000..ec8bc818
Binary files /dev/null and b/com.gluster.storage.management.server/WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar differ
diff --git a/com.gluster.storage.management.server/WebContent/WEB-INF/web.xml b/com.gluster.storage.management.server/WebContent/WEB-INF/web.xml
new file mode 100644
index 00000000..36d65880
--- /dev/null
+++ b/com.gluster.storage.management.server/WebContent/WEB-INF/web.xml
@@ -0,0 +1,25 @@
+
+
+ com.gluster.storage.management.server
+
+ index.html
+ index.htm
+ index.jsp
+ default.html
+ default.htm
+ default.jsp
+
+
+ Jersey REST Service
+ com.sun.jersey.spi.container.servlet.ServletContainer
+
+ com.sun.jersey.config.property.packages
+ com.gluster.storage.management.server.services
+
+ 1
+
+
+ Jersey REST Service
+ /services/*
+
+
\ No newline at end of file
diff --git a/com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/AuthManager.java b/com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/AuthManager.java
new file mode 100644
index 00000000..5dc4fdcf
--- /dev/null
+++ b/com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/AuthManager.java
@@ -0,0 +1,63 @@
+package com.gluster.storage.management.server.services;
+
+import java.io.File;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedMap;
+import javax.ws.rs.core.Request;
+
+import com.gluster.storage.management.core.model.AuthStatus;
+import com.gluster.storage.management.core.utils.FileUtil;
+import com.gluster.storage.management.core.utils.MD5Crypt;
+import com.gluster.storage.management.core.utils.ProcessResult;
+import com.gluster.storage.management.core.utils.ProcessUtil;
+
+import com.sun.jersey.spi.container.ContainerRequest;
+
+@Path("/login")
+public class AuthManager {
+ @Context
+ private Request request;
+
+ /**
+ * Authenticates given user with given password for login on current system
+ * @param user
+ * @param password
+ * @return true is user can be successfully authenticated using given password, else false
+ */
+ private boolean authenticate(String user, String password) {
+ String tmpFileName = "tmp";
+ File saltFile = new File(tmpFileName);
+ ProcessResult result = new ProcessUtil().executeCommand("get-user-password.py", user, tmpFileName);
+ if (result.isSuccess()) {
+ String salt = new FileUtil().readFileAsString(saltFile);
+ String encryptedPassword = MD5Crypt.crypt(password, salt);
+ return encryptedPassword.equals(salt);
+ }
+
+ return false;
+ }
+
+ @GET
+ @Produces(MediaType.TEXT_XML)
+ public AuthStatus login() {
+ String user = null;
+ String password = null;
+
+ if (request instanceof ContainerRequest) {
+ ContainerRequest containerRequest = (ContainerRequest) request;
+ MultivaluedMap paramsMap = containerRequest.getQueryParameters();
+ user = paramsMap.get("user").get(0);
+ password = paramsMap.get("password").get(0);
+ }
+
+ AuthStatus authStatus = new AuthStatus();
+ authStatus.setIsAuthenticated(authenticate(user, password));
+
+ return authStatus;
+ }
+}
diff --git a/com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/Hello.java b/com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/Hello.java
new file mode 100644
index 00000000..eea0a36f
--- /dev/null
+++ b/com.gluster.storage.management.server/src/com/gluster/storage/management/server/services/Hello.java
@@ -0,0 +1,32 @@
+package com.gluster.storage.management.server.services;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+
+//Sets the path to base URL + /hello
+@Path("/hello")
+public class Hello {
+ // This method is called if TEXT_PLAIN is request
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ public String sayPlainTextHello() {
+ return "Hello Jersey";
+ }
+
+ // This method is called if XMLis request
+ @GET
+ @Produces(MediaType.TEXT_XML)
+ public String sayXMLHello() {
+ return "" + " Hello Jersey" + "";
+ }
+
+ // This method is called if HTML is request
+ @GET
+ @Produces(MediaType.TEXT_HTML)
+ public String sayHtmlHello() {
+ return " " + "" + "Hello Jersey" + ""
+ + "
" + "Hello Jersey" + "
" + " ";
+ }
+}
diff --git a/com.sun.jersey/.classpath b/com.sun.jersey/.classpath
new file mode 100644
index 00000000..f2d41466
--- /dev/null
+++ b/com.sun.jersey/.classpath
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/com.sun.jersey/.project b/com.sun.jersey/.project
new file mode 100644
index 00000000..52ec5691
--- /dev/null
+++ b/com.sun.jersey/.project
@@ -0,0 +1,28 @@
+
+
+ com.sun.jersey
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.pde.ManifestBuilder
+
+
+
+
+ org.eclipse.pde.SchemaBuilder
+
+
+
+
+
+ org.eclipse.pde.PluginNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/com.sun.jersey/.settings/org.eclipse.jdt.core.prefs b/com.sun.jersey/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..1a662ced
--- /dev/null
+++ b/com.sun.jersey/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Wed Dec 29 17:39:49 IST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/com.sun.jersey/META-INF/MANIFEST.MF b/com.sun.jersey/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..f3868345
--- /dev/null
+++ b/com.sun.jersey/META-INF/MANIFEST.MF
@@ -0,0 +1,42 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Jersey
+Bundle-SymbolicName: com.sun.jersey
+Bundle-Version: 1.4
+Bundle-Vendor: Oracle Corporation
+Export-Package: com.sun.jersey.api.client,
+ com.sun.jersey.api.client.async,
+ com.sun.jersey.api.client.config,
+ com.sun.jersey.api.client.filter,
+ com.sun.jersey.api.representation,
+ com.sun.jersey.api.uri,
+ com.sun.jersey.client.impl,
+ com.sun.jersey.client.impl.async,
+ com.sun.jersey.client.osgi,
+ com.sun.jersey.client.proxy,
+ com.sun.jersey.client.urlconnection,
+ com.sun.jersey.core.header,
+ com.sun.jersey.core.header.reader,
+ com.sun.jersey.core.impl.provider.entity,
+ com.sun.jersey.core.impl.provider.header,
+ com.sun.jersey.core.impl.provider.xml,
+ com.sun.jersey.core.osgi,
+ com.sun.jersey.core.provider,
+ com.sun.jersey.core.provider.jaxb,
+ com.sun.jersey.core.reflection,
+ com.sun.jersey.core.spi.component,
+ com.sun.jersey.core.spi.component.ioc,
+ com.sun.jersey.core.spi.factory,
+ com.sun.jersey.core.spi.scanning,
+ com.sun.jersey.core.spi.scanning.uri,
+ com.sun.jersey.core.util,
+ com.sun.jersey.impl,
+ com.sun.jersey.localization,
+ com.sun.jersey.spi,
+ com.sun.jersey.spi.inject,
+ com.sun.jersey.spi.service,
+ com.sun.ws.rs.ext,
+ javax.ws.rs,
+ javax.ws.rs.core,
+ javax.ws.rs.ext
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/com.sun.jersey/META-INF/jersey-module-version b/com.sun.jersey/META-INF/jersey-module-version
new file mode 100644
index 00000000..c068b244
--- /dev/null
+++ b/com.sun.jersey/META-INF/jersey-module-version
@@ -0,0 +1 @@
+1.4
diff --git a/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.properties b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.properties
new file mode 100644
index 00000000..68b426b4
--- /dev/null
+++ b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.properties
@@ -0,0 +1,5 @@
+#Generated by org.apache.felix.bundleplugin
+#Sat Sep 11 22:30:48 CEST 2010
+version=1.4
+groupId=com.sun.jersey
+artifactId=jersey-client
diff --git a/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.xml b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.xml
new file mode 100644
index 00000000..7ff98886
--- /dev/null
+++ b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-client/pom.xml
@@ -0,0 +1,124 @@
+
+
+
+ 4.0.0
+
+
+ com.sun.jersey
+ jersey-project
+ 1.4
+
+ jersey-client
+ bundle
+ jersey-client
+
+
+
+ com.sun.jersey
+ jersey-core
+ ${project.version}
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+ com.sun.net.httpserver
+ http
+ 20070405
+ test
+
+
+ org.osgi
+ osgi_R4_core
+ 1.0
+ provided
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
+
+ com.sun.jersey.client.osgi.Activator
+ javax.mail.*;resolution:=optional, *
+ com.sun.jersey.client.osgi
+ com.sun.jersey.api.client.*,com.sun.jersey.client.*,com.sun.ws.rs.ext
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+ https://jsr311.dev.java.net/nonav/releases/1.1
+
+ com.sun.jersey.client.impl com.sun.ws.rs.ex
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+
+
+
+
diff --git a/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.properties b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.properties
new file mode 100644
index 00000000..9da26862
--- /dev/null
+++ b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.properties
@@ -0,0 +1,5 @@
+#Generated by org.apache.felix.bundleplugin
+#Sat Sep 11 22:29:29 CEST 2010
+version=1.4
+groupId=com.sun.jersey
+artifactId=jersey-core
diff --git a/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.xml b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.xml
new file mode 100644
index 00000000..c20ad376
--- /dev/null
+++ b/com.sun.jersey/META-INF/maven/com.sun.jersey/jersey-core/pom.xml
@@ -0,0 +1,228 @@
+
+
+
+ 4.0.0
+
+ com.sun.jersey
+ jersey-project
+ 1.4
+
+ jersey-core
+ bundle
+ jersey-core
+
+
+ javax.ws.rs
+ jsr311-api
+ 1.1.1
+ provided
+
+
+ javax.mail
+ mail
+ 1.4
+ provided
+
+
+ javax.xml.bind
+ jaxb-api
+ 2.1
+ provided
+
+
+ org.osgi
+ osgi_R4_core
+ 1.0
+ provided
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
+
+
+
+
+ ${basedir}/src/main/resources
+
+
+ ${basedir}/src/main/java
+
+ **/*.java
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-source
+ generate-sources
+
+ add-source
+
+
+
+ ${project.build.directory}/generated-sources/rsrc-gen
+ ${project.build.directory}/generated-sources/jsr311
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+
+
+ unpack
+ generate-sources
+
+ unpack
+
+
+
+
+ javax.ws.rs
+ jsr311-api
+ 1.1.1
+ jar
+ sources
+ false
+ ${project.build.directory}/generated-sources/jsr311
+
+
+
+
+
+
+
+
+
+
+ com.sun.istack
+ maven-istack-commons-plugin
+ 0.1
+
+
+ generate-sources
+
+
+ ${basedir}/src/main/resources
+
+ **/*.properties
+
+
+ ${project.build.directory}/generated-sources/rsrc-gen
+ com.sun.jersey.localization
+
+
+ rs-gen
+
+
+
+
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
+
+ javax.ws.rs.*;-split-package:=merge-first,com.sun.jersey.*;-split-package:=merge-first
+ !javax.ws.rs.*,javax.mail.*;resolution:=optional, *
+ *
+ com.sun.jersey.core.osgi;-split-package:=merge-first
+ com.sun.jersey.core.osgi.Activator
+ jersey-core osgi
+ ${project.version}
+
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+ https://jsr311.dev.java.net/nonav/releases/1.1
+
+ com.sun.jersey.core.impl:com.sun.jersey.impl
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+
+
+
+
diff --git a/com.sun.jersey/META-INF/services/com.sun.jersey.spi.HeaderDelegateProvider b/com.sun.jersey/META-INF/services/com.sun.jersey.spi.HeaderDelegateProvider
new file mode 100644
index 00000000..4905c35f
--- /dev/null
+++ b/com.sun.jersey/META-INF/services/com.sun.jersey.spi.HeaderDelegateProvider
@@ -0,0 +1,9 @@
+com.sun.jersey.core.impl.provider.header.LocaleProvider
+com.sun.jersey.core.impl.provider.header.EntityTagProvider
+com.sun.jersey.core.impl.provider.header.MediaTypeProvider
+com.sun.jersey.core.impl.provider.header.CacheControlProvider
+com.sun.jersey.core.impl.provider.header.NewCookieProvider
+com.sun.jersey.core.impl.provider.header.CookieProvider
+com.sun.jersey.core.impl.provider.header.URIProvider
+com.sun.jersey.core.impl.provider.header.DateProvider
+com.sun.jersey.core.impl.provider.header.StringProvider
diff --git a/com.sun.jersey/META-INF/services/com.sun.jersey.spi.inject.InjectableProvider b/com.sun.jersey/META-INF/services/com.sun.jersey.spi.inject.InjectableProvider
new file mode 100644
index 00000000..c5ee8c2a
--- /dev/null
+++ b/com.sun.jersey/META-INF/services/com.sun.jersey.spi.inject.InjectableProvider
@@ -0,0 +1,5 @@
+com.sun.jersey.core.impl.provider.xml.SAXParserContextProvider
+com.sun.jersey.core.impl.provider.xml.XMLStreamReaderContextProvider
+com.sun.jersey.core.impl.provider.xml.DocumentBuilderFactoryProvider
+com.sun.jersey.core.impl.provider.xml.TransformerFactoryProvider
+
diff --git a/com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyReader b/com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyReader
new file mode 100644
index 00000000..6114deff
--- /dev/null
+++ b/com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyReader
@@ -0,0 +1,27 @@
+com.sun.jersey.core.impl.provider.entity.StringProvider
+com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
+com.sun.jersey.core.impl.provider.entity.FileProvider
+com.sun.jersey.core.impl.provider.entity.InputStreamProvider
+com.sun.jersey.core.impl.provider.entity.DataSourceProvider
+com.sun.jersey.core.impl.provider.entity.RenderedImageProvider
+com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider
+com.sun.jersey.core.impl.provider.entity.FormProvider
+com.sun.jersey.core.impl.provider.entity.FormMultivaluedMapProvider
+com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App
+com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text
+com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
+com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App
+com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text
+com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
+com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App
+com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text
+com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
+com.sun.jersey.core.impl.provider.entity.ReaderProvider
+com.sun.jersey.core.impl.provider.entity.DocumentProvider
+com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader
+com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader
+com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader
+com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$App
+com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$Text
+com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General
+com.sun.jersey.core.impl.provider.entity.EntityHolderReader
\ No newline at end of file
diff --git a/com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyWriter b/com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyWriter
new file mode 100644
index 00000000..b0c37ec0
--- /dev/null
+++ b/com.sun.jersey/META-INF/services/javax.ws.rs.ext.MessageBodyWriter
@@ -0,0 +1,22 @@
+com.sun.jersey.core.impl.provider.entity.StringProvider
+com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
+com.sun.jersey.core.impl.provider.entity.FileProvider
+com.sun.jersey.core.impl.provider.entity.InputStreamProvider
+com.sun.jersey.core.impl.provider.entity.DataSourceProvider
+com.sun.jersey.core.impl.provider.entity.RenderedImageProvider
+com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider
+com.sun.jersey.core.impl.provider.entity.FormProvider
+com.sun.jersey.core.impl.provider.entity.FormMultivaluedMapProvider
+com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App
+com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text
+com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
+com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App
+com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text
+com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
+com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App
+com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text
+com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
+com.sun.jersey.core.impl.provider.entity.ReaderProvider
+com.sun.jersey.core.impl.provider.entity.DocumentProvider
+com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider
+com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter
diff --git a/com.sun.jersey/build.properties b/com.sun.jersey/build.properties
new file mode 100644
index 00000000..3a57c6a1
--- /dev/null
+++ b/com.sun.jersey/build.properties
@@ -0,0 +1,5 @@
+bin.includes = META-INF/,\
+ javax/,\
+ com/
+src.includes = com/,\
+ javax/
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AbstractClientRequestAdapter.class b/com.sun.jersey/com/sun/jersey/api/client/AbstractClientRequestAdapter.class
new file mode 100644
index 00000000..58600b29
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AbstractClientRequestAdapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncUniformInterface.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncUniformInterface.class
new file mode 100644
index 00000000..ba910086
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncUniformInterface.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$1.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$1.class
new file mode 100644
index 00000000..50c441fb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$2.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$2.class
new file mode 100644
index 00000000..34988f43
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$Builder.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$Builder.class
new file mode 100644
index 00000000..3313c289
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource$Builder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource.class
new file mode 100644
index 00000000..816c08ed
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewResource.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncViewUniformInterface.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewUniformInterface.class
new file mode 100644
index 00000000..aaa12e92
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncViewUniformInterface.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$1.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$1.class
new file mode 100644
index 00000000..03fa1179
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$2.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$2.class
new file mode 100644
index 00000000..4a24ec32
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$3.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$3.class
new file mode 100644
index 00000000..b5385c6c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$3.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$4.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$4.class
new file mode 100644
index 00000000..25ad096c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$4.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$5.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$5.class
new file mode 100644
index 00000000..157736c1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$5.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$6.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$6.class
new file mode 100644
index 00000000..77f5e26d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$6.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$Builder.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$Builder.class
new file mode 100644
index 00000000..11acbc18
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource$Builder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource.class b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource.class
new file mode 100644
index 00000000..c2506447
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/AsyncWebResource.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$1.class b/com.sun.jersey/com/sun/jersey/api/client/Client$1.class
new file mode 100644
index 00000000..5184a639
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$2.class b/com.sun.jersey/com/sun/jersey/api/client/Client$2.class
new file mode 100644
index 00000000..98e7ff31
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$3.class b/com.sun.jersey/com/sun/jersey/api/client/Client$3.class
new file mode 100644
index 00000000..079970d2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$3.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$4$1.class b/com.sun.jersey/com/sun/jersey/api/client/Client$4$1.class
new file mode 100644
index 00000000..c035f7fc
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$4$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$4.class b/com.sun.jersey/com/sun/jersey/api/client/Client$4.class
new file mode 100644
index 00000000..56291979
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$4.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl$1.class b/com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl$1.class
new file mode 100644
index 00000000..4ce999d3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl.class b/com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl.class
new file mode 100644
index 00000000..7c855aef
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$ComponentProcessorFactoryImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client$ContextInjectableProvider.class b/com.sun.jersey/com/sun/jersey/api/client/Client$ContextInjectableProvider.class
new file mode 100644
index 00000000..f4e095e2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client$ContextInjectableProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/Client.class b/com.sun.jersey/com/sun/jersey/api/client/Client.class
new file mode 100644
index 00000000..017e5349
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/Client.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ClientHandler.class b/com.sun.jersey/com/sun/jersey/api/client/ClientHandler.class
new file mode 100644
index 00000000..a3b061a9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ClientHandler.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ClientHandlerException.class b/com.sun.jersey/com/sun/jersey/api/client/ClientHandlerException.class
new file mode 100644
index 00000000..5c57825b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ClientHandlerException.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ClientRequest$Builder.class b/com.sun.jersey/com/sun/jersey/api/client/ClientRequest$Builder.class
new file mode 100644
index 00000000..f8927dbe
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ClientRequest$Builder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ClientRequest.class b/com.sun.jersey/com/sun/jersey/api/client/ClientRequest.class
new file mode 100644
index 00000000..9664cc52
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ClientRequest.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ClientRequestAdapter.class b/com.sun.jersey/com/sun/jersey/api/client/ClientRequestAdapter.class
new file mode 100644
index 00000000..19fff847
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ClientRequestAdapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ClientResponse$Status.class b/com.sun.jersey/com/sun/jersey/api/client/ClientResponse$Status.class
new file mode 100644
index 00000000..90325dd7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ClientResponse$Status.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ClientResponse.class b/com.sun.jersey/com/sun/jersey/api/client/ClientResponse.class
new file mode 100644
index 00000000..85204320
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ClientResponse.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/CommittingOutputStream.class b/com.sun.jersey/com/sun/jersey/api/client/CommittingOutputStream.class
new file mode 100644
index 00000000..d225437f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/CommittingOutputStream.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ComponentsClientConfig.class b/com.sun.jersey/com/sun/jersey/api/client/ComponentsClientConfig.class
new file mode 100644
index 00000000..29f9e7b2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ComponentsClientConfig.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/GenericType.class b/com.sun.jersey/com/sun/jersey/api/client/GenericType.class
new file mode 100644
index 00000000..8b7d80a0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/GenericType.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/PartialRequestBuilder.class b/com.sun.jersey/com/sun/jersey/api/client/PartialRequestBuilder.class
new file mode 100644
index 00000000..b07f52ec
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/PartialRequestBuilder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/RequestBuilder.class b/com.sun.jersey/com/sun/jersey/api/client/RequestBuilder.class
new file mode 100644
index 00000000..d434306b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/RequestBuilder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriter.class b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriter.class
new file mode 100644
index 00000000..fa11491d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterImpl.class b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterImpl.class
new file mode 100644
index 00000000..2cca85df
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterListener.class b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterListener.class
new file mode 100644
index 00000000..6ae5c5a6
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler$RequestEntityWriterListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler.class b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler.class
new file mode 100644
index 00000000..20b29cf5
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/TerminatingClientHandler.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/UniformInterface.class b/com.sun.jersey/com/sun/jersey/api/client/UniformInterface.class
new file mode 100644
index 00000000..b1b32877
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/UniformInterface.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/UniformInterfaceException.class b/com.sun.jersey/com/sun/jersey/api/client/UniformInterfaceException.class
new file mode 100644
index 00000000..b5b0f394
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/UniformInterfaceException.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ViewResource$1.class b/com.sun.jersey/com/sun/jersey/api/client/ViewResource$1.class
new file mode 100644
index 00000000..e35384ea
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ViewResource$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ViewResource$Builder.class b/com.sun.jersey/com/sun/jersey/api/client/ViewResource$Builder.class
new file mode 100644
index 00000000..4a341092
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ViewResource$Builder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ViewResource.class b/com.sun.jersey/com/sun/jersey/api/client/ViewResource.class
new file mode 100644
index 00000000..e486e807
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ViewResource.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/ViewUniformInterface.class b/com.sun.jersey/com/sun/jersey/api/client/ViewUniformInterface.class
new file mode 100644
index 00000000..8f5fc486
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/ViewUniformInterface.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/WebResource$1.class b/com.sun.jersey/com/sun/jersey/api/client/WebResource$1.class
new file mode 100644
index 00000000..1d7753ef
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/WebResource$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/WebResource$Builder.class b/com.sun.jersey/com/sun/jersey/api/client/WebResource$Builder.class
new file mode 100644
index 00000000..00ac95f6
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/WebResource$Builder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/WebResource.class b/com.sun.jersey/com/sun/jersey/api/client/WebResource.class
new file mode 100644
index 00000000..68c83842
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/WebResource.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/WebResourceLinkHeaders.class b/com.sun.jersey/com/sun/jersey/api/client/WebResourceLinkHeaders.class
new file mode 100644
index 00000000..fb0d557e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/WebResourceLinkHeaders.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/async/AsyncClientHandler.class b/com.sun.jersey/com/sun/jersey/api/client/async/AsyncClientHandler.class
new file mode 100644
index 00000000..bb7c1c8b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/async/AsyncClientHandler.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/async/FutureListener.class b/com.sun.jersey/com/sun/jersey/api/client/async/FutureListener.class
new file mode 100644
index 00000000..9d0b7114
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/async/FutureListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/async/ITypeListener.class b/com.sun.jersey/com/sun/jersey/api/client/async/ITypeListener.class
new file mode 100644
index 00000000..f7b637e3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/async/ITypeListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/async/TypeListener.class b/com.sun.jersey/com/sun/jersey/api/client/async/TypeListener.class
new file mode 100644
index 00000000..fb3c0922
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/async/TypeListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/config/ClientConfig.class b/com.sun.jersey/com/sun/jersey/api/client/config/ClientConfig.class
new file mode 100644
index 00000000..fd317ee3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/config/ClientConfig.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/config/DefaultClientConfig.class b/com.sun.jersey/com/sun/jersey/api/client/config/DefaultClientConfig.class
new file mode 100644
index 00000000..0ead0638
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/config/DefaultClientConfig.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/ClientFilter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/ClientFilter.class
new file mode 100644
index 00000000..227adcfe
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/ClientFilter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/ClientRequestContainer.class b/com.sun.jersey/com/sun/jersey/api/client/filter/ClientRequestContainer.class
new file mode 100644
index 00000000..fefeafea
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/ClientRequestContainer.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter$Adapter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter$Adapter.class
new file mode 100644
index 00000000..9233191b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter$Adapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter.class
new file mode 100644
index 00000000..da67a440
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/ConnectionListenerFilter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/ContainerListener.class b/com.sun.jersey/com/sun/jersey/api/client/filter/ContainerListener.class
new file mode 100644
index 00000000..f64d3ee0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/ContainerListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/Filterable.class b/com.sun.jersey/com/sun/jersey/api/client/filter/Filterable.class
new file mode 100644
index 00000000..0d2d37e4
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/Filterable.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter$Adapter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter$Adapter.class
new file mode 100644
index 00000000..b568fb69
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter$Adapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter.class
new file mode 100644
index 00000000..221ca517
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPBasicAuthFilter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPBasicAuthFilter.class
new file mode 100644
index 00000000..d751a0e9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPBasicAuthFilter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$1.class b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$1.class
new file mode 100644
index 00000000..79388ed9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$QOP.class b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$QOP.class
new file mode 100644
index 00000000..974266d7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$QOP.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$State.class b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$State.class
new file mode 100644
index 00000000..a6f0f719
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter$State.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter.class
new file mode 100644
index 00000000..be24d956
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/HTTPDigestAuthFilter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$Adapter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$Adapter.class
new file mode 100644
index 00000000..1da802fb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$Adapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$LoggingOutputStream.class b/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$LoggingOutputStream.class
new file mode 100644
index 00000000..1c045865
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter$LoggingOutputStream.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter.class b/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter.class
new file mode 100644
index 00000000..ba2088d1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/LoggingFilter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/OnStartConnectionListener.class b/com.sun.jersey/com/sun/jersey/api/client/filter/OnStartConnectionListener.class
new file mode 100644
index 00000000..32b184cf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/OnStartConnectionListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/ReportingInputStream.class b/com.sun.jersey/com/sun/jersey/api/client/filter/ReportingInputStream.class
new file mode 100644
index 00000000..89deca30
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/ReportingInputStream.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/client/filter/ReportingOutputStream.class b/com.sun.jersey/com/sun/jersey/api/client/filter/ReportingOutputStream.class
new file mode 100644
index 00000000..64ee817a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/client/filter/ReportingOutputStream.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/representation/Form.class b/com.sun.jersey/com/sun/jersey/api/representation/Form.class
new file mode 100644
index 00000000..f99d09cb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/representation/Form.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriBuilderImpl.class b/com.sun.jersey/com/sun/jersey/api/uri/UriBuilderImpl.class
new file mode 100644
index 00000000..c867dded
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriBuilderImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$1.class b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$1.class
new file mode 100644
index 00000000..f35618b7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$PathSegmentImpl.class b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$PathSegmentImpl.class
new file mode 100644
index 00000000..79ea23fe
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$PathSegmentImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$Type.class b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$Type.class
new file mode 100644
index 00000000..c63c7355
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent$Type.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriComponent.class b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent.class
new file mode 100644
index 00000000..2565a916
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriComponent.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$1.class b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$1.class
new file mode 100644
index 00000000..ec3ae09b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$EmptyStringMatchResult.class b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$EmptyStringMatchResult.class
new file mode 100644
index 00000000..f1c18151
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$EmptyStringMatchResult.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$GroupIndexMatchResult.class b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$GroupIndexMatchResult.class
new file mode 100644
index 00000000..b06f5682
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern$GroupIndexMatchResult.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriPattern.class b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern.class
new file mode 100644
index 00000000..b3664214
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriPattern.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriTemplate$1.class b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplate$1.class
new file mode 100644
index 00000000..ab1eebea
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplate$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriTemplate.class b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplate.class
new file mode 100644
index 00000000..f2e324cb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplate.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$CharacterIterator.class b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$CharacterIterator.class
new file mode 100644
index 00000000..e9b0b99f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$CharacterIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$StringCharacterIterator.class b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$StringCharacterIterator.class
new file mode 100644
index 00000000..fce9ac9f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser$StringCharacterIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser.class b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser.class
new file mode 100644
index 00000000..3e9bb61d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/api/uri/UriTemplateParser.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/impl/ClientRequestImpl.class b/com.sun.jersey/com/sun/jersey/client/impl/ClientRequestImpl.class
new file mode 100644
index 00000000..905828d1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/impl/ClientRequestImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener$1.class b/com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener$1.class
new file mode 100644
index 00000000..c18ff51a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener.class b/com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener.class
new file mode 100644
index 00000000..ff92a936
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/impl/async/FutureClientResponseListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/osgi/Activator.class b/com.sun.jersey/com/sun/jersey/client/osgi/Activator.class
new file mode 100644
index 00000000..3764669f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/osgi/Activator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/proxy/ViewProxy.class b/com.sun.jersey/com/sun/jersey/client/proxy/ViewProxy.class
new file mode 100644
index 00000000..6419cc7c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/proxy/ViewProxy.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/proxy/ViewProxyProvider.class b/com.sun.jersey/com/sun/jersey/client/proxy/ViewProxyProvider.class
new file mode 100644
index 00000000..e3af8c9f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/proxy/ViewProxyProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/urlconnection/HTTPSProperties.class b/com.sun.jersey/com/sun/jersey/client/urlconnection/HTTPSProperties.class
new file mode 100644
index 00000000..ce4e433c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/urlconnection/HTTPSProperties.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/urlconnection/HttpURLConnectionFactory.class b/com.sun.jersey/com/sun/jersey/client/urlconnection/HttpURLConnectionFactory.class
new file mode 100644
index 00000000..6d4226a2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/urlconnection/HttpURLConnectionFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1$1.class b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1$1.class
new file mode 100644
index 00000000..3779c03b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1.class b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1.class
new file mode 100644
index 00000000..dc10188e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$URLConnectionResponse.class b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$URLConnectionResponse.class
new file mode 100644
index 00000000..98797a7d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler$URLConnectionResponse.class differ
diff --git a/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler.class b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler.class
new file mode 100644
index 00000000..585bd52b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/client/urlconnection/URLConnectionClientHandler.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/AcceptableLanguageTag.class b/com.sun.jersey/com/sun/jersey/core/header/AcceptableLanguageTag.class
new file mode 100644
index 00000000..e63b5ea0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/AcceptableLanguageTag.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/AcceptableMediaType.class b/com.sun.jersey/com/sun/jersey/core/header/AcceptableMediaType.class
new file mode 100644
index 00000000..1760ae06
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/AcceptableMediaType.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/AcceptableToken.class b/com.sun.jersey/com/sun/jersey/core/header/AcceptableToken.class
new file mode 100644
index 00000000..5015705f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/AcceptableToken.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/ContentDisposition$ContentDispositionBuilder.class b/com.sun.jersey/com/sun/jersey/core/header/ContentDisposition$ContentDispositionBuilder.class
new file mode 100644
index 00000000..32ab36fb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/ContentDisposition$ContentDispositionBuilder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/ContentDisposition.class b/com.sun.jersey/com/sun/jersey/core/header/ContentDisposition.class
new file mode 100644
index 00000000..d7a17f61
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/ContentDisposition.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition$FormDataContentDispositionBuilder.class b/com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition$FormDataContentDispositionBuilder.class
new file mode 100644
index 00000000..84aa33f3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition$FormDataContentDispositionBuilder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition.class b/com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition.class
new file mode 100644
index 00000000..7d6534f7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/FormDataContentDisposition.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat$1.class b/com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat$1.class
new file mode 100644
index 00000000..7a1a6af1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat.class b/com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat.class
new file mode 100644
index 00000000..3a155cee
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/HttpDateFormat.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/InBoundHeaders.class b/com.sun.jersey/com/sun/jersey/core/header/InBoundHeaders.class
new file mode 100644
index 00000000..842c3aca
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/InBoundHeaders.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/LanguageTag.class b/com.sun.jersey/com/sun/jersey/core/header/LanguageTag.class
new file mode 100644
index 00000000..23dd79cb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/LanguageTag.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/LinkHeader$LinkHeaderBuilder.class b/com.sun.jersey/com/sun/jersey/core/header/LinkHeader$LinkHeaderBuilder.class
new file mode 100644
index 00000000..d0b15244
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/LinkHeader$LinkHeaderBuilder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/LinkHeader.class b/com.sun.jersey/com/sun/jersey/core/header/LinkHeader.class
new file mode 100644
index 00000000..b2725fa9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/LinkHeader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/LinkHeaders.class b/com.sun.jersey/com/sun/jersey/core/header/LinkHeaders.class
new file mode 100644
index 00000000..2427d367
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/LinkHeaders.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/MatchingEntityTag.class b/com.sun.jersey/com/sun/jersey/core/header/MatchingEntityTag.class
new file mode 100644
index 00000000..99d673bc
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/MatchingEntityTag.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$1.class b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$1.class
new file mode 100644
index 00000000..b75bdca0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$2.class b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$2.class
new file mode 100644
index 00000000..03b32a96
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$3.class b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$3.class
new file mode 100644
index 00000000..7df61c5b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$3.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$4.class b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$4.class
new file mode 100644
index 00000000..356a4ab0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes$4.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/MediaTypes.class b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes.class
new file mode 100644
index 00000000..a32bb01a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/MediaTypes.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/OutBoundHeaders.class b/com.sun.jersey/com/sun/jersey/core/header/OutBoundHeaders.class
new file mode 100644
index 00000000..134af00f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/OutBoundHeaders.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/ParameterizedHeader.class b/com.sun.jersey/com/sun/jersey/core/header/ParameterizedHeader.class
new file mode 100644
index 00000000..2d4af172
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/ParameterizedHeader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/QualityFactor.class b/com.sun.jersey/com/sun/jersey/core/header/QualityFactor.class
new file mode 100644
index 00000000..924da501
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/QualityFactor.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/QualitySourceMediaType.class b/com.sun.jersey/com/sun/jersey/core/header/QualitySourceMediaType.class
new file mode 100644
index 00000000..e968ee69
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/QualitySourceMediaType.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/Token.class b/com.sun.jersey/com/sun/jersey/core/header/Token.class
new file mode 100644
index 00000000..2e6da4d8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/Token.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableCookie.class b/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableCookie.class
new file mode 100644
index 00000000..d0a2d683
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableCookie.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableNewCookie.class b/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableNewCookie.class
new file mode 100644
index 00000000..dba2f2de
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser$MutableNewCookie.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser.class b/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser.class
new file mode 100644
index 00000000..9d1333c9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/CookiesParser.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderListAdapter.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderListAdapter.class
new file mode 100644
index 00000000..163bea17
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderListAdapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$1.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$1.class
new file mode 100644
index 00000000..6013e680
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$2.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$2.class
new file mode 100644
index 00000000..8dce5fe1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$3.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$3.class
new file mode 100644
index 00000000..9bf3eef1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$3.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$4.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$4.class
new file mode 100644
index 00000000..a681932f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$4.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$5.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$5.class
new file mode 100644
index 00000000..3a74a48e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$5.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$6.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$6.class
new file mode 100644
index 00000000..4415d9f0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$6.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$7.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$7.class
new file mode 100644
index 00000000..dcb0adaa
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$7.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$8.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$8.class
new file mode 100644
index 00000000..0a97d4cf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$8.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$9.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$9.class
new file mode 100644
index 00000000..f72d7ae1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$9.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$Event.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$Event.class
new file mode 100644
index 00000000..97fc5478
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$Event.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$ListElementCreator.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$ListElementCreator.class
new file mode 100644
index 00000000..81a68f2d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader$ListElementCreator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader.class
new file mode 100644
index 00000000..3a36b517
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReaderImpl.class b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReaderImpl.class
new file mode 100644
index 00000000..06a8a5bf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/header/reader/HttpHeaderReaderImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/BaseFormProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/BaseFormProvider.class
new file mode 100644
index 00000000..6277eb22
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/BaseFormProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ByteArrayProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ByteArrayProvider.class
new file mode 100644
index 00000000..c10282b9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ByteArrayProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource$DSByteArrayOutputStream.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource$DSByteArrayOutputStream.class
new file mode 100644
index 00000000..5df876ed
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource$DSByteArrayOutputStream.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource.class
new file mode 100644
index 00000000..1f6180e5
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider$ByteArrayDataSource.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider.class
new file mode 100644
index 00000000..7d4d7a9e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DataSourceProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DocumentProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DocumentProvider.class
new file mode 100644
index 00000000..50a7f741
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/DocumentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/EntityHolderReader.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/EntityHolderReader.class
new file mode 100644
index 00000000..c6820000
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/EntityHolderReader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FileProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FileProvider.class
new file mode 100644
index 00000000..0bb510d6
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FileProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormMultivaluedMapProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormMultivaluedMapProvider.class
new file mode 100644
index 00000000..e2662263
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormMultivaluedMapProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormProvider.class
new file mode 100644
index 00000000..7067fbc8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/FormProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector$Replacer.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector$Replacer.class
new file mode 100644
index 00000000..cdb72bbc
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector$Replacer.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector.class
new file mode 100644
index 00000000..6ea2ddb6
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/Inflector.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/InputStreamProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/InputStreamProvider.class
new file mode 100644
index 00000000..05150e90
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/InputStreamProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/MimeMultipartProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/MimeMultipartProvider.class
new file mode 100644
index 00000000..9d6e40fc
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/MimeMultipartProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ReaderProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ReaderProvider.class
new file mode 100644
index 00000000..1aaf49e6
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/ReaderProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/RenderedImageProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/RenderedImageProvider.class
new file mode 100644
index 00000000..a0bbcee6
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/RenderedImageProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$DOMSourceReader.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$DOMSourceReader.class
new file mode 100644
index 00000000..15d31e29
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$DOMSourceReader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SAXSourceReader.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SAXSourceReader.class
new file mode 100644
index 00000000..4bc63e70
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SAXSourceReader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SourceWriter.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SourceWriter.class
new file mode 100644
index 00000000..6a413f8c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$SourceWriter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$StreamSourceReader.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$StreamSourceReader.class
new file mode 100644
index 00000000..7d0251a5
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider$StreamSourceReader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider.class
new file mode 100644
index 00000000..86490777
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/SourceProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StreamingOutputProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StreamingOutputProvider.class
new file mode 100644
index 00000000..78cc1aff
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StreamingOutputProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StringProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StringProvider.class
new file mode 100644
index 00000000..28967686
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/StringProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$App.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$App.class
new file mode 100644
index 00000000..a11bd832
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$App.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$General.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$General.class
new file mode 100644
index 00000000..8cd64da9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$General.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$Text.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$Text.class
new file mode 100644
index 00000000..fbd60f63
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider$Text.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider.class
new file mode 100644
index 00000000..9be4105d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLJAXBElementProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$App.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$App.class
new file mode 100644
index 00000000..d5663d31
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$App.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$General.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$General.class
new file mode 100644
index 00000000..62801f56
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$General.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$Text.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$Text.class
new file mode 100644
index 00000000..6a1649d7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider$Text.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider.class
new file mode 100644
index 00000000..617cb85c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLListElementProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$App.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$App.class
new file mode 100644
index 00000000..45660f7e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$App.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$General.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$General.class
new file mode 100644
index 00000000..266d2cb0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$General.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$Text.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$Text.class
new file mode 100644
index 00000000..5f11bb01
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider$Text.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider.class
new file mode 100644
index 00000000..6d7f4bad
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootElementProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$App.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$App.class
new file mode 100644
index 00000000..7afc31d8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$App.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$General.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$General.class
new file mode 100644
index 00000000..e637c7e2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$General.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$Text.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$Text.class
new file mode 100644
index 00000000..ca55f8be
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider$Text.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider.class
new file mode 100644
index 00000000..787db96c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/entity/XMLRootObjectProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/CacheControlProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/CacheControlProvider.class
new file mode 100644
index 00000000..3c43a2bd
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/CacheControlProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/CookieProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/CookieProvider.class
new file mode 100644
index 00000000..5dc0628c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/CookieProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/DateProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/DateProvider.class
new file mode 100644
index 00000000..fa160432
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/DateProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/EntityTagProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/EntityTagProvider.class
new file mode 100644
index 00000000..55954a54
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/EntityTagProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/LinkHeaderProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/LinkHeaderProvider.class
new file mode 100644
index 00000000..3fd4b9e8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/LinkHeaderProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/LocaleProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/LocaleProvider.class
new file mode 100644
index 00000000..504fb660
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/LocaleProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/MediaTypeProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/MediaTypeProvider.class
new file mode 100644
index 00000000..fd202a92
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/MediaTypeProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/NewCookieProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/NewCookieProvider.class
new file mode 100644
index 00000000..f7869733
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/NewCookieProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/StringProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/StringProvider.class
new file mode 100644
index 00000000..375396b3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/StringProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/URIProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/URIProvider.class
new file mode 100644
index 00000000..b01a8b02
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/URIProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/header/WriterUtil.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/WriterUtil.class
new file mode 100644
index 00000000..0bec6485
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/header/WriterUtil.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/DocumentBuilderFactoryProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/DocumentBuilderFactoryProvider.class
new file mode 100644
index 00000000..6555d983
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/DocumentBuilderFactoryProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider$1.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider$1.class
new file mode 100644
index 00000000..113997ee
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider.class
new file mode 100644
index 00000000..f7ec7374
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/LazySingletonContextProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/SAXParserContextProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/SAXParserContextProvider.class
new file mode 100644
index 00000000..6eece648
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/SAXParserContextProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$1.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$1.class
new file mode 100644
index 00000000..187f61ad
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$2.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$2.class
new file mode 100644
index 00000000..056a455e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider.class
new file mode 100644
index 00000000..168f6b70
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/ThreadLocalSingletonContextProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/TransformerFactoryProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/TransformerFactoryProvider.class
new file mode 100644
index 00000000..f217f744
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/TransformerFactoryProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/XMLStreamReaderContextProvider.class b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/XMLStreamReaderContextProvider.class
new file mode 100644
index 00000000..18da992c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/impl/provider/xml/XMLStreamReaderContextProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/Activator$1.class b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$1.class
new file mode 100644
index 00000000..803157be
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/Activator$2.class b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$2.class
new file mode 100644
index 00000000..5635c91e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/Activator$BundleFactoryLoader.class b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$BundleFactoryLoader.class
new file mode 100644
index 00000000..034120b3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$BundleFactoryLoader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$1.class b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$1.class
new file mode 100644
index 00000000..a61b1d31
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$2.class b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$2.class
new file mode 100644
index 00000000..a8076090
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder.class b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder.class
new file mode 100644
index 00000000..4b46a119
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/Activator$OsgiServiceFinder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/Activator.class b/com.sun.jersey/com/sun/jersey/core/osgi/Activator.class
new file mode 100644
index 00000000..afb612d4
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/Activator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/osgi/OsgiLocator.class b/com.sun.jersey/com/sun/jersey/core/osgi/OsgiLocator.class
new file mode 100644
index 00000000..47d59840
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/osgi/OsgiLocator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/provider/AbstractMessageReaderWriterProvider.class b/com.sun.jersey/com/sun/jersey/core/provider/AbstractMessageReaderWriterProvider.class
new file mode 100644
index 00000000..e2aa7a34
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/provider/AbstractMessageReaderWriterProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/provider/CompletableReader.class b/com.sun.jersey/com/sun/jersey/core/provider/CompletableReader.class
new file mode 100644
index 00000000..7f5bc2a1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/provider/CompletableReader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/provider/EntityHolder.class b/com.sun.jersey/com/sun/jersey/core/provider/EntityHolder.class
new file mode 100644
index 00000000..9821ce55
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/provider/EntityHolder.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBElementProvider.class b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBElementProvider.class
new file mode 100644
index 00000000..11f19d4c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBElementProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBProvider.class b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBProvider.class
new file mode 100644
index 00000000..b4025147
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractJAXBProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractListElementProvider.class b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractListElementProvider.class
new file mode 100644
index 00000000..4bd4c2b7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractListElementProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractRootElementProvider.class b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractRootElementProvider.class
new file mode 100644
index 00000000..f6c36a93
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/provider/jaxb/AbstractRootElementProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/AnnotatedMethod.class b/com.sun.jersey/com/sun/jersey/core/reflection/AnnotatedMethod.class
new file mode 100644
index 00000000..813d0638
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/AnnotatedMethod.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$1.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$1.class
new file mode 100644
index 00000000..0d6a6064
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$2.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$2.class
new file mode 100644
index 00000000..142d0016
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$3.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$3.class
new file mode 100644
index 00000000..74bc6456
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$3.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$4.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$4.class
new file mode 100644
index 00000000..1ff70b87
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$4.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$5.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$5.class
new file mode 100644
index 00000000..7fd1c412
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$5.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$6.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$6.class
new file mode 100644
index 00000000..90dae632
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$6.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$7.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$7.class
new file mode 100644
index 00000000..308e27bb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$7.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$8.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$8.class
new file mode 100644
index 00000000..31dcf3ea
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$8.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$Filter.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$Filter.class
new file mode 100644
index 00000000..037d03e8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList$Filter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/MethodList.class b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList.class
new file mode 100644
index 00000000..5d190a1e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/MethodList.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$1.class b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$1.class
new file mode 100644
index 00000000..0ceea9e8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$2.class b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$2.class
new file mode 100644
index 00000000..d6908782
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$ClassTypePair.class b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$ClassTypePair.class
new file mode 100644
index 00000000..147302e3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$ClassTypePair.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$DeclaringClassInterfacePair.class b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$DeclaringClassInterfacePair.class
new file mode 100644
index 00000000..98fd042b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$DeclaringClassInterfacePair.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$TypeClassPair.class b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$TypeClassPair.class
new file mode 100644
index 00000000..22359c01
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper$TypeClassPair.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper.class b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper.class
new file mode 100644
index 00000000..3fb646a6
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/reflection/ReflectionHelper.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/AnnotatedContext.class b/com.sun.jersey/com/sun/jersey/core/spi/component/AnnotatedContext.class
new file mode 100644
index 00000000..b6fb48f8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/AnnotatedContext.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$1.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$1.class
new file mode 100644
index 00000000..a8533c0e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorComparator.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorComparator.class
new file mode 100644
index 00000000..4928edb9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorComparator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorInjectablePair.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorInjectablePair.class
new file mode 100644
index 00000000..950e0843
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor$ConstructorInjectablePair.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor.class
new file mode 100644
index 00000000..5ed633f0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentConstructor.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentContext.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentContext.class
new file mode 100644
index 00000000..217c933d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentContext.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentDestructor.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentDestructor.class
new file mode 100644
index 00000000..3f39df39
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentDestructor.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector$1.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector$1.class
new file mode 100644
index 00000000..2435af35
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector.class
new file mode 100644
index 00000000..421094e8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentInjector.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProvider.class
new file mode 100644
index 00000000..0d8c5dd3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProviderFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProviderFactory.class
new file mode 100644
index 00000000..326514a0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentProviderFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentScope.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentScope.class
new file mode 100644
index 00000000..b4239c7d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ComponentScope.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$Destroyable.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$Destroyable.class
new file mode 100644
index 00000000..38f43710
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$Destroyable.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$SingletonComponentProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$SingletonComponentProvider.class
new file mode 100644
index 00000000..8cab7b7f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory$SingletonComponentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory.class
new file mode 100644
index 00000000..01dae0ec
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderClass.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderClass.class
new file mode 100644
index 00000000..b68722e9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderClass.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderListener.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderListener.class
new file mode 100644
index 00000000..ba4c39a8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices$ProviderListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices.class
new file mode 100644
index 00000000..91d315d9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ProviderServices.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessor.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessor.class
new file mode 100644
index 00000000..72caff57
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessor.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactory.class
new file mode 100644
index 00000000..d4877440
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactoryInitializer.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactoryInitializer.class
new file mode 100644
index 00000000..cec2a334
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProcessorFactoryInitializer.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProvider.class
new file mode 100644
index 00000000..e75f214b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProviderFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProviderFactory.class
new file mode 100644
index 00000000..bf27b4a3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCComponentProviderFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCDestroyable.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCDestroyable.class
new file mode 100644
index 00000000..2f67924f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCDestroyable.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCFullyManagedComponentProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCFullyManagedComponentProvider.class
new file mode 100644
index 00000000..b2831b34
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCFullyManagedComponentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCInstantiatedComponentProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCInstantiatedComponentProvider.class
new file mode 100644
index 00000000..ca566343
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCInstantiatedComponentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCManagedComponentProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCManagedComponentProvider.class
new file mode 100644
index 00000000..950a7e0e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCManagedComponentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$FullyManagedSingleton.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$FullyManagedSingleton.class
new file mode 100644
index 00000000..ffc961c2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$FullyManagedSingleton.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$InstantiatedSingleton.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$InstantiatedSingleton.class
new file mode 100644
index 00000000..b2912b31
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$InstantiatedSingleton.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ManagedSingleton.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ManagedSingleton.class
new file mode 100644
index 00000000..b6b0701a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ManagedSingleton.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ProxiedSingletonWrapper.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ProxiedSingletonWrapper.class
new file mode 100644
index 00000000..99acac56
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory$ProxiedSingletonWrapper.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory.class
new file mode 100644
index 00000000..f0d83a93
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProviderFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProxiedComponentProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProxiedComponentProvider.class
new file mode 100644
index 00000000..314f335a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/component/ioc/IoCProxiedComponentProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate.class
new file mode 100644
index 00000000..7dc36dff
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$1.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$1.class
new file mode 100644
index 00000000..b350eff0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$2.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$2.class
new file mode 100644
index 00000000..e1d446cf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1.class
new file mode 100644
index 00000000..51d76996
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$ContextResolverAdapter.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$ContextResolverAdapter.class
new file mode 100644
index 00000000..1fe18ee3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$ContextResolverAdapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$NullContextResolverAdapter.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$NullContextResolverAdapter.class
new file mode 100644
index 00000000..0b7075cd
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory$NullContextResolverAdapter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory.class
new file mode 100644
index 00000000..c97a2753
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ContextResolverFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$1.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$1.class
new file mode 100644
index 00000000..0e6a5ea4
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$2.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$2.class
new file mode 100644
index 00000000..53d444b8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$MetaInjectableProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$MetaInjectableProvider.class
new file mode 100644
index 00000000..731597e5
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory$MetaInjectableProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory.class
new file mode 100644
index 00000000..d0874008
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/InjectableProviderFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$1.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$1.class
new file mode 100644
index 00000000..ff633f07
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$2.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$2.class
new file mode 100644
index 00000000..9c39d7fc
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$2.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$DistanceComparator.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$DistanceComparator.class
new file mode 100644
index 00000000..21e5e0b3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$DistanceComparator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$MessageBodyWriterPair.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$MessageBodyWriterPair.class
new file mode 100644
index 00000000..a3ba66be
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory$MessageBodyWriterPair.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory.class
new file mode 100644
index 00000000..a0d64941
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/MessageBodyFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderHeaders.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderHeaders.class
new file mode 100644
index 00000000..62a5eba3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderHeaders.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderImpl.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderImpl.class
new file mode 100644
index 00000000..bfce57b0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseBuilderImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl$1.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl$1.class
new file mode 100644
index 00000000..3fd7259f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl.class
new file mode 100644
index 00000000..b708d674
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/ResponseImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/factory/VariantListBuilderImpl.class b/com.sun.jersey/com/sun/jersey/core/spi/factory/VariantListBuilderImpl.class
new file mode 100644
index 00000000..eb033e6a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/factory/VariantListBuilderImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner$1.class
new file mode 100644
index 00000000..5a30c83e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner.class
new file mode 100644
index 00000000..98e79dd1
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/FilesScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner$1.class
new file mode 100644
index 00000000..4d22178b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner.class
new file mode 100644
index 00000000..12b9a529
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/JarFileScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider$1.class
new file mode 100644
index 00000000..27ea2288
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider.class
new file mode 100644
index 00000000..faefdc13
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner$ResourcesProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner.class
new file mode 100644
index 00000000..4ef58597
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/PackageNamesScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/Scanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/Scanner.class
new file mode 100644
index 00000000..f79998ce
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/Scanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerException.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerException.class
new file mode 100644
index 00000000..4b3f8fdf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerException.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerListener.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerListener.class
new file mode 100644
index 00000000..f0468de3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/ScannerListener.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner$1.class
new file mode 100644
index 00000000..b4eb37f8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner.class
new file mode 100644
index 00000000..a0f39d8a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/BundleSchemeScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner$1.class
new file mode 100644
index 00000000..3ca1f13e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner.class
new file mode 100644
index 00000000..29b07645
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/FileSchemeScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner$1.class
new file mode 100644
index 00000000..01c78099
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner.class
new file mode 100644
index 00000000..8a9068a8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/JarZipSchemeScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/UriSchemeScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/UriSchemeScanner.class
new file mode 100644
index 00000000..d22a9d89
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/UriSchemeScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1$1.class
new file mode 100644
index 00000000..82395e9a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1.class
new file mode 100644
index 00000000..67a8d7b5
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner.class b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner.class
new file mode 100644
index 00000000..6cb204db
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/spi/scanning/uri/VfsSchemeScanner.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/Base64.class b/com.sun.jersey/com/sun/jersey/core/util/Base64.class
new file mode 100644
index 00000000..33054bbb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/Base64.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/Closing$Closure.class b/com.sun.jersey/com/sun/jersey/core/util/Closing$Closure.class
new file mode 100644
index 00000000..e9e41f9c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/Closing$Closure.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/Closing.class b/com.sun.jersey/com/sun/jersey/core/util/Closing.class
new file mode 100644
index 00000000..2e629a3c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/Closing.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/FeaturesAndProperties.class b/com.sun.jersey/com/sun/jersey/core/util/FeaturesAndProperties.class
new file mode 100644
index 00000000..0a902d2a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/FeaturesAndProperties.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparator.class
new file mode 100644
index 00000000..0899be21
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$1.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$1.class
new file mode 100644
index 00000000..3ba7e94d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$Entry.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$Entry.class
new file mode 100644
index 00000000..93631d1c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$Entry.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntryIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntryIterator.class
new file mode 100644
index 00000000..8496291c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntryIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntrySet.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntrySet.class
new file mode 100644
index 00000000..e86b5961
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$EntrySet.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$HashIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$HashIterator.class
new file mode 100644
index 00000000..a159f74e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$HashIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$KeyIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$KeyIterator.class
new file mode 100644
index 00000000..ad9e114c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$KeyIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$ValueIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$ValueIterator.class
new file mode 100644
index 00000000..98458a43
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap$ValueIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap.class
new file mode 100644
index 00000000..972babaa
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorHashMap.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$1.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$1.class
new file mode 100644
index 00000000..692b1bbc
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$Entry.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$Entry.class
new file mode 100644
index 00000000..38218f3a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$Entry.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$EntryIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$EntryIterator.class
new file mode 100644
index 00000000..087c1483
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$EntryIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$KeyIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$KeyIterator.class
new file mode 100644
index 00000000..a331ec21
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$KeyIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$LinkedHashIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$LinkedHashIterator.class
new file mode 100644
index 00000000..39b4c96d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$LinkedHashIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$ValueIterator.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$ValueIterator.class
new file mode 100644
index 00000000..cf663b6a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap$ValueIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap.class b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap.class
new file mode 100644
index 00000000..25a0a5a5
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/KeyComparatorLinkedHashMap.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/LazyVal.class b/com.sun.jersey/com/sun/jersey/core/util/LazyVal.class
new file mode 100644
index 00000000..97e3bdb4
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/LazyVal.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/MultivaluedMapImpl.class b/com.sun.jersey/com/sun/jersey/core/util/MultivaluedMapImpl.class
new file mode 100644
index 00000000..33c7ffd5
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/MultivaluedMapImpl.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/ReaderWriter.class b/com.sun.jersey/com/sun/jersey/core/util/ReaderWriter.class
new file mode 100644
index 00000000..0e452fb4
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/ReaderWriter.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/StringIgnoreCaseKeyComparator.class b/com.sun.jersey/com/sun/jersey/core/util/StringIgnoreCaseKeyComparator.class
new file mode 100644
index 00000000..5d4ffd38
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/StringIgnoreCaseKeyComparator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/StringKeyIgnoreCaseMultivaluedMap.class b/com.sun.jersey/com/sun/jersey/core/util/StringKeyIgnoreCaseMultivaluedMap.class
new file mode 100644
index 00000000..e37db9c2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/StringKeyIgnoreCaseMultivaluedMap.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/StringKeyObjectValueIgnoreCaseMultivaluedMap.class b/com.sun.jersey/com/sun/jersey/core/util/StringKeyObjectValueIgnoreCaseMultivaluedMap.class
new file mode 100644
index 00000000..e48e8c8c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/StringKeyObjectValueIgnoreCaseMultivaluedMap.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/StringKeyStringValueIgnoreCaseMultivaluedMap.class b/com.sun.jersey/com/sun/jersey/core/util/StringKeyStringValueIgnoreCaseMultivaluedMap.class
new file mode 100644
index 00000000..14fb6dff
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/StringKeyStringValueIgnoreCaseMultivaluedMap.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/ThrowHelper.class b/com.sun.jersey/com/sun/jersey/core/util/ThrowHelper.class
new file mode 100644
index 00000000..f1c4bca8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/ThrowHelper.class differ
diff --git a/com.sun.jersey/com/sun/jersey/core/util/UnmodifiableMultivaluedMap.class b/com.sun.jersey/com/sun/jersey/core/util/UnmodifiableMultivaluedMap.class
new file mode 100644
index 00000000..cdf7ec05
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/core/util/UnmodifiableMultivaluedMap.class differ
diff --git a/com.sun.jersey/com/sun/jersey/impl/ApiMessages.class b/com.sun.jersey/com/sun/jersey/impl/ApiMessages.class
new file mode 100644
index 00000000..0ac91f10
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/impl/ApiMessages.class differ
diff --git a/com.sun.jersey/com/sun/jersey/impl/ImplMessages.class b/com.sun.jersey/com/sun/jersey/impl/ImplMessages.class
new file mode 100644
index 00000000..929247d2
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/impl/ImplMessages.class differ
diff --git a/com.sun.jersey/com/sun/jersey/impl/SpiMessages.class b/com.sun.jersey/com/sun/jersey/impl/SpiMessages.class
new file mode 100644
index 00000000..54675b5e
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/impl/SpiMessages.class differ
diff --git a/com.sun.jersey/com/sun/jersey/impl/api.properties b/com.sun.jersey/com/sun/jersey/impl/api.properties
new file mode 100644
index 00000000..f867e167
--- /dev/null
+++ b/com.sun.jersey/com/sun/jersey/impl/api.properties
@@ -0,0 +1,40 @@
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+#
+# Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
+#
+# The contents of this file are subject to the terms of either the GNU
+# General Public License Version 2 only ("GPL") or the Common Development
+# and Distribution License("CDDL") (collectively, the "License"). You
+# may not use this file except in compliance with the License. You can
+# obtain a copy of the License at
+# https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
+# or packager/legal/LICENSE.txt. See the License for the specific
+# language governing permissions and limitations under the License.
+#
+# When distributing the software, include this License Header Notice in each
+# file and include the License file at packager/legal/LICENSE.txt.
+#
+# GPL Classpath Exception:
+# Oracle designates this particular file as subject to the "Classpath"
+# exception as provided by Oracle in the GPL Version 2 section of the License
+# file that accompanied this code.
+#
+# Modifications:
+# If applicable, add the following below the License Header, with the fields
+# enclosed by brackets [] replaced by your own identifying information:
+# "Portions Copyright [year] [name of copyright owner]"
+#
+# Contributor(s):
+# If you wish your version of this file to be governed by only the CDDL or
+# only the GPL Version 2, indicate your decision by adding "[Contributor]
+# elects to include this software in this distribution under the [CDDL or GPL
+# Version 2] license." If you don't indicate a single choice of license, a
+# recipient has the option to distribute your version of this file under
+# either the CDDL, the GPL Version 2 or to extend the choice of license to
+# its licensees as provided above. However, if you add GPL Version 2 code
+# and therefore, elected the GPL Version 2 license, then the option applies
+# only if the new code is made subject to such option by the copyright
+# holder.
+#
+
diff --git a/com.sun.jersey/com/sun/jersey/impl/impl.properties b/com.sun.jersey/com/sun/jersey/impl/impl.properties
new file mode 100644
index 00000000..2ecf85a8
--- /dev/null
+++ b/com.sun.jersey/com/sun/jersey/impl/impl.properties
@@ -0,0 +1,63 @@
+error.marshalling.jaxb=Error marshalling JAXB object of type "{0}".
+error.unmarshalling.jaxb=Error unmarshalling JAXB object of type "{0}".
+unable.to.write.mimemultipart=Unable to write MimeMultipart content.
+resource.method=Resource, {0}, with method, {1}
+resource.not.acceptable={0}, is returning a MIME type, "{1}", that is not acceptable.
+resource.mimetype.not.in.produceMime={0}, is returning a MIME type, "{1}", that is acceptable but not a member of @ProduceMime, {2}.
+nested.error=NESTED ERROR: {0}.
+failed.to.create.web.resource=Failed to create Web resource: {0}.
+default.could.not.process.method=Default value, {0} could not be processed by method {1}.
+default.could.not.process.constructor=Default value, {0} could not be processed by constructor {1}.
+exception.invoking.resource.method=Exception invoking Web resource method.
+illegal.initial.capacity=Illegal initial capacity: {0}.
+illegal.load.factor=Illegal load factor: {0}.
+error.processing.method=Error processing resource method, {0}, for ResourceMethodDispatchProvider, {1}.
+generic.type.not.supported=Generic type, {0}, not support for parameter {1}.
+not.valid.httpmethod=Method, {0}, annotated with {1} of resource, {2}, is not recognized as valid resource method.
+not.valid.dynamicresolvingmethod=Method, {0}, annotated with URI template {1} of resource, {2}, is not recognized as valid Java method annotated with @Path.
+quality.more.than.three=Quality value "{0}" has more than 3 digits after the decimal point.
+quality.greater.than.one=Quality value "{0}" is greater than 1.
+object.not.a.webResource=Object, "{0}": is not a Web resource since it is not annotated with @Path.
+bad.uritemplate=Web resource, "{0}": URI template "{1}" of @Path could not be processed on Web resource.
+bad.class.consumemime=Web resource, "{0}": MIME types "{1}" of @ConsumeMime could not be processed on Web resource.
+bad.class.producemime=Web resource, "{0}": MIME types "{1}" of @ProcudeMime could not be processed on Web resource.
+bad.method.httpmethod=Web resource, "{0}": HTTP method "{1}" of @HttpMethod could not be processed on method "{2}" of Web Resource.
+bad.consumemime=Web resource, "{0}": HTTP method "{1}" of @HttpMethod could not be processed on method "{2}" of Web Resource.
+bad.method.consumemime=Web resource, "{0}": MIME types "{1}" of @ConsumeMime could not be processed on method "{2} of Web Resource.
+bad.method.producemime=Web resource, "{0}": MIME types "{1}" of @ProduceMime could not be processed on method "{2} of Web Resource.
+illegal.config.syntax=Illegal configuration-file syntax.
+illegal.provider.class.name=Illegal provider-class name: {0}.
+provider.not.found=Provider {0} not found.
+provider.could.not.be.created=Provider {0} could not be instantiated: {1}
+no.webresourceclass.in.webxml=No "webresourceclass" specified in web.xml.
+byte.array.cannot.be.null=data parameter, of type byte[], cannot be null.
+bad.content.type=The HTTP header field "Content-Type" with value "{0}" could not be parsed.
+bad.mime.type=The MIME type of the representation with value "{0}" could not be parsed.
+bad.accept.field=The HTTP header field "Accept" with value "{0}" could not be parsed.
+error.no.sub.res.method.locator.found=A resource class, {0}, does not have any resource method, sub-resource method, or sub-resource locator.
+error.res.uri.path.required=A root resource class, {0}, MUST have a URI path.
+error.res.uri.path.invalid=A root resource class, {0}, has an invalid URI path: {1}.
+error.subres.loc.uri.path.invalid=A sub-resource locator, {0}, has an invalid URI path: {1}
+error.subres.loc.has.entity.param=A sub-resource locator, {0}, can not have an entity parameter. Try to move the parameter to the corresponding resource method.
+error.subres.method.uri.path.invalid=A sub-resource method, {0}, has an invalid URI path: {1}
+error.get.returns.void=A HTTP GET method, {0}, MUST return a non-void type.
+error.get.consumes.entity=A HTTP GET method, {0}, should not consume any entity.
+error.subres.loc.returns.void=A sub-resource locator, {0}, MUST return a non-void type.
+new.ar.created.by.introspection.modeler=A new abstract resource created by IntrospectionModeler: {0}
+ambiguous.parameter=Parameter {1} of {0} MUST be only one of a path, query, matrix or header parameter.
+non.pub.res.method=A resource method, {0}, MUST be public scoped otherwise the method is ignored
+non.pub.sub.res.method=A sub-resource method, {0}, MUST be public scoped otherwise the method is ignored
+non.pub.sub.res.loc=A sub-resource locator, {0}, MUST be public scoped otherwise the method is ignored
+fatal.issues.found.at.res.class=Fatal issues found at class {0}. See logs for more details.
+web.app.already.initiated=Web application is already initiated.
+no.root.res.in.res.cfg=The ResourceConfig instance does not contain any root resource classes.
+root.res.no.public.ctor=A root resource, {0}, MUST have a public constructor
+ambiguous.ctors=A root resource, {0}, has ambiguous constructors to use for initialization
+ambiguous.srls=A resource, {0}, has ambiguous sub-resource locator for URI template {1}, which matches with template {2}
+ambiguous.rms.in=A resource, {0}, has ambiguous resource method for HTTP method {1} and input mime-type: {2}. The problematic mime-type sets (as defined by @Consumes annotation at Java methods {3} and {4}) are {5} and {6}. This could cause an error for conflicting output types!
+ambiguous.rms.out=A resource, {0}, has ambiguous resource method for HTTP method {1} and output mime-type: {2}. The problematic mime-type sets (as defined by @Produces annotation at Java methods {3} and {4}) are {5} and {6}
+ambiguous.srms.in=A resource, {0}, has ambiguous sub-resource method for HTTP method {1}, URI path template {2}, and input mime-type: {3}. The problematic mime-type sets (as defined by @Consumes annotation at Java methods {4} and {5}) are {6} and {7}. This could cause an error for conflicting output types!
+ambiguous.srms.out=A resource, {0}, has ambiguous sub-resource method for HTTP method {1}, URI path template {2}, and output mime-type: {3}. The problematic mime-type sets (as defined by @Produces annotation at Java methods {4} and {5}) are {6} and {7}
+multiple.http.method.designators=A (sub-)resource method, {0}, should have only one HTTP method designator. It currently has the following designators defined: {1}
+ambiguous.rr.path=A root resource, {0}, has a non-unique URI template {1}
+sub.res.method.treated.as.res.method=A sub-resource method, {0}, with URI template, "{1}", is treated as a resource method
\ No newline at end of file
diff --git a/com.sun.jersey/com/sun/jersey/impl/spi.properties b/com.sun.jersey/com/sun/jersey/impl/spi.properties
new file mode 100644
index 00000000..f604f53b
--- /dev/null
+++ b/com.sun.jersey/com/sun/jersey/impl/spi.properties
@@ -0,0 +1,9 @@
+uritemplate.cannot.be.null=URI template cannot be null.
+template.name.to.value.not.null=Template name to value map cannot be null.
+illegal.config.syntax=Illegal configuration-file syntax.
+illegal.provider.class.name=Illegal provider-class name: {0}.
+provider.could.not.be.created=The class {0} implementing provider {1} could not be instantiated: {2}
+provider.class.could.not.be.loaded=The class {0} implementing provider {1} could not be loaded: {2}
+provider.not.found=The class {0} implementing the provider {1} is not found. The provider implementation is ignored.
+dependent.class.of.provider.not.found=A dependent class, {0}, of the class {1} implementing the provider {2} is not found. The provider implementation is ignored.
+dependent.class.of.provider.format.error={0}. A dependent class of the class {1} implementing the provider {2} is malformed. The provider implementation is ignored. Check if the malformed class is part of a stubbed jar that used for compiling only.
\ No newline at end of file
diff --git a/com.sun.jersey/com/sun/jersey/localization/Localizable.class b/com.sun.jersey/com/sun/jersey/localization/Localizable.class
new file mode 100644
index 00000000..bc20d1a0
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/localization/Localizable.class differ
diff --git a/com.sun.jersey/com/sun/jersey/localization/LocalizableMessage.class b/com.sun.jersey/com/sun/jersey/localization/LocalizableMessage.class
new file mode 100644
index 00000000..8b3b5e94
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/localization/LocalizableMessage.class differ
diff --git a/com.sun.jersey/com/sun/jersey/localization/LocalizableMessageFactory.class b/com.sun.jersey/com/sun/jersey/localization/LocalizableMessageFactory.class
new file mode 100644
index 00000000..68c49f2b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/localization/LocalizableMessageFactory.class differ
diff --git a/com.sun.jersey/com/sun/jersey/localization/Localizer.class b/com.sun.jersey/com/sun/jersey/localization/Localizer.class
new file mode 100644
index 00000000..5354c871
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/localization/Localizer.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/CloseableService.class b/com.sun.jersey/com/sun/jersey/spi/CloseableService.class
new file mode 100644
index 00000000..760065e7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/CloseableService.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/HeaderDelegateProvider.class b/com.sun.jersey/com/sun/jersey/spi/HeaderDelegateProvider.class
new file mode 100644
index 00000000..bca6249b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/HeaderDelegateProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/MessageBodyWorkers.class b/com.sun.jersey/com/sun/jersey/spi/MessageBodyWorkers.class
new file mode 100644
index 00000000..40cabfdf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/MessageBodyWorkers.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/StringReader$ValidateDefaultValue.class b/com.sun.jersey/com/sun/jersey/spi/StringReader$ValidateDefaultValue.class
new file mode 100644
index 00000000..54226111
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/StringReader$ValidateDefaultValue.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/StringReader.class b/com.sun.jersey/com/sun/jersey/spi/StringReader.class
new file mode 100644
index 00000000..9e6ebc37
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/StringReader.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/StringReaderProvider.class b/com.sun.jersey/com/sun/jersey/spi/StringReaderProvider.class
new file mode 100644
index 00000000..d016ed3f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/StringReaderProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/StringReaderWorkers.class b/com.sun.jersey/com/sun/jersey/spi/StringReaderWorkers.class
new file mode 100644
index 00000000..204116d3
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/StringReaderWorkers.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/ClientSide.class b/com.sun.jersey/com/sun/jersey/spi/inject/ClientSide.class
new file mode 100644
index 00000000..4e3d7ff8
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/ClientSide.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedTo.class b/com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedTo.class
new file mode 100644
index 00000000..6743ad6b
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedTo.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedToType.class b/com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedToType.class
new file mode 100644
index 00000000..ddc453bf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/ConstrainedToType.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/Errors$1.class b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$1.class
new file mode 100644
index 00000000..4b8c38f7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/Errors$Closure.class b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$Closure.class
new file mode 100644
index 00000000..a423df1c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$Closure.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessage.class b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessage.class
new file mode 100644
index 00000000..e64473cf
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessage.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessagesException.class b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessagesException.class
new file mode 100644
index 00000000..2fda2bed
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/Errors$ErrorMessagesException.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/Errors.class b/com.sun.jersey/com/sun/jersey/spi/inject/Errors.class
new file mode 100644
index 00000000..9d30638a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/Errors.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/Inject.class b/com.sun.jersey/com/sun/jersey/spi/inject/Inject.class
new file mode 100644
index 00000000..6054dd79
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/Inject.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/Injectable.class b/com.sun.jersey/com/sun/jersey/spi/inject/Injectable.class
new file mode 100644
index 00000000..27daeecb
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/Injectable.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProvider.class b/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProvider.class
new file mode 100644
index 00000000..b3a60da9
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext$InjectableScopePair.class b/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext$InjectableScopePair.class
new file mode 100644
index 00000000..e7194e81
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext$InjectableScopePair.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext.class b/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext.class
new file mode 100644
index 00000000..bf490a8f
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/InjectableProviderContext.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/PerRequestTypeInjectableProvider.class b/com.sun.jersey/com/sun/jersey/spi/inject/PerRequestTypeInjectableProvider.class
new file mode 100644
index 00000000..b0f352a7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/PerRequestTypeInjectableProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/ServerSide.class b/com.sun.jersey/com/sun/jersey/spi/inject/ServerSide.class
new file mode 100644
index 00000000..7b31662d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/ServerSide.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/inject/SingletonTypeInjectableProvider.class b/com.sun.jersey/com/sun/jersey/spi/inject/SingletonTypeInjectableProvider.class
new file mode 100644
index 00000000..fbfcccc7
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/inject/SingletonTypeInjectableProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceConfigurationError.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceConfigurationError.class
new file mode 100644
index 00000000..b70dd662
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceConfigurationError.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$1.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$1.class
new file mode 100644
index 00000000..c2777c47
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$1.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$AbstractLazyIterator.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$AbstractLazyIterator.class
new file mode 100644
index 00000000..c8b50f3c
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$AbstractLazyIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$DefaultServiceIteratorProvider.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$DefaultServiceIteratorProvider.class
new file mode 100644
index 00000000..7a3f52df
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$DefaultServiceIteratorProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyClassIterator.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyClassIterator.class
new file mode 100644
index 00000000..e651416a
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyClassIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyObjectIterator.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyObjectIterator.class
new file mode 100644
index 00000000..a9f39a49
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$LazyObjectIterator.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$ServiceIteratorProvider.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$ServiceIteratorProvider.class
new file mode 100644
index 00000000..21505f39
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder$ServiceIteratorProvider.class differ
diff --git a/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder.class b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder.class
new file mode 100644
index 00000000..160af76d
Binary files /dev/null and b/com.sun.jersey/com/sun/jersey/spi/service/ServiceFinder.class differ
diff --git a/com.sun.jersey/com/sun/ws/rs/ext/RuntimeDelegateImpl.class b/com.sun.jersey/com/sun/ws/rs/ext/RuntimeDelegateImpl.class
new file mode 100644
index 00000000..692355dc
Binary files /dev/null and b/com.sun.jersey/com/sun/ws/rs/ext/RuntimeDelegateImpl.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ApplicationPath.class b/com.sun.jersey/javax/ws/rs/ApplicationPath.class
new file mode 100644
index 00000000..2b095906
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ApplicationPath.class differ
diff --git a/com.sun.jersey/javax/ws/rs/Consumes.class b/com.sun.jersey/javax/ws/rs/Consumes.class
new file mode 100644
index 00000000..63c5dbad
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/Consumes.class differ
diff --git a/com.sun.jersey/javax/ws/rs/CookieParam.class b/com.sun.jersey/javax/ws/rs/CookieParam.class
new file mode 100644
index 00000000..5647b85b
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/CookieParam.class differ
diff --git a/com.sun.jersey/javax/ws/rs/DELETE.class b/com.sun.jersey/javax/ws/rs/DELETE.class
new file mode 100644
index 00000000..33f730b9
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/DELETE.class differ
diff --git a/com.sun.jersey/javax/ws/rs/DefaultValue.class b/com.sun.jersey/javax/ws/rs/DefaultValue.class
new file mode 100644
index 00000000..49654b8e
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/DefaultValue.class differ
diff --git a/com.sun.jersey/javax/ws/rs/Encoded.class b/com.sun.jersey/javax/ws/rs/Encoded.class
new file mode 100644
index 00000000..1b6e4d85
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/Encoded.class differ
diff --git a/com.sun.jersey/javax/ws/rs/FormParam.class b/com.sun.jersey/javax/ws/rs/FormParam.class
new file mode 100644
index 00000000..7ad8d5e5
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/FormParam.class differ
diff --git a/com.sun.jersey/javax/ws/rs/GET.class b/com.sun.jersey/javax/ws/rs/GET.class
new file mode 100644
index 00000000..a4f19c56
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/GET.class differ
diff --git a/com.sun.jersey/javax/ws/rs/HEAD.class b/com.sun.jersey/javax/ws/rs/HEAD.class
new file mode 100644
index 00000000..eab3fd3b
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/HEAD.class differ
diff --git a/com.sun.jersey/javax/ws/rs/HeaderParam.class b/com.sun.jersey/javax/ws/rs/HeaderParam.class
new file mode 100644
index 00000000..29d08136
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/HeaderParam.class differ
diff --git a/com.sun.jersey/javax/ws/rs/HttpMethod.class b/com.sun.jersey/javax/ws/rs/HttpMethod.class
new file mode 100644
index 00000000..4c0bddf0
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/HttpMethod.class differ
diff --git a/com.sun.jersey/javax/ws/rs/MatrixParam.class b/com.sun.jersey/javax/ws/rs/MatrixParam.class
new file mode 100644
index 00000000..ceb060bc
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/MatrixParam.class differ
diff --git a/com.sun.jersey/javax/ws/rs/OPTIONS.class b/com.sun.jersey/javax/ws/rs/OPTIONS.class
new file mode 100644
index 00000000..d4a2098f
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/OPTIONS.class differ
diff --git a/com.sun.jersey/javax/ws/rs/POST.class b/com.sun.jersey/javax/ws/rs/POST.class
new file mode 100644
index 00000000..98a052d9
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/POST.class differ
diff --git a/com.sun.jersey/javax/ws/rs/PUT.class b/com.sun.jersey/javax/ws/rs/PUT.class
new file mode 100644
index 00000000..3960d50c
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/PUT.class differ
diff --git a/com.sun.jersey/javax/ws/rs/Path.class b/com.sun.jersey/javax/ws/rs/Path.class
new file mode 100644
index 00000000..f43a2dae
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/Path.class differ
diff --git a/com.sun.jersey/javax/ws/rs/PathParam.class b/com.sun.jersey/javax/ws/rs/PathParam.class
new file mode 100644
index 00000000..e908d296
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/PathParam.class differ
diff --git a/com.sun.jersey/javax/ws/rs/Produces.class b/com.sun.jersey/javax/ws/rs/Produces.class
new file mode 100644
index 00000000..373c1e10
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/Produces.class differ
diff --git a/com.sun.jersey/javax/ws/rs/QueryParam.class b/com.sun.jersey/javax/ws/rs/QueryParam.class
new file mode 100644
index 00000000..ae7576f6
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/QueryParam.class differ
diff --git a/com.sun.jersey/javax/ws/rs/WebApplicationException.class b/com.sun.jersey/javax/ws/rs/WebApplicationException.class
new file mode 100644
index 00000000..79999dc1
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/WebApplicationException.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Application.class b/com.sun.jersey/javax/ws/rs/core/Application.class
new file mode 100644
index 00000000..b004360b
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Application.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/CacheControl.class b/com.sun.jersey/javax/ws/rs/core/CacheControl.class
new file mode 100644
index 00000000..f761c8e4
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/CacheControl.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Context.class b/com.sun.jersey/javax/ws/rs/core/Context.class
new file mode 100644
index 00000000..f088d489
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Context.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Cookie.class b/com.sun.jersey/javax/ws/rs/core/Cookie.class
new file mode 100644
index 00000000..a95824d5
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Cookie.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/EntityTag.class b/com.sun.jersey/javax/ws/rs/core/EntityTag.class
new file mode 100644
index 00000000..9c186607
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/EntityTag.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/GenericEntity.class b/com.sun.jersey/javax/ws/rs/core/GenericEntity.class
new file mode 100644
index 00000000..392e9e56
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/GenericEntity.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/HttpHeaders.class b/com.sun.jersey/javax/ws/rs/core/HttpHeaders.class
new file mode 100644
index 00000000..1aa1fd90
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/HttpHeaders.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/MediaType$1.class b/com.sun.jersey/javax/ws/rs/core/MediaType$1.class
new file mode 100644
index 00000000..6a4f8465
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/MediaType$1.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/MediaType.class b/com.sun.jersey/javax/ws/rs/core/MediaType.class
new file mode 100644
index 00000000..3d177da7
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/MediaType.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/MultivaluedMap.class b/com.sun.jersey/javax/ws/rs/core/MultivaluedMap.class
new file mode 100644
index 00000000..9c327747
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/MultivaluedMap.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/NewCookie.class b/com.sun.jersey/javax/ws/rs/core/NewCookie.class
new file mode 100644
index 00000000..f1c23145
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/NewCookie.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/PathSegment.class b/com.sun.jersey/javax/ws/rs/core/PathSegment.class
new file mode 100644
index 00000000..3a9a747f
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/PathSegment.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Request.class b/com.sun.jersey/javax/ws/rs/core/Request.class
new file mode 100644
index 00000000..3128417e
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Request.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Response$ResponseBuilder.class b/com.sun.jersey/javax/ws/rs/core/Response$ResponseBuilder.class
new file mode 100644
index 00000000..f68fd9aa
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Response$ResponseBuilder.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Response$Status$Family.class b/com.sun.jersey/javax/ws/rs/core/Response$Status$Family.class
new file mode 100644
index 00000000..d8354c12
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Response$Status$Family.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Response$Status.class b/com.sun.jersey/javax/ws/rs/core/Response$Status.class
new file mode 100644
index 00000000..1e7d7159
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Response$Status.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Response$StatusType.class b/com.sun.jersey/javax/ws/rs/core/Response$StatusType.class
new file mode 100644
index 00000000..564338de
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Response$StatusType.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Response.class b/com.sun.jersey/javax/ws/rs/core/Response.class
new file mode 100644
index 00000000..8db94180
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Response.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/SecurityContext.class b/com.sun.jersey/javax/ws/rs/core/SecurityContext.class
new file mode 100644
index 00000000..b2433898
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/SecurityContext.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/StreamingOutput.class b/com.sun.jersey/javax/ws/rs/core/StreamingOutput.class
new file mode 100644
index 00000000..143416b1
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/StreamingOutput.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/UriBuilder.class b/com.sun.jersey/javax/ws/rs/core/UriBuilder.class
new file mode 100644
index 00000000..88c5d485
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/UriBuilder.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/UriBuilderException.class b/com.sun.jersey/javax/ws/rs/core/UriBuilderException.class
new file mode 100644
index 00000000..09dafc67
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/UriBuilderException.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/UriInfo.class b/com.sun.jersey/javax/ws/rs/core/UriInfo.class
new file mode 100644
index 00000000..d4251adb
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/UriInfo.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Variant$VariantListBuilder.class b/com.sun.jersey/javax/ws/rs/core/Variant$VariantListBuilder.class
new file mode 100644
index 00000000..ab6e35ab
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Variant$VariantListBuilder.class differ
diff --git a/com.sun.jersey/javax/ws/rs/core/Variant.class b/com.sun.jersey/javax/ws/rs/core/Variant.class
new file mode 100644
index 00000000..29058fa6
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/core/Variant.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/ContextResolver.class b/com.sun.jersey/javax/ws/rs/ext/ContextResolver.class
new file mode 100644
index 00000000..62facef5
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/ContextResolver.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/ExceptionMapper.class b/com.sun.jersey/javax/ws/rs/ext/ExceptionMapper.class
new file mode 100644
index 00000000..38620d01
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/ExceptionMapper.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/FactoryFinder$1.class b/com.sun.jersey/javax/ws/rs/ext/FactoryFinder$1.class
new file mode 100644
index 00000000..2452eca9
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/FactoryFinder$1.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/FactoryFinder.class b/com.sun.jersey/javax/ws/rs/ext/FactoryFinder.class
new file mode 100644
index 00000000..3cc6f3fa
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/FactoryFinder.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/MessageBodyReader.class b/com.sun.jersey/javax/ws/rs/ext/MessageBodyReader.class
new file mode 100644
index 00000000..bf2698fc
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/MessageBodyReader.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/MessageBodyWriter.class b/com.sun.jersey/javax/ws/rs/ext/MessageBodyWriter.class
new file mode 100644
index 00000000..0d273c11
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/MessageBodyWriter.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/Provider.class b/com.sun.jersey/javax/ws/rs/ext/Provider.class
new file mode 100644
index 00000000..b9fb29ad
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/Provider.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/Providers.class b/com.sun.jersey/javax/ws/rs/ext/Providers.class
new file mode 100644
index 00000000..5006e31d
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/Providers.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate$HeaderDelegate.class b/com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate$HeaderDelegate.class
new file mode 100644
index 00000000..328c7c7d
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate$HeaderDelegate.class differ
diff --git a/com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate.class b/com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate.class
new file mode 100644
index 00000000..01ae8a5b
Binary files /dev/null and b/com.sun.jersey/javax/ws/rs/ext/RuntimeDelegate.class differ
--
cgit