Skip to content

Commit 2c275e2

Browse files
committed
Merge pull request #184 from fogbow/develop
enabling BC provider in CertificateUtils
2 parents 0f9a8bb + 5f94a1a commit 2c275e2

File tree

81 files changed

+4536
-1382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+4536
-1382
lines changed
85.2 KB
Binary file not shown.

bin/start-manager

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ CONF_LOG=-Dlog4j.configuration=file:$LOG4J
77
else
88
CONF_LOG=
99
fi
10-
java $CONF_LOG -cp target/manager-0.0.1-SNAPSHOT.jar:target/lib/* org.fogbowcloud.manager.Main manager.conf > /dev/null &
10+
java $CONF_LOG -cp target/manager-0.0.1-SNAPSHOT.jar:target/lib/* org.fogbowcloud.manager.Main manager.conf > /dev/null &

manager.conf.example

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,31 @@ compute_occi_resource_scheme=http://schemas.openstack.org/template/resource#
3939
compute_occi_network_id=ea51ed0c-0e8a-448d-8202-c79777109ffe
4040

4141
# If you are using the EgiImageStoragePlugin
42-
image_storage_class=org.fogbowcloud.manager.core.plugins.egi.EgiImageStoragePlugin
42+
image_storage_class=org.fogbowcloud.manager.core.plugins.imagestorage.egi.EgiImageStoragePlugin
4343
image_storage_egi_base_url=http://lsd.ufcg.edu.br/~user/vm/
4444
image_storage_egi_tmp_storage=/tmp/
4545

4646
# If you are using the EgiApplianceImageStoragePlugin
47-
image_storage_class=org.fogbowcloud.manager.core.plugins.appliance.EgiApplianceImageStoragePlugin
47+
image_storage_class=org.fogbowcloud.manager.core.plugins.imagestorage.appliance.EgiApplianceImageStoragePlugin
4848
image_storage_appliance_base_url=http://appliance-repo.egi.eu/images
4949
image_storage_appliance_tmp_storage=/tmp/
5050

51+
# If you are using the VMCatcherStoragePlugin
52+
image_storage_class=org.fogbowcloud.manager.core.plugins.imagestorage.vmcatcher.VMCatcherStoragePlugin
53+
image_storage_vmcatcher_glancepush_vmcmapping_file=/etc/vmcatcher/vmcmapping
54+
image_storage_vmcatcher_push_method=glancepush
55+
image_storage_vmcatcher_push_method=cesga
56+
57+
# Applies to all image storage plugins
5158
image_storage_static_fogbow-linux-x86=55d938ef-57d1-44ea-8155-6036d170780a
5259
image_storage_static_fogbow-ubuntu-1204=81765250-a4e4-440d-a215-43c9c0849120
5360

5461
member_picker_class=org.fogbowcloud.manager.core.RoundRobinMemberPicker
55-
#If you are using NoFMemberPicker class
62+
#If you are using NoFMemberPicker or NoFPrioritizationPlugin classes
5663
nof_trustworthy=false
5764

65+
local_prioritization_plugin_class=org.fogbowcloud.manager.core.plugins.prioritization.FCFSPrioritizationPlugin
66+
remote_prioritization_plugin_class=org.fogbowcloud.manager.core.plugins.prioritization.nof.NoFPrioritizationPlugin
5867

5968
compute_class=org.fogbowcloud.manager.core.plugins.openstack.OpenStackNovaV2ComputePlugin
6069
compute_novav2_url=http://localhost:8774

pom.xml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
<version>0.0.1-SNAPSHOT</version>
77

88
<repositories>
9+
<repository>
10+
<id>local</id>
11+
<url>file://${basedir}/.m2</url>
12+
</repository>
913
<repository>
10-
<id>maven-restlet</id>
11-
<name>Public online Restlet repository</name>
12-
<url>http://maven.restlet.org</url>
13-
</repository>
14+
<id>maven-restlet</id>
15+
<name>Public online Restlet repository</name>
16+
<url>http://maven.restlet.com</url>
17+
</repository>
1418
<repository>
1519
<id>contrail</id>
1620
<name>Contrail repository</name>
1721
<url>http://contrail.ow2.org/repositories/thirdparty</url>
1822
</repository>
19-
<repository>
20-
<id>local</id>
21-
<url>file://${basedir}/.m2</url>
22-
</repository>
2323
</repositories>
2424

2525
<build>
@@ -138,7 +138,12 @@
138138
<dependency>
139139
<groupId>org.jamppa</groupId>
140140
<artifactId>jamppa</artifactId>
141-
<version>0.1.1</version>
141+
<version>0.1.2</version>
142+
</dependency>
143+
<dependency>
144+
<groupId>condor</groupId>
145+
<artifactId>classad</artifactId>
146+
<version>2.4</version>
142147
</dependency>
143148
<dependency>
144149
<groupId>org.opennebula</groupId>
@@ -210,6 +215,11 @@
210215
<artifactId>h2</artifactId>
211216
<version>1.4.186</version>
212217
</dependency>
218+
<dependency>
219+
<groupId>javax.mail</groupId>
220+
<artifactId>mail</artifactId>
221+
<version>1.4</version>
222+
</dependency>
213223

214224
</dependencies>
215225

src/main/java/org/fogbowcloud/manager/Main.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
import org.fogbowcloud.manager.core.plugins.ComputePlugin;
1818
import org.fogbowcloud.manager.core.plugins.IdentityPlugin;
1919
import org.fogbowcloud.manager.core.plugins.ImageStoragePlugin;
20+
import org.fogbowcloud.manager.core.plugins.PrioritizationPlugin;
2021
import org.fogbowcloud.manager.core.plugins.accounting.FCUAccountingPlugin;
2122
import org.fogbowcloud.manager.core.plugins.benchmarking.FCUStaticBenchmarkingPlugin;
22-
import org.fogbowcloud.manager.core.plugins.egi.EgiImageStoragePlugin;
23+
import org.fogbowcloud.manager.core.plugins.prioritization.TwoFoldPrioritizationPlugin;
24+
import org.fogbowcloud.manager.core.plugins.imagestorage.egi.EgiImageStoragePlugin;
2325
import org.fogbowcloud.manager.occi.OCCIApplication;
26+
import org.fogbowcloud.manager.occi.core.ResourceRepository;
2427
import org.fogbowcloud.manager.xmpp.ManagerXmppComponent;
2528
import org.restlet.Component;
2629
import org.restlet.data.Protocol;
@@ -39,7 +42,8 @@ public static void main(String[] args) throws Exception {
3942
Properties properties = new Properties();
4043
FileInputStream input = new FileInputStream(args[0]);
4144
properties.load(input);
42-
45+
ResourceRepository.init(properties);
46+
4347
ComputePlugin computePlugin = null;
4448
try {
4549
computePlugin = (ComputePlugin) createInstance(
@@ -127,6 +131,9 @@ public static void main(String[] args) throws Exception {
127131
memberPickerPlugin = new RoundRobinMemberPicker(properties, accountingPlugin);
128132
LOGGER.warn("Member picker plugin not specified in properties. Using the default one.", e);
129133
}
134+
135+
PrioritizationPlugin prioritizationPlugin = new TwoFoldPrioritizationPlugin(properties,
136+
accountingPlugin);
130137

131138
ManagerController facade = new ManagerController(properties);
132139
facade.setComputePlugin(computePlugin);
@@ -138,6 +145,7 @@ public static void main(String[] args) throws Exception {
138145
facade.setBenchmarkingPlugin(benchmarkingPlugin);
139146
facade.setAccountingPlugin(accountingPlugin);
140147
facade.setMemberPickerPlugin(memberPickerPlugin);
148+
facade.setPrioritizationPlugin(prioritizationPlugin);
141149

142150
ManagerXmppComponent xmpp = new ManagerXmppComponent(
143151
properties.getProperty(ConfigurationConstants.XMPP_JID_KEY),

src/main/java/org/fogbowcloud/manager/core/ConfigurationConstants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public class ConfigurationConstants {
1919
public static final String MEMBER_VALIDATOR_KEY = "member_validator";
2020
public static final String HTTP_PORT_KEY = "http_port";
2121

22+
public static final String PREFIX_FLAVORS = "flavor_";
23+
2224
//federation user
2325
public static final String FEDERATION_USER_NAME_KEY = "local_proxy_account_user_name";
2426
public static final String FEDERATION_USER_PASS_KEY = "local_proxy_account_password";
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package org.fogbowcloud.manager.core;
22

3+
import java.util.List;
4+
35
import org.fogbowcloud.manager.core.model.FederationMember;
46

57
public interface FederationMemberPicker {
68

7-
public FederationMember pick(ManagerController facade);
9+
public FederationMember pick(List<FederationMember> members);
810

911
}

0 commit comments

Comments
 (0)