1. /*
  2. * @(#)BadServerIdHandler.java 1.10 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. /*
  8. * @(#)BadServerIdHandler.java 1.10 04/02/22
  9. *
  10. * Copyright 1993-1997 Sun Microsystems, Inc. 901 San Antonio Road,
  11. * Palo Alto, California, 94303, U.S.A. All Rights Reserved.
  12. *
  13. * This software is the confidential and proprietary information of Sun
  14. * Microsystems, Inc. ("Confidential Information"). You shall not
  15. * disclose such Confidential Information and shall use it only in
  16. * accordance with the terms of the license agreement you entered into
  17. * with Sun.
  18. *
  19. * CopyrightVersion 1.2
  20. *
  21. */
  22. package com.sun.corba.se.internal.POA;
  23. import com.sun.corba.se.internal.ior.ObjectKey;
  24. /**
  25. * The bad server id handler is used to locate persistent objects.
  26. * The Locator object registers the BadServerIdHandler with the ORB
  27. * and when requests for persistent objects for servers (other than
  28. * itself) comes, it throws a ForwardException with the IOR pointing
  29. * to the active server.
  30. */
  31. public interface BadServerIdHandler
  32. {
  33. void handle(ObjectKey objectKey)
  34. throws ForwardException;
  35. }