hello , how can i check server and cache is alive?
public final boolean ping() {
Status status = cache.getStatus();
return status == Status.STATUS_ALIVE;
}
What is the cache topology you're using ? What's the cache's config ?
This check above wouldn't tell you anything about any network status. It only says that the Cache is usable, from it's lifecycle perspective.