Package com.inesm.KeyManager.model
Interface NetworkResource
- All Superinterfaces:
Resource,Serializable
A resource that is used to distribute the system resources
over the network.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlag to specify the Direct Distribution Modestatic final intFlag to specify the Hierarchical Distribution Mode -
Method Summary
Methods inherited from interface com.inesm.KeyManager.model.Resource
deserialize, getResourceID, serialize
-
Field Details
-
DIRECT_MODE
static final int DIRECT_MODEFlag to specify the Direct Distribution Mode- See Also:
-
HIERARCHICAL_MODE
static final int HIERARCHICAL_MODEFlag to specify the Hierarchical Distribution Mode- See Also:
-
-
Method Details
-
isMessage
boolean isMessage()Checks if the network resource is aMessage.- Returns:
- true if it is, false otherwise
-
isReceipt
boolean isReceipt()Checks if network resource is aReceipt.- Returns:
- true if it is, false otherwise
-
getDestination
String getDestination()Gets the destination of the network resource.- Returns:
- the path of the destination station
-
getNextHop
String getNextHop()Gets the nextHop of the network resource.- Returns:
- the path of the next-hop station
-
getMode
int getMode()Gets the distribution mode of the network resource.- Returns:
- the distribution mode flag between
DIRECT_MODEandHIERARCHICAL_MODE.
-