-
Notifications
You must be signed in to change notification settings - Fork 379
/
Config.java
56 lines (38 loc) · 2.66 KB
/
Config.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package io.openems.edge.controller.api.backend;
import java.net.Proxy;
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.AttributeType;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
import io.openems.common.channel.PersistencePriority;
@ObjectClassDefinition(//
name = "Controller Api Backend", //
description = "This controller connects to OpenEMS Backend")
@interface Config {
@AttributeDefinition(name = "Component-ID", description = "Unique ID of this Component")
String id() default "ctrlBackend0";
@AttributeDefinition(name = "Alias", description = "Human-readable name of this Component; defaults to Component-ID")
String alias() default "";
@AttributeDefinition(name = "Is enabled?", description = "Is this Component enabled?")
boolean enabled() default true;
@AttributeDefinition(name = "Apikey", description = "Apikey for authentication at OpenEMS Backend.", type = AttributeType.PASSWORD)
String apikey();
@AttributeDefinition(name = "Uri", description = "The connection Uri to OpenEMS Backend.")
String uri() default "";
@AttributeDefinition(name = "Proxy Address", description = "The IP address or hostname of the proxy server.")
String proxyAddress() default "";
@AttributeDefinition(name = "Proxy Port", description = "The port of the proxy server.")
int proxyPort() default 0;
@AttributeDefinition(name = "Proxy Type", description = "The type of the proxy server. (e.g. http)")
Proxy.Type proxyType() default Proxy.Type.HTTP;
@AttributeDefinition(name = "Api-Timeout", description = "Sets the timeout in seconds for updates on Channels set by this Api.")
int apiTimeout() default 60;
@AttributeDefinition(name = "Persistence Priority", description = "Send only Channels with a Persistence Priority greater-or-equals this on every Cycle.")
PersistencePriority persistencePriority() default PersistencePriority.HIGH;
@AttributeDefinition(name = "Aggregated values Persistence Priority", description = "Send only Channels as aggregated values with a Persistence Priority greater-or-equals this.")
PersistencePriority aggregationPriority() default PersistencePriority.LOW;
@AttributeDefinition(name = "Resend values Persistence Priority", description = "Resend only Channels with a Persistence Priority greater-or-equals this. Should match with the persistence priority configured in your timedata.")
PersistencePriority resendPriority() default PersistencePriority.HIGH;
@AttributeDefinition(name = "Debug Mode", description = "Activates the debug mode")
boolean debugMode() default false;
String webconsole_configurationFactory_nameHint() default "Controller Api Backend [{id}]";
}