Skip to content

Commit cf4c8b0

Browse files
committed
Update docs
- Changes lots of references from Java 8 to Java 17 - Update links after creating the cloudsimplus organization on GitHub and spliting the project into different repositories - Update artifact names on documentation files Signed-off-by: Manoel Campos <[email protected]>
1 parent 56c544e commit cf4c8b0

15 files changed

+21
-21
lines changed

src/main/java/org/cloudsimplus/examples/MinTimeBetweenEventsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
* Therefore, you may need to fine tune such attribute according to your simulation.</p>
6565
*
6666
* <p>This example reproduces the configuration
67-
* <a href="https://github.com/manoelcampos/cloudsim-plus/issues/163">Issue #163</a>.
67+
* <a href="https://github.com/cloudsimplus/cloudsimplus/issues/163">Issue #163</a>.
6868
* The documentation of the {@link #MIN_TIME_BETWEEN_EVENTS} constant below shows how
6969
* to configure the attribute to make CloudSim Plus process all events
7070
* accurately in this scenario and then all submitted Cloudlets be finished.

src/main/java/org/cloudsimplus/examples/ReducedExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*/
5656
class ReducedExample {
5757
public static void main(String[] args) {
58-
//tag::cloudsim-plus-reduced-example[]
58+
//tag::cloudsimplus-reduced-example[]
5959
//Enables just some level of log messages
6060
//Log.setLevel(ch.qos.logback.classic.Level.WARN);
6161

@@ -105,6 +105,6 @@ public static void main(String[] args) {
105105
/*Prints the results when the simulation is over (one can use his/her own code
106106
here to print what he/she wants from this cloudlet list). */
107107
new CloudletsTableBuilder(broker0.getCloudletFinishedList()).build();
108-
//end::cloudsim-plus-reduced-example[]
108+
//end::cloudsimplus-reduced-example[]
109109
}
110110
}

src/main/java/org/cloudsimplus/examples/VmDestructionExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* <p>It shows Host CPU utilization every second, so that when the overloaded VM
6262
* is destroyed, we can check the Host CPU utilization reduces.</p>
6363
*
64-
* <p><b>Lambda Expressions and Functional Interfaces are Java 8 features.</b>
64+
* <p><b>Lambda Expressions and Functional Interfaces are Java 8+ features.</b>
6565
* If you don't know what these features are, I suggest checking out this
6666
* <a href="http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/Lambda-QuickStart/index.html">tutorial</a></p>
6767
*

src/main/java/org/cloudsimplus/examples/brokers/MultipleBrokers1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private void printResults() {
147147
* an idle VM, according to a given
148148
* {@link DatacenterBroker#setVmDestructionDelayFunction(Function) VM Destruction Delay Function}.
149149
*
150-
* <p>See <a href="https://github.com/manoelcampos/cloudsim-plus/issues/99">Issue #99</a> for more details.</p>
150+
* <p>See <a href="https://github.com/cloudsimplus/cloudsimplus/issues/99">Issue #99</a> for more details.</p>
151151
*
152152
* @see DatacenterBroker#setVmDestructionDelayFunction(Function)
153153
* @return the List of created brokers

src/main/java/org/cloudsimplus/examples/brokers/MultipleBrokers2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private void dynamicCloudletArrival(EventInfo e) {
188188
* an idle VM, according to a given
189189
* {@link DatacenterBroker#setVmDestructionDelayFunction(Function) VM Destruction Delay Function}.
190190
*
191-
* <p>See <a href="https://github.com/manoelcampos/cloudsim-plus/issues/99">Issue #99</a> for more details.</p>
191+
* <p>See <a href="https://github.com/cloudsimplus/cloudsimplus/issues/99">Issue #99</a> for more details.</p>
192192
*
193193
* @see DatacenterBroker#setVmDestructionDelayFunction(Function)
194194
*/

src/main/java/org/cloudsimplus/examples/dynamic/CreateCloudletAfterLastFinishedOne.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*
5454
* <p>This example uses CloudSim Plus Listener features to intercept when
5555
* the a Cloudlet finishes its execution to then request
56-
* the creation of a new Cloudlet. It uses the Java 8 Lambda Functions features
56+
* the creation of a new Cloudlet. It uses the Java 8+ Lambda Functions features
5757
* to pass a listener to the mentioned Cloudlet, by means of the
5858
* {@link Cloudlet#addOnFinishListener(EventListener)} method.</p>
5959
*

src/main/java/org/cloudsimplus/examples/dynamic/DynamicCreationOfVmsAndCloudletsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*
5454
* <p>This example uses CloudSim Plus Listener features to intercept when
5555
* the first Cloudlet finishes its execution to then request
56-
* the creation of new VMs and Cloudlets. It uses the Java 8 Lambda Functions features
56+
* the creation of new VMs and Cloudlets. It uses the Java 8+ Lambda Functions features
5757
* to pass a listener to the mentioned Cloudlet, by means of the
5858
* {@link Cloudlet#addOnFinishListener(EventListener)} method.</p>
5959
*

src/main/java/org/cloudsimplus/examples/dynamic/DynamicHostCreation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@
8282
* when the simulation clock advances.
8383
* </p>
8484
*
85-
* <p>In fact, this {@link EventListener} is a Java 8 {@link FunctionalInterface}
85+
* <p>In fact, this {@link EventListener} is a Java 8+ {@link FunctionalInterface}
8686
* that enables using Lambda Expression
8787
* or method references in order to provide a {@link FunctionalInterface}.
8888
* This example uses a reference to the {@link #clockTickListener(EventInfo)} method
8989
* as being the {@link EventListener} required by the {@link CloudSimPlus#addOnClockTickListener(EventListener)}.</p>
9090
*
91-
* <p><b>Lambda Expressions, method references and Functional Interfaces are Java 8 features.</b>
91+
* <p><b>Lambda Expressions, method references and Functional Interfaces are Java 8+ features.</b>
9292
* If you don't know what these features are, I suggest checking out this
9393
* <a href="http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/Lambda-QuickStart/index.html">tutorial</a></p>
9494
*

src/main/java/org/cloudsimplus/examples/dynamic/DynamicVmAllocationPolicyBestFitExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
/**
7676
* An example showing how to create 1 Datacenter with 5 hosts,
7777
* 1 VM by host and 1 cloudlet by VM and perform VM allocation by
78-
* using Java 8 Functional Programming to change, at runtime, the
78+
* using Java 8+ Functional Programming to change, at runtime, the
7979
* policy used by a {@link VmAllocationPolicy}.
8080
*
8181
* <p>VMs are allocated based on a <b>Best Fit allocation policy</b>, which
@@ -166,7 +166,7 @@ private DynamicVmAllocationPolicyBestFitExample(){
166166
/**
167167
* A method that defines a Best Fit policy to select a suitable Host with the least
168168
* available PEs to place a VM.
169-
* Using Java 8 Functional Programming, this method is given as parameter
169+
* Using Java 8+ Functional Programming, this method is given as parameter
170170
* to the constructor of a {@link VmAllocationPolicySimple}
171171
*
172172
* @param allocationPolicy the {@link VmAllocationPolicy} that is trying to allocate a Host for the requesting VM

src/main/java/org/cloudsimplus/examples/listeners/VmListenersExample1.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,21 @@ private void createAndSubmitVms() {
142142
final var vm0 = createVm(0);
143143

144144
/* Sets the Listener to intercept allocation of a Host to the Vm.
145-
* The Listener is created using Java 8 Lambda Expressions.
145+
* The Listener is created using Java 8+ Lambda Expressions.
146146
*/
147147
vm0.addOnHostAllocationListener(eventInfo -> System.out.printf(
148148
"%n\t#EventListener: Host %d allocated to Vm %d at time %.2f%n",
149149
eventInfo.getHost().getId(), eventInfo.getVm().getId(), eventInfo.getTime()));
150150

151151
/* Sets the listener to intercept deallocation of a Host for the Vm.
152-
* The Listener is created using Java 8 Lambda Expressions.
152+
* The Listener is created using Java 8+ Lambda Expressions.
153153
*/
154154
vm0.addOnHostDeallocationListener(eventInfo -> System.out.printf(
155155
"%n\t#EventListener: Vm %d moved/removed from Host %d at time %.2f%n",
156156
eventInfo.getVm().getId(), eventInfo.getHost().getId(), eventInfo.getTime()));
157157

158158
/* This VM will not be place due to lack of a suitable host.
159-
* The Listener is created using Java 8 Lambda Expressions.
159+
* The Listener is created using Java 8+ Lambda Expressions.
160160
*/
161161
final var vm1 = createVm(1);
162162
vm1.addOnCreationFailureListener(eventInfo -> System.out.printf(

0 commit comments

Comments
 (0)