public final class NetBarrierEnd
extends java.lang.Object
NetBarrier
Modifier and Type | Method and Description |
---|---|
static NetBarrier |
netBarrier(int localEnrolled,
int netEnrolled)
Creates a new server end of a NetBarrier
|
static NetBarrier |
netBarrier(NetBarrierLocation loc,
int enrolled)
Creates a new client end of a NetBarrier
|
static NetBarrier |
netBarrier(NodeAddress addr,
int vbn,
int enrolled)
Creates a new client end of a NetBarrier connected to the barrier with the given index on the given Node
|
static NetBarrier |
netBarrier(NodeID nodeID,
int vbn,
int enrolled)
Creates a new client end of a NetBarrier connected to the barrier with the given index on the given Node
|
static NetBarrier |
numberedNetBarrier(int index,
int localEnrolled,
int netEnrolled)
Creates a new server end of a NetBarrier with a given index
|
public static NetBarrier netBarrier(int localEnrolled, int netEnrolled) throws java.lang.IllegalArgumentException
localEnrolled
- The number of locally enrolled processesnetEnrolled
- The number of net enrolled processes to expectjava.lang.IllegalArgumentException
- Thrown if the parameters are outside the defined rangespublic static NetBarrier numberedNetBarrier(int index, int localEnrolled, int netEnrolled) throws java.lang.IllegalArgumentException
index
- The index to create the NetBarrier withlocalEnrolled
- The number of locally enrolled processesnetEnrolled
- The number of remote enrollments to wait forjava.lang.IllegalArgumentException
- Thrown if the parameters are outside the defined rangespublic static NetBarrier netBarrier(NetBarrierLocation loc, int enrolled) throws JCSPNetworkException, java.lang.IllegalArgumentException
loc
- The location of the server end of the NetBarrierenrolled
- The number of locally enrolled processesJCSPNetworkException
- Thrown if something goes wrong in the underlying architecturejava.lang.IllegalArgumentException
- Thrown if the number of of local enrolled is outside the defined rangepublic static NetBarrier netBarrier(NodeID nodeID, int vbn, int enrolled) throws JCSPNetworkException, java.lang.IllegalArgumentException
nodeID
- The NodeID of the Node to connect tovbn
- The index of the barrier on the remote Nodeenrolled
- The number of locally enrolled processesJCSPNetworkException
- Thrown is something goes wrong in the underlying architecturejava.lang.IllegalArgumentException
- Thrown if the number of enrolled is outside the defined rangepublic static NetBarrier netBarrier(NodeAddress addr, int vbn, int enrolled) throws JCSPNetworkException, java.lang.IllegalArgumentException
addr
- NodeAddres of the Node that the barrier is locatedvbn
- Index of the barrier to connect toenrolled
- The number of locally enrolled processesJCSPNetworkException
- Thrown if something goes wrong in the underlying architecturejava.lang.IllegalArgumentException
- Thrown if the number of enrolled processes is outside the defined range.Copyright © 1996–2024. All rights reserved.