public class CtaSimToS_provider
extends _PushSupplierImplBase
'CTRL_RESULT:SSSSS:ID:AGENT:COMMAND:ARGS'where SSSSS is the station name, ID is the id of the cta message manager in the NSI, AGENT is the name of the replying control agent, and COMMAND:ARGS is the result command and its return arguments. ARGS is optional.
Constructor and Description |
---|
CtaSimToS_provider(org.omg.CORBA.ORB orb,
com.ooc.CORBA.BOA boa,
PushConsumer sConsumer,
ControlAgentSim ctaObj)
Creates an object of CtaSimToS_provider.
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect_push_supplier()
Disconnect from the event channel.
|
void |
sendAckMessage(java.lang.String stationName,
java.lang.String msgManId,
int uLevel,
int timeoutLen)
Sends an ack message to the NSI server.
|
void |
sendDoneMessage(java.lang.String stationName,
java.lang.String msgManId)
Sends a done message to the NSI server.
|
void |
sendFailureMessage(java.lang.String stationName,
java.lang.String msgManId)
Sends failure message to the NSI server.
|
void |
sendInProgressMessage(java.lang.String stationName,
java.lang.String msgManId)
Sends in-progress message to the NSI server.
|
void |
sendTimeoutMessage(java.lang.String stationName,
java.lang.String msgManId)
Sends timeout message to the NSI server.
|
CtaSimToS_provider(org.omg.CORBA.ORB orb, com.ooc.CORBA.BOA boa, PushConsumer sConsumer, ControlAgentSim ctaObj)
orb
- A handle to the orb which controls the event channels.boa
- A handle to the boa being used.sConsumer
- A handle to the channel to be used.ctaObj
- A handle to the ControlAgentSim object.public void disconnect_push_supplier()
public void sendAckMessage(java.lang.String stationName, java.lang.String msgManId, int uLevel, int timeoutLen)
stationName
- A string holding the station name.msgManId
- A string containing the id of the NSI cta message manager.uLevel
- An int holding the requested usage level.timeoutLen
- An int representing the maximum length of time necessary
to complete the usage level change.public void sendDoneMessage(java.lang.String stationName, java.lang.String msgManId)
stationName
- A string holding the station name.msgManId
- A string containing the id of the NSI cta message manager.public void sendFailureMessage(java.lang.String stationName, java.lang.String msgManId)
stationName
- A string holding the station name.msgManId
- A string containing the id of the NSI cta message manager.public void sendTimeoutMessage(java.lang.String stationName, java.lang.String msgManId)
stationName
- A string holding the station name.msgManId
- A string containing the id of the NSI cta message manager.public void sendInProgressMessage(java.lang.String stationName, java.lang.String msgManId)
stationName
- A string holding the station name.msgManId
- A string containing the id of the NSI cta message manager.