# Service Executor

### 1. Methods

#### **1.1 `getService(String)`**

```java
Service getService(String serviceId);
```

**Description:**\
This method is used to obtain information about a service.

#### **1.2 `getServices()`**

```java
List<Service> getServices();
```

**Description:**\
This method is used to obtain a list of service information.

#### **1.3 `getServices(String)`**

```java
List<Service> getServices(String templateName);
```

**Description:**\
This method is used to obtain a list of service information for a specific template.

#### **1.4 `queueNewService(String)`**

```java
void queueNewService(String templateName);
```

**Description:**\
This method is used to start a new service based on the template.

#### **1.5 `stopRunningService(String)`**

```java
void stopRunningService(String serviceId);
```

**Description:**\
This method is used to stop a service.

#### **1.6 `stopServices(String)`**

```java
void stopServices(String templateName);
```

**Description:**\
This method is used to stop all services of a template.

#### **1.7 `setServiceInUse(String)`**

```java
void setServiceInUse(String serviceId);
```

**Description:**\
This method is used to set a service to the IN\_USE state, so that a new one can be automatically started if necessary.
