BadServerIdHandler.java revision 608:7e06bf1dcb09
1189251Ssam/*
2189251Ssam * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
3189251Ssam * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4189251Ssam *
5252726Srpaulo * This code is free software; you can redistribute it and/or modify it
6252726Srpaulo * under the terms of the GNU General Public License version 2 only, as
7189251Ssam * published by the Free Software Foundation.  Oracle designates this
8189251Ssam * particular file as subject to the "Classpath" exception as provided
9189251Ssam * by Oracle in the LICENSE file that accompanied this code.
10189251Ssam *
11189251Ssam * This code is distributed in the hope that it will be useful, but WITHOUT
12189251Ssam * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13189251Ssam * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14189251Ssam * version 2 for more details (a copy is included in the LICENSE file that
15189251Ssam * accompanied this code).
16189251Ssam *
17189251Ssam * You should have received a copy of the GNU General Public License version
18189251Ssam * 2 along with this work; if not, write to the Free Software Foundation,
19189251Ssam * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20281806Srpaulo *
21189251Ssam * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22189251Ssam * or visit www.oracle.com if you need additional information or have any
23189251Ssam * questions.
24281806Srpaulo */
25281806Srpaulo
26281806Srpaulopackage com.sun.corba.se.impl.oa.poa;
27281806Srpaulo
28281806Srpauloimport com.sun.corba.se.spi.ior.ObjectKey;
29281806Srpaulo
30189251Ssam/**
31189251Ssam * The bad server id handler is used to locate persistent objects.
32189251Ssam * The Locator object registers the BadServerIdHandler with the ORB
33189251Ssam * and when requests for persistent objects for servers (other than
34189251Ssam * itself) comes, it throws a ForwardException with the IOR pointing
35189251Ssam * to the active server.
36189251Ssam */
37189251Ssampublic interface BadServerIdHandler
38189251Ssam{
39189251Ssam    void handle(ObjectKey objectKey) ;
40189251Ssam}
41189251Ssam