public class RemoteSubjectImpl extends RemoteObject implements RemoteSubject
Constructor and Description |
---|
RemoteSubjectImpl(Broker broker) |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(java.lang.String ref) |
java.lang.String |
getStringState() |
void |
notifyObservers() |
void |
removeObserver(java.lang.String ref) |
void |
setState(java.lang.String state) |
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 RemoteSubjectImpl(Broker broker)
public void addObserver(java.lang.String ref) throws RemoteException
addObserver
in interface RemoteSubject
RemoteException
public void removeObserver(java.lang.String ref) throws RemoteException
removeObserver
in interface RemoteSubject
RemoteException
public void notifyObservers()
notifyObservers
in interface RemoteSubject
public void setState(java.lang.String state)
setState
in interface RemoteSubject
public java.lang.String getStringState()
getStringState
in interface RemoteSubject