Class CGAgentObserverImpl
- java.lang.Object
-
- org.wso2.carbon.cloud.gateway.agent.observer.CGAgentObserverImpl
-
- All Implemented Interfaces:
CGAgentObserver
public class CGAgentObserverImpl extends Object implements CGAgentObserver
Implementation forCGAgentObserver
-
-
Constructor Summary
Constructors Constructor Description CGAgentObserverImpl(String host, String serviceName, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetHostName()Returns the host name associated with the observerintgetPort()Returns the port of the server associated with the observerinthashCode()voidupdate(CGAgentSubject subject)Action to perform once the event is received
-
-
-
Method Detail
-
update
public void update(CGAgentSubject subject)
Description copied from interface:CGAgentObserverAction to perform once the event is received- Specified by:
updatein interfaceCGAgentObserver- Parameters:
subject- CGAgentSubject to act upon
-
getHostName
public String getHostName()
Description copied from interface:CGAgentObserverReturns the host name associated with the observer- Specified by:
getHostNamein interfaceCGAgentObserver- Returns:
- the remote host name
-
getPort
public int getPort()
Description copied from interface:CGAgentObserverReturns the port of the server associated with the observer- Specified by:
getPortin interfaceCGAgentObserver- Returns:
- the port
-
-