public class LocalGroupingHandler extends Object implements GroupingHandler
Constructor and Description |
---|
LocalGroupingHandler(ManagementService managementService,
SimpleString name,
SimpleString address,
StorageManager storageManager,
int timeout) |
Modifier and Type | Method and Description |
---|---|
void |
addGroupBinding(GroupBinding groupBinding) |
SimpleString |
getName() |
Response |
getProposal(SimpleString fullID) |
void |
onNotification(Notification notification) |
Response |
propose(Proposal proposal) |
void |
proposed(Response response) |
Response |
receive(Proposal proposal,
int distance) |
void |
send(Response response,
int distance) |
public LocalGroupingHandler(ManagementService managementService, SimpleString name, SimpleString address, StorageManager storageManager, int timeout)
public SimpleString getName()
getName
in interface GroupingHandler
public Response propose(Proposal proposal) throws Exception
propose
in interface GroupingHandler
Exception
public void proposed(Response response) throws Exception
proposed
in interface GroupingHandler
Exception
public void send(Response response, int distance) throws Exception
send
in interface GroupingHandler
Exception
public Response receive(Proposal proposal, int distance) throws Exception
receive
in interface GroupingHandler
Exception
public void addGroupBinding(GroupBinding groupBinding)
addGroupBinding
in interface GroupingHandler
public Response getProposal(SimpleString fullID)
getProposal
in interface GroupingHandler
public void onNotification(Notification notification)
onNotification
in interface NotificationListener
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.