EchoObject

David Utza
Note by David Utza, updated more than 1 year ago
David Utza
Created by David Utza almost 5 years ago
2
0

Description

EchoObject

Resource summary

Page 1

import java.rmi.*;import java.rmi.server.UnicastRemoteObject;/** * Klasse EchoObject * * * * @version 2016-09-09 * @author David *//** Tatsächlicher Server */@SuppressWarnings("serial")public class EchoObject extends UnicastRemoteObject implements EchoService{ private String response; private int uid = 0; public EchoObject () throws RemoteException { super(); response = ""; } public String getResponse () throws RemoteException { String result = null; result = response; System.out.println("Aufruf von getResponse()"); return result; } public void request (String request) throws RemoteException { response = request; } public int setouruid() throws RemoteException{ ++uid; System.out.println("ID gestzt: "+ uid); return uid; } public String getc(int uid)throws RemoteException{ if (this.uid == uid) return "ID found "+ uid; return "trouble"; }}

Show full summary Hide full summary

Similar

ein kleines Informatik Quiz
AntonS
Informatik
Tom Kühling
Informatik
Korto Vos
Wirtschaftsinformatik Teil 2
Sabrina Heckler
PHP Grundlagen
chrisi.0605
Informatik 1 - Einführung
Svenja
Codierung
Tom Kühling
Wirtschaftsinformatik Teil 1
Sabrina Heckler
Einführung in das Studium Informatik
Daniel Doe
Lernplan
Sandra K
Infromatik Basiswissen
Simon Hefti