mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-02 18:45:52 +00:00
Add first draft of new ingest module interfaces
This commit is contained in:
29
Core/src/org/sleuthkit/autopsy/ingest/DataSourceIngestModule.java
Executable file
29
Core/src/org/sleuthkit/autopsy/ingest/DataSourceIngestModule.java
Executable file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Autopsy Forensic Browser
|
||||
*
|
||||
* Copyright 2014 Basis Technology Corp.
|
||||
* Contact: carrier <at> sleuthkit <dot> org
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.sleuthkit.autopsy.ingest;
|
||||
|
||||
import org.sleuthkit.datamodel.Content;
|
||||
|
||||
/**
|
||||
* Interface that must be implemented by all data source ingest modules.
|
||||
*/
|
||||
public interface DataSourceIngestModule extends IngestModule {
|
||||
void process(Content dataSource);
|
||||
}
|
||||
29
Core/src/org/sleuthkit/autopsy/ingest/FileIngestModule.java
Executable file
29
Core/src/org/sleuthkit/autopsy/ingest/FileIngestModule.java
Executable file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Autopsy Forensic Browser
|
||||
*
|
||||
* Copyright 2014 Basis Technology Corp.
|
||||
* Contact: carrier <at> sleuthkit <dot> org
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.sleuthkit.autopsy.ingest;
|
||||
|
||||
import org.sleuthkit.datamodel.AbstractFile;
|
||||
|
||||
/**
|
||||
* Interface that must be implemented by all data source ingest modules.
|
||||
*/
|
||||
public interface FileIngestModule {
|
||||
void process(AbstractFile file);
|
||||
}
|
||||
46
Core/src/org/sleuthkit/autopsy/ingest/IngestModule.java
Executable file
46
Core/src/org/sleuthkit/autopsy/ingest/IngestModule.java
Executable file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Autopsy Forensic Browser
|
||||
*
|
||||
* Copyright 2014 Basis Technology Corp.
|
||||
* Contact: carrier <at> sleuthkit <dot> org
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.sleuthkit.autopsy.ingest;
|
||||
|
||||
/**
|
||||
* Interface that must be implemented by all ingest modules.
|
||||
*/
|
||||
public interface IngestModule {
|
||||
/**
|
||||
* Called to allow an ingest module to initialize itself before commencing
|
||||
* processing.
|
||||
*
|
||||
* @param schedulingToken A module that uses the scheduling service to
|
||||
* schedule additional processing needs to supply its scheduling token to
|
||||
* the scheduler. For example, a module that extracts files from an archive
|
||||
* may schedule ingest of those files using the module's scheduling token.
|
||||
*/
|
||||
void init(int schedulingToken);
|
||||
|
||||
/**
|
||||
* RJCTODO
|
||||
*/
|
||||
void complete();
|
||||
|
||||
/**
|
||||
* RJCTODO
|
||||
*/
|
||||
void stop();
|
||||
}
|
||||
Reference in New Issue
Block a user