public interface NIC
NIC
interface provides the ability to lookup network
state information given a key.Modifier and Type | Method and Description |
---|---|
void |
destroy()
Cleanup method
|
net.juniper.smgt.gateway.gal.mbeans.NicProxyMgmtMBean |
getManagement()
Return the management interface which gives the caller access
to the management counters
|
void |
invalidateLookup(NicKey key,
NicValue value)
Used to signal to a NIC component that a key/value pair (returned
from one of the lookup methods) resulted in a failure when the value
was used.
|
java.util.Map |
lookup(java.util.Collection key)
Used to perform a "bulk" lookup operation.
|
java.util.Collection |
lookup(NicKey key)
Used to return the collection of values associated
with the passed-in key object.
|
NicValue |
lookupSingle(NicKey key)
Used to return a single value associated with the passed-in key object.
|
java.util.Map lookup(java.util.Collection key) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, NicInternalException
Given a collection of keys, it returns a Map with the passed-in key objects as the Map keys and their asociated information as values. If no associated value was found for one of the keys, there will be no entry for this key object in the Map.
Note that, this method is optional. See the documentation of your specific NIC to check whether it is supported or not. Also, to check for the expected type of the key objects in the input Collection and the type of the values in the returned Map.
key
- the Collection of key objectsjava.lang.UnsupportedOperationException
- if this method is not supported
by the NIC implementationjava.lang.IllegalArgumentException
- if the key objects in the passed-in
Collection are not of the expected typeNicInternalException
- for any other NIC implementation specific
exceptionsvoid invalidateLookup(NicKey key, NicValue value)
key
- the key object that was passed to the lookup methodvalue
- the value object returned from the lookup methodjava.util.Collection lookup(NicKey key) throws java.lang.IllegalArgumentException, NicInternalException
key
- the key objectjava.lang.IllegalArgumentException
- if the key object is not of the
expected typeNicInternalException
- for any other NIC implementation
specific exceptionsNicValue lookupSingle(NicKey key) throws java.lang.IllegalArgumentException, AmbiguousKeyException, NicInternalException
If no associated value was found,the method returns null. If multiple values are found, the NIC can choose one value to return to the caller.
key
- the key objectjava.lang.IllegalArgumentException
- if the key object is not of the
expected typeAmbiguousKeyException
- if the key object does not uniquely
identify one value and the NIC implmenetation expects it to.NicInternalException
- for any other NIC implementation specific
exceptionsvoid destroy()
net.juniper.smgt.gateway.gal.mbeans.NicProxyMgmtMBean getManagement()