public class CalculatorImpl extends RemoteObject implements Calculator
| Constructor and Description |
|---|
CalculatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(int x,
int y) |
int |
divideByZero() |
int |
getMult() |
void |
mult(int x,
int y) |
void |
sendMessage(Message m) |
void |
setMult(int mult) |
getChannel, getParams, getRef, invokeMethod, kill, run, startRemoteObjectactiveCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic CalculatorImpl()
throws java.lang.Exception
java.lang.Exceptionpublic int add(int x,
int y)
add in interface Calculatorpublic void mult(int x,
int y)
mult in interface Calculatorpublic int getMult()
public void setMult(int mult)
public void sendMessage(Message m)
sendMessage in interface Calculatorpublic int divideByZero()
divideByZero in interface Calculator