|
| 1 | +package eu.arrowhead.serviceorchestration; |
| 2 | + |
| 3 | +public final class DynamicServiceOrchestrationConstants { |
| 4 | + |
| 5 | + //================================================================================================= |
| 6 | + // members |
| 7 | + |
| 8 | + public static final String SYSTEM_NAME = "serviceorchestration-dynamic"; |
| 9 | + |
| 10 | + public static final String DATABASE_ENTITY_PACKAGE = "eu.arrowhead.serviceorchestration.jpa.entity"; |
| 11 | + public static final String DATABASE_REPOSITORY_PACKAGE = "eu.arrowhead.serviceorchestration.jpa.repository"; |
| 12 | + |
| 13 | + public static final String ENABLE_AUTHORIZATION = "enable.authorization"; |
| 14 | + public static final String $ENABLE_AUTHORIZATION_WD = "${" + ENABLE_AUTHORIZATION + ":" + DynamicServiceOrchestrationDefaults.ENABLE_AUTHORIZATION_DEFAULT + "}"; |
| 15 | + public static final String ENABLE_TRANSLATION = "enable.translation"; |
| 16 | + public static final String $ENABLE_TRANSLATION_WD = "${" + ENABLE_TRANSLATION + ":" + DynamicServiceOrchestrationDefaults.ENABLE_TRANSLATION_DEFAULT + "}"; |
| 17 | + public static final String ENABLE_QOS = "enable.qos"; |
| 18 | + public static final String $ENABLE_QOS_WD = "${" + ENABLE_QOS + ":" + DynamicServiceOrchestrationDefaults.ENABLE_QOS_DEFAULT + "}"; |
| 19 | + public static final String ENABLE_INTERCLOUD = "enable.intercloud"; |
| 20 | + public static final String $ENABLE_INTERCLOUD_WD = "${" + ENABLE_INTERCLOUD + ":" + DynamicServiceOrchestrationDefaults.ENABLE_INTERCLOUD_DEFAULT + "}"; |
| 21 | + public static final String CLEANER_JOB_INTERVAL = "cleaner.job.interval"; |
| 22 | + public static final String $CLEANER_JOB_INTERVAL_WD = "${" + CLEANER_JOB_INTERVAL + ":" + DynamicServiceOrchestrationDefaults.CLEANER_JOB_INTERVAL_DEFAULT + "}"; |
| 23 | + public static final String ORCHESTRATION_HISTORY_MAX_AGE = "orchestration.history.max.age"; |
| 24 | + public static final String $ORCHESTRATION_HISTORY_MAX_AGE_WD = "${" + ORCHESTRATION_HISTORY_MAX_AGE + ":" + DynamicServiceOrchestrationDefaults.ORCHESTRATION_HISTORY_MAX_AGE_DEFAULT + "}"; |
| 25 | + public static final String PUSH_ORCHESTRATION_MAX_THREAD = "push.orchestration.max.thread"; |
| 26 | + public static final String $PUSH_ORCHESTRATION_MAX_THREAD_WD = "${" + PUSH_ORCHESTRATION_MAX_THREAD + ":" + DynamicServiceOrchestrationDefaults.PUSH_ORCHESTRATION_MAX_THREAD_DEFAULT + "}"; |
| 27 | + |
| 28 | + public static final String HTTP_API_BASE_PATH = "/serviceorchestration"; |
| 29 | + public static final String HTTP_API_MONITOR_PATH = HTTP_API_BASE_PATH + "/monitor"; |
| 30 | + public static final String HTTP_API_GENERAL_MANAGEMENT_PATH = HTTP_API_BASE_PATH + "/general/mgmt"; |
| 31 | + public static final String HTTP_API_ORCHESTRATION_PATH = HTTP_API_BASE_PATH + "/orchestration"; |
| 32 | + public static final String HTTP_API_ORCHESTRATION_MGMT_PREFIX = HTTP_API_ORCHESTRATION_PATH + "/mgmt"; |
| 33 | + public static final String HTTP_API_ORCHESTRATION_PUSH_MANAGEMENT_PATH = HTTP_API_ORCHESTRATION_MGMT_PREFIX + "/push"; |
| 34 | + public static final String HTTP_API_ORCHESTRATION_HISTORY_MANAGEMENT_PATH = HTTP_API_ORCHESTRATION_MGMT_PREFIX + "/history"; |
| 35 | + public static final String HTTP_API_ORCHESTRATION_LOCK_MANAGEMENT_PATH = HTTP_API_ORCHESTRATION_MGMT_PREFIX + "/lock"; |
| 36 | + |
| 37 | + public static final String MQTT_API_BASE_TOPIC_PREFIX = "arrowhead/serviceorchestration"; |
| 38 | + public static final String MQTT_API_MONITOR_BASE_TOPIC = MQTT_API_BASE_TOPIC_PREFIX + "/monitor/"; |
| 39 | + public static final String MQTT_API_GENERAL_MANAGEMENT_BASE_TOPIC = MQTT_API_BASE_TOPIC_PREFIX + "/general/management/"; |
| 40 | + |
| 41 | + public static final String VERSION_MONITOR = "1.0.0"; |
| 42 | + public static final String VERSION_GENERAL_MANAGEMENT = "1.0.0"; |
| 43 | + public static final String VERSION_ORCHESTRATION = "1.0.0"; |
| 44 | + public static final String VERSION_ORCHESTRATION_PUSH_MANAGEMENT = "1.0.0"; |
| 45 | + public static final String VERSION_ORCHESTRATION_LOCK_MANAGEMENT = "1.0.0"; |
| 46 | + public static final String VERSION_ORCHESTRATION_HISTORY_MANAGEMENT = "1.0.0"; |
| 47 | + |
| 48 | + public static final String METADATA_KEY_ORCHESTRATION_STRATEGY = "orchestration-strategy"; |
| 49 | + public static final String METADATA_VALUE_ORCHESTRATION_STRATEGY = "dynamic"; |
| 50 | + |
| 51 | + public static final String JOB_QUEUE_PUSH_ORCHESTRATION = "jobQueuePushOrchestration"; |
| 52 | + public static final String SERVICE_INSTANCE_MATCHMAKER = "serviceInstanceMatchmaker"; |
| 53 | + |
| 54 | + public static final Object SYNC_LOCK_SUBSCRIPTION = new Object(); |
| 55 | + public static final Object SYNC_LOCK_ORCH_LOCK = new Object(); |
| 56 | + |
| 57 | + // Quartz related |
| 58 | + public static final String CLEANER_TRIGGER = "dynamicOrchestrationCleanerTrigger"; |
| 59 | + public static final String CLEANER_JOB = "dynamicOrchestrationCleanerJob"; |
| 60 | + |
| 61 | + // Operation related |
| 62 | + |
| 63 | + public static final String HTTP_API_OP_PULL_PATH = "/pull"; |
| 64 | + public static final String HTTP_API_OP_PUSH_SUBSCRIBE_PATH = "/subscribe"; |
| 65 | + public static final String HTTP_PATH_PARAM_ID = "{id}"; |
| 66 | + public static final String HTTP_API_OP_PUSH_UNSUBSCRIBE_PATH = "/unsubscribe/" + HTTP_PATH_PARAM_ID; |
| 67 | + public static final String HTTP_API_OP_PUSH_UNSUBSCRIBE_BULK_PATH = "/unsubscribe"; |
| 68 | + public static final String HTTP_API_OP_PUSH_TRIGGER_PATH = "/trigger"; |
| 69 | + public static final String HTTP_API_OP_QUERY_PATH = "/query"; |
| 70 | + public static final String HTTP_API_OP_CREATE_PATH = "/create"; |
| 71 | + public static final String HTTP_PATH_PARAM_OWNER = "{owner}"; |
| 72 | + public static final String HTTP_API_OP_REMOVE_LOCK_PATH = "/remove/" + HTTP_PATH_PARAM_OWNER; |
| 73 | + |
| 74 | + public static final String ORCH_WARN_AUTO_MATCHMAKING = "auto_matchmaking"; |
| 75 | + public static final String ORCH_WARN_QOS_NOT_ENABLED = "qos_not_enabled"; |
| 76 | + public static final String ORCH_WARN_NOT_EXCLUSIVE = "not_exclusive"; |
| 77 | + public static final String ORCH_WARN_PART_TIME_EXCLUSIVITY = "part_time_exclusivity"; |
| 78 | + public static final String ORCH_WARN_INTER_CLOUD = "inter_cloud"; |
| 79 | + |
| 80 | + public static final String NOTIFY_KEY_ADDRESS = "address"; |
| 81 | + public static final String NOTIFY_KEY_PORT = "port"; |
| 82 | + public static final String NOTIFY_KEY_METHOD = "method"; |
| 83 | + public static final String NOTIFY_KEY_PATH = "path"; |
| 84 | + public static final String NOTIFY_KEY_TOPIC = "topic"; |
| 85 | + |
| 86 | + //================================================================================================= |
| 87 | + // assistant methods |
| 88 | + |
| 89 | + //------------------------------------------------------------------------------------------------- |
| 90 | + private DynamicServiceOrchestrationConstants() { |
| 91 | + throw new UnsupportedOperationException(); |
| 92 | + } |
| 93 | +} |
0 commit comments