com.isti.trinetwatch.server
Class S2CTA_impl

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.omg.CORBA.DynamicImplementation
          extended byorg.omg.CosEventComm._PushSupplierImplBase
              extended bycom.isti.trinetwatch.server.S2CTA_impl
All Implemented Interfaces:
org.omg.CORBA.Object, org.omg.CosEventComm.PushSupplier

class S2CTA_impl
extends org.omg.CosEventComm._PushSupplierImplBase

Class S2CTA_impl manages all requests sent to control agents.


Field Summary
 
Fields inherited from class org.omg.CosEventComm._PushSupplierImplBase
 
Constructor Summary
S2CTA_impl(Server servObj, org.omg.CosEventComm.PushConsumer ctaConsumer)
          Creates an object of S2CTA_impl
 
Method Summary
 void disconnect_push_supplier()
          Disconnect from the event channel.
 boolean sendRequest(java.lang.String stationName, java.lang.String msgManId, int newLevel)
          This method sends a request message over the CTRL_MSG event channel requesting the change of usage level for a given station.
 
Methods inherited from class org.omg.CosEventComm._PushSupplierImplBase
_ids, invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

S2CTA_impl

public S2CTA_impl(Server servObj,
                  org.omg.CosEventComm.PushConsumer ctaConsumer)
Creates an object of S2CTA_impl

Parameters:
servObj - A handle to the server object.
ctaConsumer - A handle to the CTRL_MSG channel to be used.
Method Detail

disconnect_push_supplier

public void disconnect_push_supplier()
Disconnect from the event channel.


sendRequest

public boolean sendRequest(java.lang.String stationName,
                           java.lang.String msgManId,
                           int newLevel)
This method sends a request message over the CTRL_MSG event channel requesting the change of usage level for a given station. The message format is: 'CTRL_MSG:SSSSS:ID:UU" where SSSSS is the station name being controled, ID is the id string of the message manager in the NSI, and UU is the new usage level requested for the station.

Parameters:
stationName - A string containing the name of the station whose level change is to be requested.
msgManId - A string containing the id of the cta message manager making the call.
newLevel - An integer representing the level to which the usage level is to be changed to.
Returns:
true if the method succeeds in sending a message to the CTA, false otherwise.