|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.api.SSR
public class SSR
This class represents a "Sunrise Service Request (SSR)" which fetches arbitrary data from Sunrise.
| Constructor Summary | |
|---|---|
SSR()
|
|
| Method Summary | |
|---|---|
void |
addParam(byte[] value)
Add a byte array parameter to the message. |
void |
addParam(double value)
Add a double parameter to the message. |
void |
addParam(double[] value)
Add a double array parameter to the message. |
void |
addParam(int value)
Add an integer parameter to the message. |
void |
addParam(int[] value)
Add a int array parameter to the message. |
void |
addParam(ISerializableType value)
Add a generic parameter to the message. |
void |
addParam(String value)
Add a string parameter to the message. |
Message |
await()
Blocks the calling thread until the SSR is completed. |
Message |
await(int timeout,
TimeUnit timeUnit)
Blocks the calling thread until the SSR is completed or the timeout is reached. |
int |
getChecksum()
Returns the checksum for the segment. |
String |
getComponentType()
Gets the type of this component. |
String |
getComponentVersion()
Gets the version of this component. |
String |
getErrorDevText()
Gets the unlocalized development text of the error message. |
String |
getErrorKxrId()
Gets the kxr ID for the error message. |
String |
getErrorKxrModule()
Gets the kxr module name for the error message. |
SSRExecutionFailureReason |
getErrorReason()
Gets the reason of the error which happened during SSR execution. |
long |
getId()
Gets the unique id of this SSR. |
Message |
getResponseMessage()
Gets the response message of this SSR. |
boolean |
hasCompletedWithError()
Indicates whether the execution of the SSR exited with an exception. |
boolean |
hasSameDataAs(Object obj)
|
boolean |
isCompleted()
Checks whether this SSR has completed its request. |
boolean |
isExpired()
Determines if this SSR was sent more that default SSR timeout (usually 5 seconds) ago. |
Iterator<ISerializableType> |
iterator()
|
void |
setCompleted(Message responseMessage)
Marks this SSR as completed. |
void |
setComponentVersion(int majorVersion,
int minorVersion)
Sets the version of the SSR. |
void |
setId(long id)
Sets the id for this SSR. |
void |
setRequestType(String type)
Sets the component type of this SSR. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SSR()
| Method Detail |
|---|
public void setId(long id)
id - The id.public long getId()
public void setRequestType(String type)
type - The type of the SSR.public String getComponentType()
getComponentType in interface ISegmentpublic int getChecksum()
getChecksum in interface ISegmentpublic String getComponentVersion()
getComponentVersion in interface ISegment
public void setComponentVersion(int majorVersion,
int minorVersion)
majorVersion - the major version to setminorVersion - the minor version to setpublic Message await()
public Message await(int timeout,
TimeUnit timeUnit)
timeout - the timeout for waiting for a SSR response (in seconds)timeUnit - the unit for the timeout.
public Message getResponseMessage()
public boolean isCompleted()
public void setCompleted(Message responseMessage)
responseMessage - The message containing the response.public Iterator<ISerializableType> iterator()
iterator in interface Iterable<ISerializableType>public void addParam(double value)
value - The value of the parameter.public void addParam(int value)
value - The value of the parameter.public void addParam(double[] value)
value - The value of the parameter.public void addParam(int[] value)
value - The value of the parameter.public void addParam(byte[] value)
value - The value of the parameter.public void addParam(String value)
value - The value of the parameter.public void addParam(ISerializableType value)
value - The value of the parameter.public String toString()
toString in class Objectpublic boolean hasSameDataAs(Object obj)
hasSameDataAs in interface com.kuka.common.IDataEquatablepublic SSRExecutionFailureReason getErrorReason()
null, if the SSR execution has finished without errors or if the execution hasn't completed
yetpublic String getErrorKxrModule()
If the execution of the SSR fails, the kxr module name specifies the kxr file which has to be used to localize the error message.
null, if the SSR execution has finished without errors or if the execution hasn't completed
yetpublic String getErrorKxrId()
If the execution of the SSR fails, the kxr ID specifies the key from the kxr module which has to be used to localize the error message.
null, if the SSR execution has finished without errors or if the execution hasn't completed
yetpublic String getErrorDevText()
If the execution if the SSR fails, the internal development text can be used to specify the error reason without any localization.
null, if the SSR execution has finished without errors or if the execution hasn't completed
yetpublic boolean hasCompletedWithError()
true, if the SSR execution was erroneousfalse, if the SSR was executed successfully or hasn't completed yetpublic boolean isExpired()
if true is returned by the method there is no guarantee that the SSR is already evicted from request
service.
true if request was sent and is expired and can be evicted from request service. Independently
whether SSR got a response or not. If somebody is currently actively waiting for a response, (using
await() method, or SSR was sent synchronously, method will return false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||