Examples of IiopInfo


Examples of com.sun.enterprise.ee.cms.ext.IiopInfo

    private void addIIOPEndPoints(final String instanceName,
                                  final ConfigContext configContext)
            throws ConfigException, GMSException
    {

      IiopInfo iiopInfo;
      final Map<String, IiopListener[]> lsnrMap ;
      lsnrMap = getResolvedIiopListenersInCluster( true, configContext, instanceName );

        if(!lsnrMap.isEmpty()){

            for(String instance : lsnrMap.keySet()){
                final List<IiopInfo> infoList = new ArrayList<IiopInfo>();
                final IiopListener[] listeners = lsnrMap.get(instance);
                final Server server= ServerHelper.getServerByName(configContext, instance);
                for(IiopListener listener : listeners){
                    iiopInfo = getIiopInfo( listener);
                    iiopInfo.setWeight( Integer.parseInt( server.getLbWeight()));
        try {
            String nodeAgentHostName = getNodeAgentHostName(configContext, server);
      iiopInfo.setHostName(nodeAgentHostName);

        } catch (ConfigException configEx) {
            logger.log(Level.WARNING, configEx.getMessage());
        }
        infoList.add(iiopInfo);
View Full Code Here

Examples of com.sun.enterprise.ee.cms.ext.IiopInfo

     * Fetch the AdminListener for the given server instance. The server
     * instance must exist or an exception is thrown.
     */
    private IiopInfo getIiopInfo(final IiopListener il )
    {
      final IiopInfo info = new IiopInfo();
      final String address = il.getAddress();
      final String port = il.getPort();
        final String id = il.getId();

      info.setAddress(address);
      info.setPort(port);
        info.setID( id );
      return info;
    }
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.