You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

replication.go 546 B

1234567891011121314151617181920212223
  1. package param
  2. import "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/entity"
  3. type ReplicationParams struct {
  4. Replicas int32
  5. *Params
  6. }
  7. func (r *ReplicationParams) GetReplicas() int32 {
  8. return r.Replicas
  9. }
  10. func (r *ReplicationParams) GetParticipants() []*entity.Participant {
  11. var participants []*entity.Participant
  12. for _, resource := range r.Resources {
  13. participants = append(participants, &entity.Participant{
  14. Participant_id: resource.ParticipantId,
  15. Name: resource.Name,
  16. })
  17. }
  18. return participants
  19. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.