Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gpucloudsim
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LPDS
gpucloudsim
Commits
ecd0ad0b
Commit
ecd0ad0b
authored
Dec 22, 2011
by
rodrigo.calheiros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Classes related to federation were removed, as they were not properly supported.
parent
fe5ec634
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
1409 deletions
+0
-1409
CloudCoordinator.java
...src/main/java/org/cloudbus/cloudsim/CloudCoordinator.java
+0
-85
FederatedDatacenter.java
.../main/java/org/cloudbus/cloudsim/FederatedDatacenter.java
+0
-1278
Sensor.java
.../cloudsim/src/main/java/org/cloudbus/cloudsim/Sensor.java
+0
-46
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/CloudCoordinator.java
deleted
100644 → 0
View file @
fe5ec634
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2009-2010, The University of Melbourne, Australia
*/
package
org
.
cloudbus
.
cloudsim
;
import
java.util.List
;
/**
* This class represents the coordinator of a federation of clouds.
* It interacts with other clouds coordinators in order to exchange
* virtual machines and user applicatoins, if required.
*
* @author Rodrigo N. Calheiros
* @since CloudSim Toolkit 1.0
*/
public
abstract
class
CloudCoordinator
{
/** The datacenter. */
protected
FederatedDatacenter
datacenter
;
/** The federation. */
protected
List
<
Integer
>
federation
;
/**
* Defines the FederatedDataCenter this coordinator works for.
*
* @param datacenter FederatedDataCenter associated to this coordinator.
*
* @pre $none
* @post $none
*/
public
void
setDatacenter
(
FederatedDatacenter
datacenter
){
this
.
datacenter
=
datacenter
;
}
/**
* Informs about the other data centers that are part of the federation.
*
* @param federationList List of DataCenters ids that are part of the federation
*
* @pre federationList != null
* @post $none
*/
public
void
setFederation
(
List
<
Integer
>
federationList
)
{
this
.
federation
=
federationList
;
}
/**
* This method is periodically called by the FederatedDataCenter to
* makethe coordinator update the sensors measuring in order to decide
* if modification in the data center must be processed. This modification
* requires migration of virtual machines and/or user applications from
* one data center to another.
*
* @pre $none
* @post $none
*/
public
void
updateDatacenter
()
{
for
(
Sensor
<
Double
>
s
:
this
.
datacenter
.
getSensors
())
{
int
result
=
s
.
monitor
();
if
(
result
!=
0
)
{
migrate
(
s
,
result
);
}
}
}
/**
* Implements a specific migration policy to be deployed by the cloud coordinator.
*
* @param result the result vof the last measurement:
* -1 if the measurement fell below the lower threshold
* +1 if the measurement fell above the higher threshold
* @param sensor the sensor
*
* @pre sensor != null
* @post $none
*/
protected
abstract
void
migrate
(
Sensor
<
Double
>
sensor
,
int
result
);
}
\ No newline at end of file
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/FederatedDatacenter.java
deleted
100644 → 0
View file @
fe5ec634
This diff is collapsed.
Click to expand it.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/Sensor.java
deleted
100644 → 0
View file @
fe5ec634
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2009-2010, The University of Melbourne, Australia
*/
package
org
.
cloudbus
.
cloudsim
;
/**
* This interface must be implemented by sensors to
* specific data center features.
*
* @author Rodrigo N. Calheiros
* @since CloudSim Toolkit 1.0
*/
public
interface
Sensor
<
T
extends
Number
>
{
/**
* Sets the data center the sensor monitors
* @param dataCenter data center monitored by this sensor
*/
void
setDatacenter
(
FederatedDatacenter
datacenter
);
/**
* Updates internal measurement of the monitored feature
* @return -1 if current measurements falls below the minumum threshold,
* +1 if measurement falls above the maximum threshold,
* 0 if the measurement is within the specified interval
*/
int
monitor
();
/**
* Sets the upper limit of the feature monitored by the sensor
* @param value maximum value allowed to this sensor
*/
void
setUpperThreshold
(
T
value
);
/**
* Sets the lower limit of the feature monitored by the sensor
* @param value minimum value allowed to this sensor
*/
void
setLowerThreshold
(
T
value
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment