groovyx.gpars.remote
Class RemoteNodeDiscoveryListener.RemoteNodeDiscoveryListenerClosure

java.lang.Object
  extended by groovyx.gpars.remote.RemoteNodeDiscoveryListener
      extended by groovyx.gpars.remote.RemoteNodeDiscoveryListener.RemoteNodeDiscoveryListenerClosure
Enclosing class:
RemoteNodeDiscoveryListener

public static class RemoteNodeDiscoveryListener.RemoteNodeDiscoveryListenerClosure
extends RemoteNodeDiscoveryListener

Discovery listener backed by closure with two params - node - "connected" | "disconnected"

Author:
Alex Tkachman

Nested Class Summary
 
Nested classes/interfaces inherited from class groovyx.gpars.remote.RemoteNodeDiscoveryListener
RemoteNodeDiscoveryListener.RemoteNodeDiscoveryListenerClosure
 
Field Summary
private  groovy.lang.Closure closure
           
 
Constructor Summary
RemoteNodeDiscoveryListener.RemoteNodeDiscoveryListenerClosure(groovy.lang.Closure closure)
           
 
Method Summary
 void onConnect(RemoteNode node)
           
 void onDisconnect(RemoteNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

closure

private final groovy.lang.Closure closure
Constructor Detail

RemoteNodeDiscoveryListener.RemoteNodeDiscoveryListenerClosure

public RemoteNodeDiscoveryListener.RemoteNodeDiscoveryListenerClosure(groovy.lang.Closure closure)
Method Detail

onConnect

public void onConnect(RemoteNode node)
Overrides:
onConnect in class RemoteNodeDiscoveryListener

onDisconnect

public void onDisconnect(RemoteNode node)
Overrides:
onDisconnect in class RemoteNodeDiscoveryListener

Copyright © 2008–2012 Václav Pech. All Rights Reserved.