Interface CGAgentObserver
-
- All Known Implementing Classes:
CGAgentObserverImpl
public interface CGAgentObserverThis represents the observer for subject. When a server goes down an observer will be created who is interested in subject(that is the status of the remote server)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetHostName()Returns the host name associated with the observerintgetPort()Returns the port of the server associated with the observervoidupdate(CGAgentSubject s)Action to perform once the event is received
-
-
-
Method Detail
-
update
void update(CGAgentSubject s)
Action to perform once the event is received- Parameters:
s- CGAgentSubject to act upon
-
getHostName
String getHostName()
Returns the host name associated with the observer- Returns:
- the remote host name
-
getPort
int getPort()
Returns the port of the server associated with the observer- Returns:
- the port
-
-