Package tcg.syscontrol.cos

Examples of tcg.syscontrol.cos.ICosMonitoredThread


   
     //update the active reference
     logger_.trace("Changing the active reference...");

     //get the associated datapoint server from peer
     ICosMonitoredThread serverRef = null;
     try
     {
       serverRef = peer.reference.cosGetCorbaServer(uniqueKey);
       peer.errorCounter = 0;
     }
View Full Code Here


  }
 
  private ICosMonitoredThread get_active_corba_server(CorbaServerStruct server)
  {
    //try to use local reference if the local corba server is in CONTROL
    ICosMonitoredThread serverRef = null;
    if (server.operationMode == CosOperationModeEnum.OperControl
        && server.reference != null)
    {
      serverRef = server.reference;
      //validate it
      try
      {
        serverRef.cosPollControl();
      }
      catch (Exception ex)
      {
        //ignore. just reset the reference
        logger_.trace("Can not poll control local corba server.");
        serverRef = null;
      }
    }
   
    //if the local server is not suitable, try to get from peers. always use the first one found
    if (serverRef == null)
    {   
      Iterator<PeerManagerStruct> it = activePeers_.values().iterator();
      while(it.hasNext() && serverRef == null)
      {
        //precautions
        if (it.next().reference == null)
          continue;
        //get from peer and validate it
        try
        {
          serverRef = it.next().reference.cosGetCorbaServer(server.key);
          if (serverRef != null)
          {
            serverRef.cosPollControl();
          }
          it.next().errorCounter = 0;
        }
        catch(CosUnknownProcessException ue)
        {
View Full Code Here

     
    //build the corba server key
    String key = STR_DATAPOINT_SERVER.value + "-" + location;
   
    //try to get from the primary process manager
    ICosMonitoredThread  thread = null;
    ICosDataPointServer dpServer = null;
    if (instance.mgrRef1_ != null)
    {
      try
      {
View Full Code Here

    {
      instance.get_processmanager_reference();
    }
     
    //try to get from the primary process manager
    ICosMonitoredThread  thread = null;
    ICosPlanServer planServer = null;
    if (instance.mgrRef1_ != null)
    {
      try
      {
View Full Code Here

TOP

Related Classes of tcg.syscontrol.cos.ICosMonitoredThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.