All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cds.services.mt.MtSubscriptionService Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
/**************************************************************************
 * (C) 2019-2020 SAP SE or an SAP affiliate company. All rights reserved. *
 **************************************************************************/
package com.sap.cds.services.mt;

import java.util.List;

import com.sap.cds.services.Service;
import com.sap.cloud.mt.subscription.json.ApplicationDependency;
import com.sap.cloud.mt.subscription.json.DeletePayload;
import com.sap.cloud.mt.subscription.json.SidecarUpgradePayload;
import com.sap.cloud.mt.subscription.json.SubscriptionPayload;

/**
 * Service for the subscription events.
 */
public interface MtSubscriptionService extends Service {

	String DEFAULT_NAME = "MtSubscriptionService$Default";

	String EVENT_GET_DEPENDENCIES = "GET_DEPENDENCIES";
	String EVENT_SUBSCRIBE = "SUBSCRIBE";
	String EVENT_UNSUBSCRIBE = "UNSUBSCRIBE";
	String EVENT_DEPLOY = "DEPLOY";
	String EVENT_ASYNC_DEPLOY = "ASYNC_DEPLOY";
	String EVENT_ASYNC_DEPLOY_STATUS = "ASYNC_DEPLOY_STATUS";

	List getDependencies();

	String subscribe(SubscriptionPayload payload, String tenantId);

	void unsubscribe(DeletePayload payload, String tenantId);

	void deploy(SidecarUpgradePayload payload);

	String asyncDeploy(SidecarUpgradePayload payload);

	String asyncDeployStatus(String jobId);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy