public class TestImplServer extends java.rmi.server.UnicastRemoteObject implements TestAPIRemote
This is an automatically-generated proxy that has
(i.e. makes) an instance of foo.Impl and which implements
foo.APIRemote and which has a main(java.lang.String[])
method that runs a
stand-alone RMI server, starting its own Registry.
Copyright (C) 2005, Marsette A. Vona, III
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software, Foundation Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modifier and Type | Field and Description |
---|---|
protected TestAPI |
localInstance
The local instance of foo.Impl
|
Constructor and Description |
---|
TestImplServer()
Makes a new instance of foo.Impl and calls the other
constructor to assign it to
localInstance . |
TestImplServer(TestAPI localInstance)
This constructor takes an instance of foo.API and assigns it
to
localInstance . |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] arg)
Calls the automatic constructor to create a foo.ImplServer
and then starts up an RMI registry on the local host and binds
the server to the local (i.e.
|
double |
testEightRemote(double arg0)
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
int[] |
testFiveRemote(java.lang.Integer[] arg0)
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
boolean |
testFourRemote(java.lang.String arg0,
int arg1)
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
int |
testOneRemote()
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
TestAPI.Baz |
testSevenRemote(TestAPI.Baz arg0)
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
TestAPI.Bar |
testSixRemote(TestAPI.Bar arg0)
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
java.lang.Object |
testThreeRemote(int arg0)
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
void |
testTwoRemote()
This is a wrapper wich implements foo.APIRemote and forwards
the call
localInstance . |
clone, exportObject, exportObject, exportObject, unexportObject
protected TestAPI localInstance
The local instance of foo.Impl
public TestImplServer(TestAPI localInstance) throws java.rmi.RemoteException
This constructor takes an instance of foo.API and assigns it
to localInstance
.
java.rmi.RemoteException
public TestImplServer() throws java.rmi.RemoteException
Makes a new instance of foo.Impl and calls the other
constructor to assign it to localInstance
.
java.rmi.RemoteException
public static void main(java.lang.String[] arg)
Calls the automatic constructor to create a foo.ImplServer and then starts up an RMI registry on the local host and binds the server to the local (i.e. non-URL) name given on the command line.
USAGE: TestImplServer [host] <name>
binds the server to //host/name. If host is omitted, the
localhost reported by ava.net.InetAddress.getLocalHost().
getHostAddress()
is used.
public int testOneRemote() throws java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testOneRemote
in interface TestAPIRemote
java.rmi.RemoteException
public void testTwoRemote() throws java.lang.UnsupportedOperationException, java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testTwoRemote
in interface TestAPIRemote
java.lang.UnsupportedOperationException
java.rmi.RemoteException
public java.lang.Object testThreeRemote(int arg0) throws java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testThreeRemote
in interface TestAPIRemote
java.rmi.RemoteException
public boolean testFourRemote(java.lang.String arg0, int arg1) throws java.lang.UnsupportedOperationException, java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testFourRemote
in interface TestAPIRemote
java.lang.UnsupportedOperationException
java.rmi.RemoteException
public int[] testFiveRemote(java.lang.Integer[] arg0) throws java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testFiveRemote
in interface TestAPIRemote
java.rmi.RemoteException
public TestAPI.Bar testSixRemote(TestAPI.Bar arg0) throws java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testSixRemote
in interface TestAPIRemote
java.rmi.RemoteException
public TestAPI.Baz testSevenRemote(TestAPI.Baz arg0) throws java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testSevenRemote
in interface TestAPIRemote
java.rmi.RemoteException
public double testEightRemote(double arg0) throws java.rmi.RemoteException
This is a wrapper wich implements foo.APIRemote and forwards
the call localInstance
.
testEightRemote
in interface TestAPIRemote
java.rmi.RemoteException