public class VirtualServiceRef
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED |
static int |
DEFAULT_MAX_CONNECTION |
static int |
DEFAULT_POWER |
boolean |
enabled |
int |
maxConnection |
java.lang.String |
name |
int |
power |
Constructor and Description |
---|
VirtualServiceRef() |
VirtualServiceRef(VirtualServiceRef o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this VirtualServiceRef.
|
static VirtualServiceRef |
fromString(java.lang.String s)
String representation of this VirtualServiceRef.
|
int |
getMaxConnection()
-
|
java.lang.String |
getName()
Fully qualified path to the service implementation.
|
int |
getPower()
-
|
boolean |
isEnabled()
Use this to easily enable or disable.
|
VirtualServiceRef |
makeCopy()
Creates and returns a deep copy of this VirtualServiceRef.
|
static VirtualServiceRef |
readFrom(java.io.InputStream is)
Read this VirtualServiceRef from an XML fragment.
|
void |
setEnabled(boolean enabled)
Use this to easily enable or disable.
|
void |
setMaxConnection(int maxConnection)
-
|
void |
setName(java.lang.String name)
Fully qualified path to the service implementation.
|
void |
setPower(int power)
-
|
java.lang.String |
toString()
String representation of this VirtualServiceRef.
|
VirtualServiceRef |
withEnabled(boolean enabled) |
VirtualServiceRef |
withEnabled(java.lang.Boolean enabled) |
VirtualServiceRef |
withMaxConnection(int maxConnection) |
VirtualServiceRef |
withMaxConnection(java.lang.Integer maxConnection) |
VirtualServiceRef |
withName(java.lang.String name) |
VirtualServiceRef |
withPower(int power) |
VirtualServiceRef |
withPower(java.lang.Integer power) |
void |
writeTo(java.io.OutputStream os)
Write this VirtualServiceRef as an XML fragment
|
public java.lang.String name
public boolean enabled
public static final boolean DEFAULT_ENABLED
public int power
public static final int DEFAULT_POWER
public int maxConnection
public static final int DEFAULT_MAX_CONNECTION
public VirtualServiceRef()
public VirtualServiceRef(VirtualServiceRef o)
public void setName(java.lang.String name)
public java.lang.String getName()
public VirtualServiceRef withName(java.lang.String name)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public VirtualServiceRef withEnabled(boolean enabled)
public VirtualServiceRef withEnabled(java.lang.Boolean enabled)
public void setPower(int power)
public int getPower()
public VirtualServiceRef withPower(int power)
public VirtualServiceRef withPower(java.lang.Integer power)
public void setMaxConnection(int maxConnection)
public int getMaxConnection()
public VirtualServiceRef withMaxConnection(int maxConnection)
public VirtualServiceRef withMaxConnection(java.lang.Integer maxConnection)
public VirtualServiceRef makeCopy()
public static VirtualServiceRef readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static VirtualServiceRef fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.