Package com.seeq.link.agent.interfaces
Interface AgentKeyReader
- All Superinterfaces:
com.seeq.utilities.FileChangeListener
- All Known Implementing Classes:
DefaultAgentKeyReader
public interface AgentKeyReader
extends com.seeq.utilities.FileChangeListener
Encapsulates the reading of an agent key, including monitoring for modifications or deletions and notifying a
listener.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Shuts down the file watcher for the agent key file.Returns theAgentKeyCredential
or null if it is not available.com.seeq.link.sdk.utilities.Event<String>
An event that is triggered when the agent key file is modified or deleted.Get the path to the agent key file.void
Reads the agent key in (if it exists) and begins watching the file for creation/modification/deletion.Methods inherited from interface com.seeq.utilities.FileChangeListener
onFileDelete, onFileModify
-
Method Details
-
getAgentKeyModifiedEvent
com.seeq.link.sdk.utilities.Event<String> getAgentKeyModifiedEvent()An event that is triggered when the agent key file is modified or deleted. -
getAgentKeyPath
Path getAgentKeyPath()Get the path to the agent key file. -
getAgentKeyCredential
AgentKeyCredential getAgentKeyCredential()Returns theAgentKeyCredential
or null if it is not available. -
initialize
Reads the agent key in (if it exists) and begins watching the file for creation/modification/deletion.- Throws:
IOException
-
destroy
void destroy()Shuts down the file watcher for the agent key file.
-