Skip to content

Commit

Permalink
Added WorkerMetadata (related to #191, #215, #216)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Feb 14, 2017
1 parent b8c3df7 commit e7e1257
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.meridor.perspective.aws;

import org.meridor.perspective.config.CloudType;
import org.meridor.perspective.worker.misc.impl.AbstractWorkerMetadata;
import org.springframework.stereotype.Component;

@Component
public class WorkerMetadata extends AbstractWorkerMetadata {
@Override
public CloudType getCloudType() {
return CloudType.AWS;
}
}
2 changes: 2 additions & 0 deletions perspective-beans/src/xsd/config.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<xsd:enumeration value="aws"/>
<xsd:enumeration value="docker"/>
<xsd:enumeration value="digital_ocean"/>
<xsd:enumeration value="google_cloud"/>
<xsd:enumeration value="microsoft_azure"/>
<xsd:enumeration value="openstack"/>
</xsd:restriction>
</xsd:simpleType>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.meridor.perspective.googlecloud;

import org.meridor.perspective.config.CloudType;
import org.meridor.perspective.worker.misc.impl.AbstractWorkerMetadata;
import org.springframework.stereotype.Component;

@Component
public class WorkerMetadata extends AbstractWorkerMetadata {
@Override
public CloudType getCloudType() {
return CloudType.GOOGLE_CLOUD;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.meridor.perspective.microsoftazure;

import org.meridor.perspective.config.CloudType;
import org.meridor.perspective.worker.misc.impl.AbstractWorkerMetadata;
import org.springframework.stereotype.Component;

@Component
public class WorkerMetadata extends AbstractWorkerMetadata {
@Override
public CloudType getCloudType() {
return CloudType.MICROSOFT_AZURE;
}
}

0 comments on commit e7e1257

Please sign in to comment.