public interface HSAdapter
Modifier and Type | Method and Description |
---|---|
void |
addHandleValues(java.lang.String handle,
HandleValue[] values)
Adds new handle records.
|
HandleValue |
createAdminValue(java.lang.String adminHandle,
int keyIndex,
int index)
Creates an administrative record with the adminHandle and adminIndex at
the index.
|
void |
createHandle(java.lang.String handle,
HandleValue[] values)
Creates a new handle.
|
HandleValue |
createHandleValue(int index,
java.lang.String type,
java.lang.String data)
Creates a new handle value.
|
void |
deleteHandle(java.lang.String handle)
Deletes an existing Handle from the handle server.
|
void |
deleteHandleValues(java.lang.String handle,
HandleValue[] values)
Deletes a specific set of handle values in a Handle.
|
int |
getTcpTimeout()
Get how long to wait for responses to TCP and HTTP requests.
|
HandleValue[] |
resolveHandle(java.lang.String handle,
java.lang.String[] types,
int[] indexes)
Resolves a handle and returns a set of handle values that satisfy the
type filter specified.
|
HandleValue[] |
resolveHandle(java.lang.String handle,
java.lang.String[] types,
int[] indexes,
boolean auth)
Resolves a handle and returns a set of handle values that satisfy the
type filter specified.
|
void |
setTcpTimeout(int newTcpTimeout)
Set how long to wait for responses to TCP and HTTP requests.
|
void |
setUseUDP(boolean useUDP)
Adds and prioritizes the UDP for communication with the Handle server.
|
void |
updateHandleValues(java.lang.String handle,
HandleValue[] values)
Updates the specified data handle values.
|
void addHandleValues(java.lang.String handle, HandleValue[] values) throws HandleException
handle
- The handle into which new values are to be addedvalues
- The array of handle values to depositHandleException
HandleValue createAdminValue(java.lang.String adminHandle, int keyIndex, int index) throws HandleException
adminHandle
- The admin handle for this handle valuekeyIndex
- The index of the public key in the admin Handleindex
- Which index to put this information at.HandleException
void createHandle(java.lang.String handle, HandleValue[] values) throws HandleException
handle
- The handle to createvalues
- An array of handle values to add to the handle. Note:
Note:
HandleException
- Describes
the error that occured in the process of creating the
handle.HandleValue createHandleValue(int index, java.lang.String type, java.lang.String data) throws HandleException
index
- Which index to put this information at.type
- The type of the handle valuedata
- The data for this handle value Otherwise not.HandleException
void deleteHandle(java.lang.String handle) throws HandleException
handle
- The handle to delete.HandleException
void deleteHandleValues(java.lang.String handle, HandleValue[] values) throws HandleException
handle
- The Handle that we want to delete values fromvalues
- An array of handle values to delete.HandleException
- Describes
the error that occured while executing the method.HandleValue[] resolveHandle(java.lang.String handle, java.lang.String[] types, int[] indexes, boolean auth) throws HandleException
handle
- The value of the handle to resolvetypes
- The types of the handle values that we are looking for.auth
- Whether to perform an authoritative resolutionHandleException
- Describes
the error in resolutionHandleValue[] resolveHandle(java.lang.String handle, java.lang.String[] types, int[] indexes) throws HandleException
handle
- The value of the handle to resolvetypes
- The types of the handle values that we are looking for.HandleException
- Describes
the error in resolutionvoid setTcpTimeout(int newTcpTimeout)
newTcpTimeout
- Milliseconds to use for timeout.int getTcpTimeout()
void setUseUDP(boolean useUDP)
useUDP
- The boolean flag that specifies the use of UDP.void updateHandleValues(java.lang.String handle, HandleValue[] values) throws HandleException
handle
- values
- HandleException