jruby-vijava 2.1.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -0
- data/History.rdoc +3 -0
- data/License.txt +28 -0
- data/Manifest.txt +14 -0
- data/README.rdoc +98 -0
- data/Rakefile +20 -0
- data/docs/Get started with VI Java API.pdf +0 -0
- data/docs/Object model of VI Java API.pdf +0 -0
- data/docs/rel-note.txt +45 -0
- data/jruby-vijava.gemspec +35 -0
- data/lib/jruby-vijava.rb +5 -0
- data/lib/vijava.rb +22 -0
- data/lib/vijava/dom4j-1.6.1.jar +0 -0
- data/lib/vijava/vijava2120100824.jar +0 -0
- metadata +90 -0
data/Gemfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
source "http://rubygems.org"
|
data/History.rdoc
ADDED
data/License.txt
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
Copyright (c) 2008 VMware, Inc. All Rights Reserved.
|
2
|
+
Copyright (c) 2009 Altor Networks. All Rights Reserved.
|
3
|
+
Copyright (c) 2009 NetApp. All Rights Reserved.
|
4
|
+
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
7
|
+
|
8
|
+
* Redistributions of source code must retain the above copyright notice,
|
9
|
+
this list of conditions and the following disclaimer.
|
10
|
+
|
11
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
13
|
+
and/or other materials provided with the distribution.
|
14
|
+
|
15
|
+
* Neither the name of VMware, Inc. nor the names of its contributors may be
|
16
|
+
used to endorse or promote products derived from this software without
|
17
|
+
specific prior written permission.
|
18
|
+
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL VMWARE, INC. OR CONTRIBUTORS BE LIABLE FOR ANY
|
23
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
24
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
25
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
26
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
28
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/Manifest.txt
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Gemfile
|
2
|
+
History.rdoc
|
3
|
+
License.txt
|
4
|
+
Manifest.txt
|
5
|
+
README.rdoc
|
6
|
+
Rakefile
|
7
|
+
docs/Get started with VI Java API.pdf
|
8
|
+
docs/Object model of VI Java API.pdf
|
9
|
+
docs/rel-note.txt
|
10
|
+
jruby-vijava.gemspec
|
11
|
+
lib/jruby-vijava.rb
|
12
|
+
lib/vijava.rb
|
13
|
+
lib/vijava/dom4j-1.6.1.jar
|
14
|
+
lib/vijava/vijava2120100824.jar
|
data/README.rdoc
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
= jruby-vijava
|
2
|
+
|
3
|
+
Home:: http://sourceforge.net/projects/vijava/
|
4
|
+
Source:: https://github.com/halostatue/jruby-vijava/
|
5
|
+
Tutorial (Java):: http://vijava.sf.net/
|
6
|
+
|
7
|
+
== Description:
|
8
|
+
|
9
|
+
JRuby-vijava is the VMware Infrastructure (vSphere) Java API packaged for use
|
10
|
+
with JRuby. This version is 2.1, synchronized to the release version of the VI
|
11
|
+
Java API currently available on SourceForge.
|
12
|
+
|
13
|
+
=== What is the VI Java API?
|
14
|
+
|
15
|
+
VI Java API is a set of Java libraries that aim to ease the usage of VI SDK Web
|
16
|
+
Services interfaces. It's now open-sourced under BSD license.
|
17
|
+
|
18
|
+
It provides the following benefits to the Java developers:
|
19
|
+
|
20
|
+
* Enables OO programming with a well defined managed object model
|
21
|
+
* Reduces the need to use ManagedObjectReference and makes possible
|
22
|
+
compile time type checking
|
23
|
+
* Hides the complexity of the PropertyCollector
|
24
|
+
* Provides necessary utility classes to simplify VI SDK web interfaces
|
25
|
+
* High performance with 4+ times faster than AXIS engine
|
26
|
+
|
27
|
+
As a result, the application code using this API is much shorter (70% less) and
|
28
|
+
much more readable than the equivalent using web service interfaces directly.
|
29
|
+
The API itself is straight-forward and easy to learn and use.
|
30
|
+
|
31
|
+
=== Who created the API?
|
32
|
+
|
33
|
+
The VI Java API was initially created by Steve Jin from VMware Engineering. He
|
34
|
+
is the author of <em>VMware VI and vSphere SDK</em> by Prentice Hall. There are
|
35
|
+
contributions from the communities as well. See the web site for more details.
|
36
|
+
|
37
|
+
=== What is included?
|
38
|
+
Everything is packaged into one Jar file, including the Java source code,
|
39
|
+
binary, sample code, license.
|
40
|
+
|
41
|
+
Version 2.0 includes a high performance web service engine which is 15+ times
|
42
|
+
faster in loading and 4+ faster in de-serialization than AXIS with only 1/4 of
|
43
|
+
the size, and many other features. Find out more at project home.
|
44
|
+
|
45
|
+
=== How to get started?
|
46
|
+
To get started, check out the project tutorial at: http://vijava.sf.net.
|
47
|
+
|
48
|
+
=== Where can I get help?
|
49
|
+
project Forum: https://sourceforge.net/forum/forum.php?forum_id=826592
|
50
|
+
File a bug: https://sourceforge.net/tracker/?group_id=228007
|
51
|
+
|
52
|
+
== Requirements:
|
53
|
+
|
54
|
+
JRuby
|
55
|
+
|
56
|
+
== Install:
|
57
|
+
|
58
|
+
gem install jruby-vijava
|
59
|
+
|
60
|
+
== Developers:
|
61
|
+
|
62
|
+
After checking out the source, run:
|
63
|
+
|
64
|
+
$ rake newb
|
65
|
+
|
66
|
+
This task will install any missing dependencies, run the tests/specs, and
|
67
|
+
generate the RDoc.
|
68
|
+
|
69
|
+
== License:
|
70
|
+
|
71
|
+
Copyright (c) 2008 VMware, Inc. All Rights Reserved.
|
72
|
+
Copyright (c) 2009 Altor Networks. All Rights Reserved.
|
73
|
+
Copyright (c) 2009 NetApp. All Rights Reserved.
|
74
|
+
|
75
|
+
Redistribution and use in source and binary forms, with or without modification,
|
76
|
+
are permitted provided that the following conditions are met:
|
77
|
+
|
78
|
+
* Redistributions of source code must retain the above copyright notice,
|
79
|
+
this list of conditions and the following disclaimer.
|
80
|
+
|
81
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
82
|
+
this list of conditions and the following disclaimer in the documentation
|
83
|
+
and/or other materials provided with the distribution.
|
84
|
+
|
85
|
+
* Neither the name of VMware, Inc. nor the names of its contributors may be
|
86
|
+
used to endorse or promote products derived from this software without
|
87
|
+
specific prior written permission.
|
88
|
+
|
89
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
90
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
91
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
92
|
+
DISCLAIMED. IN NO EVENT SHALL VMWARE, INC. OR CONTRIBUTORS BE LIABLE FOR ANY
|
93
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
94
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
95
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
96
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
97
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
98
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- ruby encoding: utf-8 -*-
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'hoe'
|
5
|
+
|
6
|
+
Hoe.plugin :doofus
|
7
|
+
Hoe.plugin :gemspec
|
8
|
+
Hoe.plugin :git
|
9
|
+
|
10
|
+
Hoe.spec 'jruby-vijava' do
|
11
|
+
developer('Austin Ziegler', 'austin@rubyforge.org')
|
12
|
+
developer('Steve Jin', '@sjin2008')
|
13
|
+
|
14
|
+
self.history_file = 'History.rdoc'
|
15
|
+
self.readme_file = 'README.rdoc'
|
16
|
+
self.extra_rdoc_files = FileList["*.rdoc"].to_a
|
17
|
+
self.spec_extras[:platform] = "java"
|
18
|
+
end
|
19
|
+
|
20
|
+
# vim: ft=ruby
|
Binary file
|
Binary file
|
data/docs/rel-note.txt
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
What is new in Version 2.0u1
|
2
|
+
Bug fixes:
|
3
|
+
2814793 ClassCastException in XmlGen.java
|
4
|
+
2819624 Caching: NPE occurs repeatedly in watcher thread
|
5
|
+
2823427 customize vm causes cast error in XmlGen.toXML()
|
6
|
+
2825430 DistributedVirtualSwitch#getSummary() has incorrect impl
|
7
|
+
2825433 ResourcePools occasionally returned as VirtualApps
|
8
|
+
2837427 AddDVPortgroup_Task should return a Task object
|
9
|
+
2837428 moveDVPort_Task should return a Task object
|
10
|
+
2839209 Caching: Flood of exceptions when authentication fails
|
11
|
+
2840733 HostPatchManager.uninstallHostPatch_Task() is missing
|
12
|
+
2898611 HostProfile.updateHostProfile() should return ProfileExecute
|
13
|
+
2903501 NullPointerException when call findAllByUuid
|
14
|
+
2907215 Missing network traveral in PropertyCollectorUtil.java
|
15
|
+
|
16
|
+
What is new in Version 2.0
|
17
|
+
|
18
|
+
0. vSphere 4.0 support
|
19
|
+
1. High performance Web Service Engine to replace AXIS.
|
20
|
+
2. POJO Data Objects and Java Enum Types
|
21
|
+
3. REST Client API (experimental)
|
22
|
+
4. Caching framework (experimental)
|
23
|
+
5. Samples using the APIs
|
24
|
+
|
25
|
+
What is new in Version 1.0
|
26
|
+
1. Some code refactoring with ManagedObject.java and
|
27
|
+
PropertyCollectorUtil.java
|
28
|
+
2. Added getPropertiesByPaths() which can retrieve multiple properties of a
|
29
|
+
single managed object at a time. The result is returned in a Hashtable.
|
30
|
+
3. Added retrieveProperties() method into the PropertyCollectorUtil so that
|
31
|
+
you can get multiple properties on multiple managed objects in a single
|
32
|
+
call.
|
33
|
+
4. Added a new sample to show how to use the retrieveProperties() API.
|
34
|
+
|
35
|
+
The summary of bug fixes in Version 1.0 Beta
|
36
|
+
|
37
|
+
1. Surfaced the exception up to the caller other than printing out error
|
38
|
+
message.
|
39
|
+
https://sourceforge.net/tracker/?func=detail&atid=1073396&aid=2031543&group_id=228007
|
40
|
+
2. Added three missing methods to the ListView managed object.
|
41
|
+
3. Added 18 more samples into the release. Tom Elliot contributed his first
|
42
|
+
sample.
|
43
|
+
4. Changed the VMClone.java to accommodate the change of #1.
|
44
|
+
5. Added a public method getPropertyByPath() to ManagedObject.
|
45
|
+
6. Added toString() method to the ManagedObject
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{jruby-vijava}
|
5
|
+
s.version = "2.1.0.20110804133325"
|
6
|
+
s.platform = %q{java}
|
7
|
+
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.authors = ["Austin Ziegler"]
|
10
|
+
s.date = %q{2011-08-04}
|
11
|
+
s.description = %q{Jruby-vijava is the VMware Infrastructure (vSphere) Java API packaged for use
|
12
|
+
with JRuby. This version is 2.1, synchronized to the release version of the VI
|
13
|
+
Java API currently available on SourceForge.}
|
14
|
+
s.email = ["austin@rubyforge.org"]
|
15
|
+
s.extra_rdoc_files = ["License.txt", "Manifest.txt", "docs/rel-note.txt", "History.rdoc", "README.rdoc"]
|
16
|
+
s.files = [".autotest", "History.rdoc", "License.txt", "Manifest.txt", "README.rdoc", "Rakefile", "docs/Get started with VI Java API.pdf", "docs/Object model of VI Java API.pdf", "docs/rel-note.txt", "lib/vijava.rb", "lib/vijava/dom4j-1.6.1.jar", "lib/vijava/vijava2120100824.jar"]
|
17
|
+
s.homepage = %q{Home: http://sourceforge.net/projects/vijava/}
|
18
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
s.rubyforge_project = %q{jruby-vijava}
|
21
|
+
s.rubygems_version = %q{1.5.1}
|
22
|
+
s.summary = %q{Jruby-vijava is the VMware Infrastructure (vSphere) Java API packaged for use with JRuby}
|
23
|
+
|
24
|
+
if s.respond_to? :specification_version then
|
25
|
+
s.specification_version = 3
|
26
|
+
|
27
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
28
|
+
s.add_development_dependency(%q<hoe>, ["~> 2.10"])
|
29
|
+
else
|
30
|
+
s.add_dependency(%q<hoe>, ["~> 2.10"])
|
31
|
+
end
|
32
|
+
else
|
33
|
+
s.add_dependency(%q<hoe>, ["~> 2.10"])
|
34
|
+
end
|
35
|
+
end
|
data/lib/jruby-vijava.rb
ADDED
data/lib/vijava.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- ruby encoding: utf-8 -*-
|
2
|
+
require 'vijava/dom4j-1.6.1.jar'
|
3
|
+
require 'vijava/vijava2120100824.jar'
|
4
|
+
|
5
|
+
# A wrapper around VIJava's com.vmware.vim25.mo package.
|
6
|
+
module VIJava
|
7
|
+
VERSION = '2.1.0'
|
8
|
+
|
9
|
+
include_package "com.vmware.vim25.mo"
|
10
|
+
|
11
|
+
# A wrapper around VIJava's com.vmware.vim25.mo.util package.
|
12
|
+
module Util
|
13
|
+
include_package "com.vmware.vim25.mo.util"
|
14
|
+
end
|
15
|
+
|
16
|
+
# A wrapper around VIJava's com.vmware.vim25 pacakge.
|
17
|
+
module Vim
|
18
|
+
include_package "com.vmware.vim25"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
# vim: ft=ruby
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jruby-vijava
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 2.1.0
|
6
|
+
platform: java
|
7
|
+
authors:
|
8
|
+
- Austin Ziegler
|
9
|
+
- Steve Jin
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
|
14
|
+
date: 2011-08-04 00:00:00 -04:00
|
15
|
+
default_executable:
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: hoe
|
19
|
+
prerelease: false
|
20
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
22
|
+
requirements:
|
23
|
+
- - ~>
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: "2.10"
|
26
|
+
type: :development
|
27
|
+
version_requirements: *id001
|
28
|
+
description: |-
|
29
|
+
JRuby-vijava is the VMware Infrastructure (vSphere) Java API packaged for use
|
30
|
+
with JRuby. This version is 2.1, synchronized to the release version of the VI
|
31
|
+
Java API currently available on SourceForge.
|
32
|
+
email:
|
33
|
+
- austin@rubyforge.org
|
34
|
+
- "@sjin2008"
|
35
|
+
executables: []
|
36
|
+
|
37
|
+
extensions: []
|
38
|
+
|
39
|
+
extra_rdoc_files:
|
40
|
+
- License.txt
|
41
|
+
- Manifest.txt
|
42
|
+
- docs/rel-note.txt
|
43
|
+
- History.rdoc
|
44
|
+
- README.rdoc
|
45
|
+
files:
|
46
|
+
- Gemfile
|
47
|
+
- History.rdoc
|
48
|
+
- License.txt
|
49
|
+
- Manifest.txt
|
50
|
+
- README.rdoc
|
51
|
+
- Rakefile
|
52
|
+
- docs/Get started with VI Java API.pdf
|
53
|
+
- docs/Object model of VI Java API.pdf
|
54
|
+
- docs/rel-note.txt
|
55
|
+
- jruby-vijava.gemspec
|
56
|
+
- lib/jruby-vijava.rb
|
57
|
+
- lib/vijava.rb
|
58
|
+
- lib/vijava/dom4j-1.6.1.jar
|
59
|
+
- lib/vijava/vijava2120100824.jar
|
60
|
+
has_rdoc: true
|
61
|
+
homepage: http://sourceforge.net/projects/vijava/
|
62
|
+
licenses: []
|
63
|
+
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options:
|
66
|
+
- --main
|
67
|
+
- README.rdoc
|
68
|
+
require_paths:
|
69
|
+
- lib
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: "0"
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: "0"
|
82
|
+
requirements: []
|
83
|
+
|
84
|
+
rubyforge_project: jruby-vijava
|
85
|
+
rubygems_version: 1.5.1
|
86
|
+
signing_key:
|
87
|
+
specification_version: 3
|
88
|
+
summary: JRuby-vijava is the VMware Infrastructure (vSphere) Java API packaged for use with JRuby
|
89
|
+
test_files: []
|
90
|
+
|