Examples of AdminContext


Examples of com.sun.enterprise.admin.AdminContext

     */
    public String[] getTargets() throws MBeanConfigException{
        try {
            java.util.ArrayList targetList = new java.util.ArrayList();
            final MBeanServer mbs = MBeanServerFactory.getMBeanServer();
            final AdminContext ac = MBeanRegistryFactory.getAdminContext();
            final MBeanRegistry mr =
                    MBeanRegistryFactory.getAdminMBeanRegistry();
            final String dn = ac.getDomainName();
            final String servers = ServerTags.SERVERS;
            final String server = ServerTags.SERVER;
            final String cluster = ServerTags.CLUSTERS;
            final String[] locations = new String[]{dn};
            ObjectName serversON = mr.getMbeanObjectName(servers, locations);
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

            sLogger.log(Level.WARNING, "core.admin_service_default_config",
                    type);
        }
        AdminService as = instantiateAdminService(type);
        as.setContext(sc);
        AdminContext ac = sc.getPluggableFeatureFactory().getAdminContext();
        MBeanRegistryFactory.setAdminExtensionFeature(sc.getPluggableFeatureFactory().getAdminExtensionFeature());
        vef = sc.getPluggableFeatureFactory().getValidationExtensionFeature();
        lef = sc.getPluggableFeatureFactory().getLoggerExtensionFeature();
        ref = sc.getPluggableFeatureFactory().getRestartExtensionFeature();
        ruef = sc.getPluggableFeatureFactory().getRUExtensionFeature();
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

        EndPoint[] ePoints  = null;
        ConfigContext ctx   = null;

       
        if ( AdminService.getAdminService() != null ) {
            AdminContext aCtx=AdminService.getAdminService().getAdminContext();
            ctx = aCtx.getAdminConfigContext();
        } else {
            ctx = ApplicationServer.getServerContext().getConfigContext();
        }
       
        if ( isCluster(t, ctx) ) { // cluster destination
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

                           Object[] returnValues = (Object[])mbs.invoke(
                                       new ObjectName("com.sun.appserv:name=dotted-name-get-set,type=dotted-name-support"),
                                       "dottedNameSet",
                                       new Object[] {new String[] {cfg.getName() + ".availability-service.converged-load-balancer.config-file=" + configFileNewValue}},
                                       types);
                           AdminContext _adminContext = AdminService.getAdminService().getAdminContext();
                           String instanceName = _adminContext.getServerName();
                           String xpathCLB = "/domain/configs/config[@name='" + cfg.getName() + "']/availability-service/converged-load-balancer";
                           ConfigUpdate cfgUpdate = ConfigChangeFactory.createConfigUpdate(xpathCLB,
                                    "config-file", configFileOldValue, configFileNewValue);
                           ArrayList cfgList = new ArrayList<ConfigChange>();
                           cfgList.add(cfgUpdate);         
View Full Code Here

Examples of com.tll.client.AdminContext

   * Constructor
   */
  public IspMain() {
    super();

    final AdminContext ac = SmbizAdmin.getAdminContextCmd().getAdminContext();
    assert ac != null;
    final ModelKey userAccountRef = ac.getUserAccount().getKey();
    assert userAccountRef != null && userAccountRef.isSet();
    addWidget(links);
  }
View Full Code Here

Examples of com.tll.client.AdminContext

    @Override
    public void onOptionEvent(OptionEvent event) {
      final String optionText = event.getOptionText();
      if(event.getOptionEventType() == OptionEvent.EventType.SELECTED) {
        final AdminContext ac = SmbizAdmin.getAdminContextCmd().getAdminContext();
        final IViewInitializer vi =
          OpsManager.resolveViewInitializer(optionText, ac.getUser(), ac.getAccount());
        if(vi == null) {
          Window.alert("The view: '" + optionText + "' is currently not implemented.");
          return;
        }
        ViewManager.get().dispatch(new ShowViewRequest(vi));
View Full Code Here

Examples of com.tll.server.AdminContext

          throw new ServletException("Unable to obtain the persist context");
        }
        final IUserService userService = pc.getEntityServiceFactory().instance(IUserService.class);
        final User user = (User) userService.loadUserByUsername(appContext.getDfltUserEmail());
        log.debug("Creating mock admin context from default user email specified in config..");
        final AdminContext ac = new AdminContext();
        ac.setUser(user);
        session.setAttribute(AdminContext.KEY, ac);
        log.info("Server-side admin context created and stored in the servlet context");
      }
    }
    finally {
View Full Code Here

Examples of com.tll.server.AdminContext

    // create an AdminContext for this servlet session
    log.debug("Creating admin context from acegi security context..");
    final User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    assert user != null;
    final AdminContext ac = new AdminContext();
    ac.setUser(user);
    request.getSession(false).setAttribute(AdminContext.KEY, ac);
  }
View Full Code Here

Examples of org.w3c.jigsaw.admin.AdminContext

      TreeListener tl = new TreeListener(editor);
      ServerBrowser sb = null;
      Scrollbar sv = new Scrollbar(Scrollbar.VERTICAL);
      Scrollbar sh = new Scrollbar(Scrollbar.HORIZONTAL);
      try {
        AdminContext ac = new AdminContext(new URL(baseURL));
        sb = new ServerBrowser(ac, tl);
        sb.setVerticalScrollbar(sv);
        sb.setHorizontalScrollbar(sh);
        browser.add("Center", sb);
        browser.add("East", sv);
View Full Code Here

Examples of org.w3c.jigsaw.admin.AdminContext

    protected void setAdminURL(URL adminurl) {
  try {
      setCursor(Cursor.WAIT_CURSOR);
      frame.invalidate();
      this.removeAll();
      this.admin = new AdminContext(adminurl);
      initialize();
      build();
      RemoteResourceWrapper rrw = serverList.getModel().
    getServer(ServerListModel.ADMIN_SERVER_NAME);
      serverSelected(ServerListModel.ADMIN_SERVER_NAME, rrw);
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.