org.rhq.enterprise.communications
Class PingImpl
java.lang.Object
org.rhq.enterprise.communications.PingImpl
- All Implemented Interfaces:
- Ping
public class PingImpl
- extends Object
- implements Ping
Implements the Ping POJO which simply echoes back a message to the caller. This enables a caller to ping this object
to ensure connectivity. This POJO is meant to be remoted so remote clients can ping the server where this POJO lives.
- Author:
- John Mazzitelli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PingImpl
public PingImpl()
ping
public String ping(String echoMessage,
String prefix)
- Description copied from interface:
Ping
- Pings the POJO to ensure connectivity. This simply returns the
echoMessage back, prefixed with the
optional prefix message. This mimics the functionality of the EchoCommand.
- Specified by:
ping in interface Ping
- Parameters:
echoMessage - message to echo back to the callerprefix - the string to be prepended to the echo message before being returned (may be
null)
- Returns:
- the echo message, prepended with the prefix string
- See Also:
Ping.ping(String, String)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.