Search in sources :

Example 1 with BootstrappingFunction

use of org.apache.geode.modules.util.BootstrappingFunction in project geode by apache.

the class ClientServerSessionCache method bootstrapServers.

////////////////////////////////////////////////////////////////////////
// Private methods
private void bootstrapServers() {
    Execution execution = FunctionService.onServers(this.cache);
    ResultCollector collector = execution.execute(new BootstrappingFunction());
    // Get the result. Nothing is being done with it.
    try {
        collector.getResult();
    } catch (Exception e) {
        // If an exception occurs in the function, log it.
        LOG.warn("Caught unexpected exception:", e);
    }
}
Also used : Execution(org.apache.geode.cache.execute.Execution) ResultCollector(org.apache.geode.cache.execute.ResultCollector) BootstrappingFunction(org.apache.geode.modules.util.BootstrappingFunction)

Example 2 with BootstrappingFunction

use of org.apache.geode.modules.util.BootstrappingFunction in project geode by apache.

the class ClientServerSessionCache method bootstrapServers.

private void bootstrapServers() {
    Execution execution = FunctionService.onServers(this.cache);
    ResultCollector collector = execution.execute(new BootstrappingFunction());
    // Get the result. Nothing is being done with it.
    try {
        collector.getResult();
    } catch (Exception e) {
        // If an exception occurs in the function, log it.
        getSessionManager().getLogger().warn("Caught unexpected exception:", e);
    }
}
Also used : Execution(org.apache.geode.cache.execute.Execution) ResultCollector(org.apache.geode.cache.execute.ResultCollector) BootstrappingFunction(org.apache.geode.modules.util.BootstrappingFunction)

Aggregations

Execution (org.apache.geode.cache.execute.Execution)2 ResultCollector (org.apache.geode.cache.execute.ResultCollector)2 BootstrappingFunction (org.apache.geode.modules.util.BootstrappingFunction)2