1058N/A/*
2362N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
1058N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1058N/A *
1058N/A * This code is free software; you can redistribute it and/or modify it
1058N/A * under the terms of the GNU General Public License version 2 only, as
1058N/A * published by the Free Software Foundation.
1058N/A *
1058N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1058N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1058N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1058N/A * version 2 for more details (a copy is included in the LICENSE file that
1058N/A * accompanied this code).
1058N/A *
1058N/A * You should have received a copy of the GNU General Public License version
1058N/A * 2 along with this work; if not, write to the Free Software Foundation,
1058N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1058N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
1058N/A */
1058N/A
1058N/Aimport java.rmi.*;
1058N/Aimport java.rmi.server.*;
1058N/A
1058N/Apublic class MyObjectImpl extends UnicastRemoteObject implements MyObject {
1058N/A private int clientNum = -1;
1058N/A private byte[] data = null;
1058N/A //private MyObjectFactory mof = null;
1058N/A private boolean AliveMyObjectsCounterWasIncremented = false;
1058N/A
1058N/A public MyObjectImpl() throws RemoteException {
1058N/A super();
1058N/A }
1058N/A
1058N/A public MyObjectImpl(int c, int size) //MyObjectFactory mof, int c, int size)
1058N/A throws RemoteException {
1058N/A super();
1058N/A //this.mof = mof;
1058N/A this.clientNum = c;
1058N/A this.data = new byte[size];
1058N/A //mof.incAliveMyObjects(1);
1058N/A AliveMyObjectsCounterWasIncremented = true;
1058N/A }
1058N/A
1058N/A public void method1(MyObject obj) throws RemoteException {
1058N/A }
1058N/A
1058N/A public void method2(MyObject[] objs) throws RemoteException {
1058N/A }
1058N/A
1058N/A public void method3() throws RemoteException {
1058N/A }
1058N/A
1058N/A protected void finalize() throws Throwable {
1058N/A if(AliveMyObjectsCounterWasIncremented)
1058N/A ; //mof.decAliveMyObjects(1);
1058N/A super.finalize();
1058N/A }
1058N/A}
1058N/A