Examples of ObjStore


Examples of com.sun.messaging.jmq.admin.objstore.ObjStore

    }

    private void doRefreshObjStore(ConsoleObj selObj) {

  ObjStore os = null;
    ConsoleObj cObj = selObj;

  if (selObj instanceof ObjStoreCObj) {
      os =((ObjStoreCObj)selObj).getObjStore();
      cObj = selObj;     
  } else if (selObj instanceof ObjStoreDestListCObj) {
      os = ((ObjStoreDestListCObj)selObj).getObjStore();
      cObj = (ConsoleObj)selObj.getParent();     
  } else if (selObj instanceof ObjStoreConFactoryListCObj) {
      os = ((ObjStoreConFactoryListCObj)selObj).getObjStore();
      cObj = (ConsoleObj)selObj.getParent();     
  }

  if (!os.isOpen()) {
      JOptionPane.showOptionDialog(app.getFrame(),
      acr.getString(acr.E_OBJSTORE_NOT_CONNECTED,
              selObj.toString()),
      acr.getString(acr.I_OBJSTORE_REFRESH) + ": " +
                            acr.getString(acr.I_ERROR_CODE,
                              AdminConsoleResources.E_OBJSTORE_NOT_CONNECTED),
                        JOptionPane.YES_NO_OPTION,
                        JOptionPane.ERROR_MESSAGE, null, close, close[0]);
      return;
  }

  boolean success = finishDoConnectObjStore(cObj, os);

  if (success) {
      // Update menu items, buttons.
      controller.setActions(selObj);

      // XXX This causes selection in inspector to go away.
      app.getInspector().refresh();

      if (selObj instanceof ObjStoreCObj) {
          app.getStatusArea().appendText(acr.getString(acr.S_OS_REFRESH,
                      os.getID()));
      } else if (selObj instanceof ObjStoreDestListCObj) {
          app.getStatusArea().appendText(acr.getString(acr.S_OS_DESTLIST_REFRESH,
                      os.getID()));
      } else if (selObj instanceof ObjStoreConFactoryListCObj) {
          app.getStatusArea().appendText(acr.getString(acr.S_OS_CFLIST_REFRESH,
                      os.getID()));
      }
  }
    }
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStore

    public Object getValueAtCollumn(ConsoleObj conObj, int col)  {
  if (col == 0) {
      return (conObj);
  } else if (col == 1) {
      if (conObj instanceof ObjStoreCObj) {
          ObjStore os = ((ObjStoreCObj)conObj).getObjStore();
    if (os.isOpen())
            return acr.getString(acr.I_CONNECTED);
    else
            return acr.getString(acr.I_DISCONNECTED);
      }
  }
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStore

    return;
      }
  }

  ObjAdminEvent oae = new ObjAdminEvent(this, ObjAdminEvent.UPDATE_CONN_FACTORY);
  ObjStore os = osConFactoryCObj.getObjStore();

  /*
   * Set values in the event.
   */
  oae.setLookupName(lookupName);
 
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStore

    public void show()  { }
    public void show(ObjStoreConFactoryCObj osConFactoryCObj)  {

  this.osConFactoryCObj = osConFactoryCObj;
  ObjStore os = osConFactoryCObj.getObjStore();
  //
  // Set fields to current object values.
  //
  lookupLabel.setText(osConFactoryCObj.getLookupName());
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStore

      }
  }

 
  ObjAdminEvent oae = new ObjAdminEvent(this, ObjAdminEvent.ADD_DESTINATION);
  ObjStore os = osCObj.getObjStore();

  /*
   * Set values in the event.
   */
  oae.setLookupName(lookupName);
 
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStore

    return;
      }
  }

  ObjAdminEvent oae = new ObjAdminEvent(this, ObjAdminEvent.ADD_CONN_FACTORY);
  ObjStore os = osCObj.getObjStore();

  /*
   * Set values in the event.
   */
  oae.setLookupName(lookupName);
 
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStore

  Enumeration e = objStores.elements();
  ObjStoreListProperties  oslProps = new ObjStoreListProperties();

  while (e.hasMoreElements()) {

      ObjStore os = (ObjStore)e.nextElement();
      ObjStoreAttrs osa = os.getObjStoreAttrs();
      osa.prepareToTerminate();

      oslProps.addObjStoreAttrs(osa);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.