public class ServiceInstance extends Object implements Serializable
ServiceType
's
enumerated value, cast as a string.
The instanceType is, InstanceType
's
enumerated value, cast as a string.Constructor and Description |
---|
ServiceInstance()
Constructor.
|
ServiceInstance(String serviceType,
LanguagePath[] supportedLanguages,
String instanceType,
int instanceSize,
byte[] instance)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object value) |
byte[] |
getInstance()
Returns the instance.
|
int |
getInstanceSize()
Returns the size of the instance.
|
String |
getInstanceType()
Returns the type of instance.
|
String |
getServiceType()
Returns service type.
|
LanguagePath[] |
getSupportedLanguages()
Returns the supported language.
|
int |
hashCode() |
void |
setInstance(byte[] instance)
Sets the instance.
|
void |
setInstanceSize(int instanceSize)
Sets the size of the instance.
|
void |
setInstanceType(String instanceType)
Sets the type of instance.
|
void |
setServiceType(String serviceType)
Sets service type.
|
void |
setSupportedLanguages(LanguagePath[] supportedLangauges)
Sets supported language.
|
String |
toString() |
public ServiceInstance()
public ServiceInstance(String serviceType, LanguagePath[] supportedLanguages, String instanceType, int instanceSize, byte[] instance)
serviceType
- Type of the servicesupportedLanguages
- Supported languagesinstanceType
- Type of the instanceinstanceSize
- Size of the instanceinstance
- Instancepublic String getServiceType()
public void setServiceType(String serviceType)
serviceType
- Service typepublic LanguagePath[] getSupportedLanguages()
public void setSupportedLanguages(LanguagePath[] supportedLangauges)
supportedLangauges
- Supported languagespublic String getInstanceType()
public void setInstanceType(String instanceType)
instanceType
- Type of the instancepublic int getInstanceSize()
public void setInstanceSize(int instanceSize)
instanceSize
- Size of the instancepublic byte[] getInstance()
public void setInstance(byte[] instance)
instance
- Instance