Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
  * JBoss, Home of Professional Open Source
  * Copyright 2005, JBoss Inc., and individual contributors as indicated
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
 
 package org.jboss.remoting.network;
 
NetworkNotification is a JMX Notification that is sent when changes occur to the network layout as tracked by a NetworkRegistryMBean.

Author(s):
Jeff Haynie
Version:
$Revision: 566 $
 
 public class NetworkNotification extends Notification
 {
    static final long serialVersionUID = 987487760197074685L;
 
    public static final String SERVER_ADDED = "jboss.network.server.added";
    public static final String SERVER_UPDATED = "jboss.network.server.updated";
    public static final String SERVER_REMOVED = "jboss.network.server.removed";
    public static final String DOMAIN_CHANGED = "jboss.network.domain.changed";
 
    private final Identity identity;
    private final ServerInvokerMetadata serverInvokers[];
    private final InvokerLocator locators[];
 
 
    public NetworkNotification(ObjectName sourceString typeIdentity identityServerInvokerMetadata serverInvokers[])
    {
       super(typesource, System.currentTimeMillis());
       this. = identity;
       this. = serverInvokers;
       this. = null;
    }
 
    public NetworkNotification(ObjectName sourceString typeIdentity identityInvokerLocator locators[])
    {
       super(typesource, System.currentTimeMillis());
       this. = identity;
       this. = null;
       this. = locators;
    }

   
return the identity of the notification

Returns:
 
    public final Identity getIdentity()
    {
       return ;
    }

   
return the locators affected by the notification

Returns:
 
    public final InvokerLocator[] getLocator()
    {
       if( != null)
       {
          return ;
       }
       else
       {
          InvokerLocator[] locators = new InvokerLocator[.];
          for(int x = 0; x < .x++)
          {
             locators[x] = [x].getInvokerLocator();
          }
          return locators;
       }
    }

   
Gets all the server invoker metadata for the servers running on specified server. Will include locator and supported subsystems for that locator.

Returns:
   {
      return ;
   }
New to GrepCode? Check out our FAQ X