|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.core.NetworkGroup
public class NetworkGroup
This class defines the network group. A network group is used to categorize client connections. A network group is defined by a set of criteria, a set of policies and a set of workflow nodes. A client connection belongs to a network group whenever it satisfies all the network group criteria. As soon as a client connection belongs to a network group, it has to comply with all the network group policies. Any cleared client operation can be routed to one the network group workflow nodes.
Constructor Summary | |
---|---|
NetworkGroup(java.lang.String networkGroupID)
Creates a new instance of the network group. |
Method Summary | |
---|---|
void |
deregister()
Deregisters the current network group (this) with the server. |
static void |
deregisterAllOnShutdown()
Deregisters all network groups that have been registered. |
Workflow |
deregisterWorkflow(DN baseDN)
Deregisters a workflow with the network group. |
void |
deregisterWorkflow(java.lang.String workflowID)
Deregisters a workflow with the network group. |
void |
finalizeNetworkGroup()
Performs any finalization that might be required when this network group is unloaded. |
static NetworkGroup |
getDefaultNetworkGroup()
Returns the default network group. |
NetworkGroupNamingContexts |
getNamingContexts()
Returns the list of naming contexts handled by the network group. |
static java.util.Collection<NetworkGroup> |
getRegisteredNetworkGroups()
Provides the list of network group registered with the server. |
Workflow |
getWorkflowCandidate(DN baseDN)
Gets the highest workflow in the topology that can handle the baseDN. |
void |
register()
Registers the current network group (this) with the server. |
void |
registerWorkflow(WorkflowImpl workflow)
Registers a workflow with the network group. |
void |
reset()
Resets the configuration of the current network group. |
static void |
resetConfig()
Resets the configuration of all the registered network groups. |
java.lang.StringBuilder |
toString(java.lang.String leftMargin)
Dumps info from the current network group for debug purpose. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkGroup(java.lang.String networkGroupID)
networkGroupID
- the network group internal identifierMethod Detail |
---|
public void finalizeNetworkGroup()
public void register() throws DirectoryException
DirectoryException
- If the network group ID for the provided
network group conflicts with the network
group ID of an existing network group.public void deregister()
public void registerWorkflow(WorkflowImpl workflow) throws DirectoryException
workflow
- the workflow to register
DirectoryException
- If the workflow ID for the provided
workflow conflicts with the workflow
ID of an existing workflow.public Workflow deregisterWorkflow(DN baseDN)
baseDN
- the baseDN of the workflow to deregister, may be null
public void deregisterWorkflow(java.lang.String workflowID)
workflowID
- the workflow identifier of the workflow to deregisterpublic Workflow getWorkflowCandidate(DN baseDN)
baseDN
- the base DN of the request
null
if none was foundpublic static NetworkGroup getDefaultNetworkGroup()
public NetworkGroupNamingContexts getNamingContexts()
public java.lang.StringBuilder toString(java.lang.String leftMargin)
leftMargin
- white spaces used to indent traces
public static void deregisterAllOnShutdown()
public static java.util.Collection<NetworkGroup> getRegisteredNetworkGroups()
public static void resetConfig()
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |