public class ProcessList extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessList.Builder |
| Constructor and Description |
|---|
ProcessList(ProcessList processList)
Clone the given process list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllCorrect()
Checks if all the processes are correct.
|
int |
getCorrectCount() |
Set<Integer> |
getCorrectProcessIds() |
int |
getId(SocketAddress addr)
Gets the id of the process with the specified address.
|
CommProcess |
getProcess(int id)
Gets the process with the given id
|
CommProcess |
getProcess(SocketAddress addr)
Gets the process with the specified address.
|
int |
getSelfId()
Gets the self id.
|
CommProcess |
getSelfProcess()
Gets the self process.
|
int |
getSize()
Gets the number of processes.
|
public ProcessList(ProcessList processList)
processList - the process list to be clonedpublic int getSize()
public int getId(SocketAddress addr)
addr - the address of the processpublic CommProcess getProcess(SocketAddress addr)
addr - the address of the processpublic CommProcess getProcess(int id)
id - the id of the processpublic int getSelfId()
public CommProcess getSelfProcess()
public boolean areAllCorrect()
public int getCorrectCount()
Copyright © 2020 VanillaDB Organization. All rights reserved.