| 
    Sleuth Kit Java Bindings (JNI)
    4.11.1
    
   Java bindings for using The Sleuth Kit 
   | 
 
Public Member Functions | |
| Long | deleteHost (String name) throws TskCoreException | 
| List< Host > | getAllHosts () throws TskCoreException | 
| List< DataSource > | getDataSourcesForHost (Host host) throws TskCoreException | 
| Host | getHostByDataSource (DataSource dataSource) throws TskCoreException | 
| Optional< Host > | getHostById (long id) throws TskCoreException | 
| Optional< Host > | getHostByName (String name) throws TskCoreException | 
| void | mergeHosts (Host sourceHost, Host destHost) throws TskCoreException | 
| Host | newHost (String name) throws TskCoreException | 
| Host | updateHostName (Host host, String newName) throws TskCoreException | 
Responsible for creating/updating/retrieving Hosts.
Definition at line 41 of file HostManager.java.
| Long org.sleuthkit.datamodel.HostManager.deleteHost | ( | String | name | ) | throws TskCoreException | 
Delete a host. Name comparison is case-insensitive.
| name | Name of the host to delete. | 
| TskCoreException | 
Definition at line 213 of file HostManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.beginTransaction(), org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.commit(), and org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.rollback().
| List<Host> org.sleuthkit.datamodel.HostManager.getAllHosts | ( | ) | throws TskCoreException | 
Get all hosts that have a status of ACTIVE.
| TskCoreException | 
Definition at line 407 of file HostManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
| List<DataSource> org.sleuthkit.datamodel.HostManager.getDataSourcesForHost | ( | Host | host | ) | throws TskCoreException | 
Get all data sources associated with a given host.
| host | The host. | 
| TskCoreException | 
Definition at line 283 of file HostManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), org.sleuthkit.datamodel.SleuthkitCase.getDataSource(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
| Host org.sleuthkit.datamodel.HostManager.getHostByDataSource | ( | DataSource | dataSource | ) | throws TskCoreException | 
Get host for the given data source.
| dataSource | The data source to look up the host for. | 
| TskCoreException | if no host is found or an error occurs. | 
Definition at line 437 of file HostManager.java.
Referenced by org.sleuthkit.datamodel.LocalFilesDataSource.getHost(), and org.sleuthkit.datamodel.Image.getHost().
| Optional<Host> org.sleuthkit.datamodel.HostManager.getHostById | ( | long | id | ) | throws TskCoreException | 
Get host with the given id.
| id | The id of the host. | 
| TskCoreException | 
Definition at line 364 of file HostManager.java.
Referenced by org.sleuthkit.datamodel.HostManager.updateHostName().
| Optional<Host> org.sleuthkit.datamodel.HostManager.getHostByName | ( | String | name | ) | throws TskCoreException | 
Get active host with given name.
| name | Host name to look for. | 
| TskCoreException | 
Definition at line 313 of file HostManager.java.
| void org.sleuthkit.datamodel.HostManager.mergeHosts | ( | Host | sourceHost, | 
| Host | destHost | ||
| ) | throws TskCoreException | 
Merge source host into destination host. When complete: - All realms will have been moved into the destination host or merged with existing realms in the destination host. - All references to the source host will be updated to reference the destination host. - The source host will be updated so that it will no longer be returned by any methods apart from get by host id.
| sourceHost | The source host. | 
| destHost | The destination host. | 
| TskCoreException | 
Definition at line 486 of file HostManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.beginTransaction(), org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.commit(), org.sleuthkit.datamodel.SleuthkitCase.getOsAccountRealmManager(), and org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.rollback().
| Host org.sleuthkit.datamodel.HostManager.newHost | ( | String | name | ) | throws TskCoreException | 
Create a host with specified name. If a host already exists with the given name, it returns the existing host.
| name | Host name. | 
| TskCoreException | 
Definition at line 65 of file HostManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.beginTransaction(), org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.commit(), and org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.rollback().
Referenced by org.sleuthkit.datamodel.SleuthkitCase.addImage(), and org.sleuthkit.datamodel.SleuthkitCase.addLocalFilesDataSource().
| Host org.sleuthkit.datamodel.HostManager.updateHostName | ( | Host | host, | 
| String | newName | ||
| ) | throws TskCoreException | 
Updates the name of the provided host.
| host | The host to be updated. | 
| newName | The new name of the host. | 
| TskCoreException | 
Definition at line 164 of file HostManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), org.sleuthkit.datamodel.HostManager.getHostById(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().
Copyright © 2011-2021 Brian Carrier.  (carrier -at- sleuthkit -dot- org)
 
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.