public class ServiceOptions extends Object
Constructor and Description |
---|
ServiceOptions()
Default constructor
|
ServiceOptions(JsonObject options)
Constructor from JSON
|
ServiceOptions(ServiceOptions options)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Get service address
|
List<CheckOptions> |
getCheckListOptions()
Get checks options of service
|
CheckOptions |
getCheckOptions()
Get check options of service
|
String |
getId()
Get the ID of session
|
Map<String,String> |
getMeta()
Get arbitrary KV metadata linked to the service instance.
|
String |
getName()
Get service name
|
int |
getPort()
Get service port
|
List<String> |
getTags()
Get list of tags associated with service
|
ServiceOptions |
setAddress(String address)
Set service address
|
ServiceOptions |
setCheckListOptions(List<CheckOptions> checkListOptions)
Set checks options of service
|
ServiceOptions |
setCheckOptions(CheckOptions checkOptions)
Set check options of service
|
ServiceOptions |
setId(String id)
Set the ID of session
|
ServiceOptions |
setMeta(Map<String,String> meta)
Specifies arbitrary KV metadata linked to the service instance.
|
ServiceOptions |
setName(String name)
Set service name
|
ServiceOptions |
setPort(int port)
Set service port
|
ServiceOptions |
setTags(List<String> tags)
Set list of tags associated with service
|
JsonObject |
toJson()
Convert to JSON
|
public ServiceOptions()
public ServiceOptions(ServiceOptions options)
options
- the one to copypublic ServiceOptions(JsonObject options)
options
- the JSONpublic JsonObject toJson()
public String getId()
public ServiceOptions setId(String id)
id
- the ID of sessionpublic String getName()
public ServiceOptions setName(String name)
name
- service namepublic List<String> getTags()
public ServiceOptions setTags(List<String> tags)
tags
- list of tagspublic String getAddress()
public ServiceOptions setAddress(String address)
address
- service addresspublic Map<String,String> getMeta()
public ServiceOptions setMeta(Map<String,String> meta)
meta
- arbitrary KV metadatapublic int getPort()
public ServiceOptions setPort(int port)
port
- service portpublic CheckOptions getCheckOptions()
public ServiceOptions setCheckOptions(CheckOptions checkOptions)
checkOptions
- check optionspublic List<CheckOptions> getCheckListOptions()
public ServiceOptions setCheckListOptions(List<CheckOptions> checkListOptions)
checkListOptions
- check optionsCopyright © 2024 Eclipse. All rights reserved.