Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fogbow
fogbow-green-sitter
Commits
e7034686
Commit
e7034686
authored
Apr 07, 2015
by
aninhacostaribeiro
Browse files
Merge branch 'master' of
https://github.com/fogbow/fogbow-green-sitter.git
parents
54d3e7f2
00272a7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
server.properties.example
View file @
e7034686
green.cloudtechnology = openstack
xmpp.jid = green-sitter.example.com
xmpp.password = tellNoOne
xmpp.host = localhost
xmpp.port = 1023
openstack.endpoint = http://novacompute.endpoint.com/v2.0
openstack.username =
fogbow
openstack.username =
admin
openstack.password = itIsASecret
openstack.tenant =
fogbow-project
openstack.tenant =
admin
greenstrategy.gracetime = 1800
greenstrategy.expirationtime = 300
...
...
src/main/java/org/fogbowcloud/green/server/core/greenStrategy/DefaultGreenStrategy.java
View file @
e7034686
...
...
@@ -200,7 +200,7 @@ public class DefaultGreenStrategy implements GreenStrategy {
return
;
}
if
(
host
.
getAvailableRAM
()
>=
minRAM
)
{
this
.
scc
.
wakeUpHost
(
host
.
get
Name
());
this
.
scc
.
wakeUpHost
(
host
.
get
MacAddress
());
this
.
sleepingHosts
.
remove
(
host
);
LOGGER
.
info
(
"Waked "
+
host
);
}
...
...
@@ -227,4 +227,4 @@ public class DefaultGreenStrategy implements GreenStrategy {
}
},
0
,
threadTime
,
TimeUnit
.
SECONDS
);
}
}
\ No newline at end of file
}
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