|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.protocol.DataObject
com.genesyslab.platform.commons.protocol.Message
com.genesyslab.platform.routing.protocol.routingserver.requests.RequestLoadStrategy
public abstract class RequestLoadStrategy
This request allows you to load a compiled strategy or schedule in URS, provide
a name for it, and optionally associate the strategy with a routing point.
If you use this request to associate a strategy with a routing point, all interactions
arriving on the routing point will be processed with that strategy.
Required parameters:
Name | Description |
---|---|
RoutingPoint | The routing point to be associated with the strategy. |
TServer | The T-Server to be used by the strategy. |
Path | The path to the file containing the strategy. |
Name | Description |
---|---|
EventInfo |
Contains information about URS's handling of your request. |
EventError |
Indicates that the request was unknown to URS, or that some parameters were missing or invalid. |
RequestLoadStrategy requestLoadStrategy =
RequestLoadStrategy.create();
requestLoadStrategy.setTServer("TheT-Server");
requestLoadStrategy.setRoutingPoint("TheRoutingPoint");
requestLoadStrategy.setPath("<Path to the strategy>");
Message response = protocol.request(requestLoadStrategy);
Field Summary | |
---|---|
static int |
ID
|
static java.lang.String |
NAME
|
Method Summary | |
---|---|
static RequestLoadStrategy |
create()
Creates instance of RequestLoadStrategy with no parameters set. |
static RequestLoadStrategy |
create(java.lang.String tServer,
java.lang.String routingPoint,
java.lang.String path,
java.lang.String strategy)
Creates instance of RequestLoadStrategy with all parameters set. |
abstract java.lang.String |
getPath()
The path to the routing strategy that is to be loaded. |
abstract java.lang.Integer |
getReferenceId()
The reference ID that connects a response to a request; if set to 0, it means that the ReferenceId should be assigned by ReferenceBuilder. |
abstract java.lang.String |
getRoutingPoint()
The routing point that is to be loaded or released. |
abstract java.lang.String |
getStrategy()
The routing strategy that is to be executed. |
abstract java.lang.String |
getTServer()
The T-Server to be used by the strategy associated with this request. |
abstract void |
setPath(java.lang.String path)
The path to the routing strategy that is to be loaded. |
abstract void |
setReferenceId(int referenceId)
The reference ID that connects a response to a request; if set to 0, it means that the ReferenceId should be assigned by ReferenceBuilder. |
abstract void |
setReferenceId(java.lang.Integer referenceId)
The reference ID that connects a response to a request; if set to 0, it means that the ReferenceId should be assigned by ReferenceBuilder. |
abstract void |
setRoutingPoint(java.lang.String routingPoint)
The routing point that is to be loaded or released. |
abstract void |
setStrategy(java.lang.String strategy)
The routing strategy that is to be executed. |
abstract void |
setTServer(java.lang.String tServer)
The T-Server to be used by the strategy associated with this request. |
Methods inherited from class com.genesyslab.platform.commons.protocol.Message |
---|
cloneMessage, getEndpoint, getMessageAttribute, getProtocolDescription, getProtocolId, messageId, messageName, setProtocolDescription |
Methods inherited from class com.genesyslab.platform.commons.protocol.DataObject |
---|
equals, hashCode, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ID
public static final java.lang.String NAME
Method Detail |
---|
public static RequestLoadStrategy create()
public static RequestLoadStrategy create(java.lang.String tServer, java.lang.String routingPoint, java.lang.String path, java.lang.String strategy)
tServer
- The T-Server to be used by the strategy associated with this request.routingPoint
- path
- strategy
- The routing strategy that is to be executed.
public abstract java.lang.Integer getReferenceId()
public abstract void setReferenceId(java.lang.Integer referenceId)
public abstract void setReferenceId(int referenceId)
public abstract java.lang.String getTServer()
public abstract void setTServer(java.lang.String tServer)
public abstract java.lang.String getRoutingPoint()
public abstract void setRoutingPoint(java.lang.String routingPoint)
public abstract java.lang.String getPath()
public abstract void setPath(java.lang.String path)
public abstract java.lang.String getStrategy()
public abstract void setStrategy(java.lang.String strategy)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |