public class OmqServerImpl extends RemoteObject implements ServerInterface
Constructor and Description |
---|
OmqServerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addHp(int hp) |
void |
addWheels(int numWheels) |
int |
getHp() |
int |
getPrice() |
int |
getWheels() |
void |
setPrice(int price) |
getChannel, getParams, getRef, invokeMethod, kill, run, startRemoteObject
activeCount, 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, yield
public void addWheels(int numWheels)
addWheels
in interface ServerInterface
public void addHp(int hp)
addHp
in interface ServerInterface
public int getHp()
getHp
in interface ServerInterface
public int getWheels()
getWheels
in interface ServerInterface
public void setPrice(int price)
setPrice
in interface ServerInterface
public int getPrice()
getPrice
in interface ServerInterface