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

com.sitewhere.spi.microservice.MicroserviceIdentifier Maven / Gradle / Ivy

There is a newer version: 3.0.13
Show newest version
/*
 * Copyright (c) SiteWhere, LLC. All rights reserved. http://www.sitewhere.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package com.sitewhere.spi.microservice;

/**
 * Provides a list of known identifiers for microservices.
 */
public enum MicroserviceIdentifier implements IFunctionIdentifier {

    AssetManagement("asset-management"),

    BatchOperations("batch-operations"),

    CommandDelivery("command-delivery"),

    DeviceManagement("device-management"),

    DeviceRegistration("device-registration"),

    EventManagement("event-management"),

    EventSearch("event-search"),

    EventSources("event-sources"),

    InboundProcessing("inbound-processing"),

    InstanceManagement("instance-management"),

    LabelGeneration("label-generation"),

    OutboundConnectors("outbound-connectors"),

    DeviceState("device-state"),

    RuleProcessing("rule-processing"),

    ScheduleManagement("schedule-management"),

    StreamingMedia("streaming-media"),

    WebRest("web-rest");

    /** Path */
    private String path;

    private MicroserviceIdentifier(String path) {
	this.path = path;
    }

    public static MicroserviceIdentifier getByPath(String path) {
	for (MicroserviceIdentifier value : MicroserviceIdentifier.values()) {
	    if (value.getPath().equals(path)) {
		return value;
	    }
	}
	return null;
    }

    /*
     * @see com.sitewhere.spi.microservice.IFunctionIdentifier#getPath()
     */
    @Override
    public String getPath() {
	return path;
    }

    /*
     * @see com.sitewhere.spi.microservice.IFunctionIdentifier#getShortName()
     */
    @Override
    public String getShortName() {
	return name();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy