public class OpcReader extends Object
Constructor and Description |
---|
OpcReader(String host,
String user,
String password)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
exportProject(OpcProject project,
File file,
OpcExportType type,
boolean compressed)
Export a project to a file identified by a File instance.
|
void |
exportProject(OpcProject project,
List<OpcProjectBaseline> baselines,
File file,
OpcExportType type,
boolean compressed)
Export a project with baselines to a file identified by a File instance.
|
void |
exportProject(OpcProject project,
List<OpcProjectBaseline> baselines,
OutputStream stream,
OpcExportType type,
boolean compressed)
Export a project with baselines to an output stream.
|
void |
exportProject(OpcProject project,
List<OpcProjectBaseline> baselines,
String filename,
OpcExportType type,
boolean compressed)
Export a project with baselines to a named file.
|
void |
exportProject(OpcProject project,
OutputStream stream,
OpcExportType type,
boolean compressed)
Export a project to an output stream.
|
void |
exportProject(OpcProject project,
String filename,
OpcExportType type,
boolean compressed)
Export a project to a named file.
|
int |
getExportPollCount()
Retrieve the number of times we'll check the status of the
export job before giving up.
|
long |
getExportPollInterval()
Retrieve the start value for number of milliseconds to wait before checking
the export job status.
|
List<OpcProjectBaseline> |
getProjectBaselines(OpcProject project)
Retrieves a list of baselines available for a given project.
|
List<OpcProject> |
getProjects()
Retrieves a list of OpcProject instances representing the projects in OPC.
|
ProjectFile |
readProject(OpcProject project)
Read a project.
|
ProjectFile |
readProject(OpcProject project,
List<OpcProjectBaseline> baselines)
Read a project with baselines.
|
void |
setExportPollCount(int exportPollCount)
Set the number of times we'll check the status of the
export job before giving up.
|
void |
setExportPollInterval(long exportPollInterval)
Set the start value for number of milliseconds to wait before checking
the export job status.
|
public long getExportPollInterval()
public void setExportPollInterval(long exportPollInterval)
exportPollInterval
- export poll interval in millisecondspublic int getExportPollCount()
public void setExportPollCount(int exportPollCount)
exportPollCount
- number of times to check the status of the export jobpublic List<OpcProject> getProjects()
public List<OpcProjectBaseline> getProjectBaselines(OpcProject project)
project
- project detailspublic void exportProject(OpcProject project, String filename, OpcExportType type, boolean compressed) throws IOException
project
- project to exportfilename
- target filenametype
- target file typecompressed
- true if the output is written as a zip fileIOException
public void exportProject(OpcProject project, List<OpcProjectBaseline> baselines, String filename, OpcExportType type, boolean compressed) throws IOException
project
- project to exportbaselines
- baselines to exportfilename
- target filenametype
- target file typecompressed
- true if the output is written as a zip fileIOException
public void exportProject(OpcProject project, File file, OpcExportType type, boolean compressed) throws IOException
project
- project to exportfile
- target File instancetype
- target file typecompressed
- true if the output is written as a zip fileIOException
public void exportProject(OpcProject project, List<OpcProjectBaseline> baselines, File file, OpcExportType type, boolean compressed) throws IOException
project
- project to exportbaselines
- list of baselines to exportfile
- target File instancetype
- target file typecompressed
- true if the output is written as a zip fileIOException
public void exportProject(OpcProject project, OutputStream stream, OpcExportType type, boolean compressed) throws IOException
project
- project to exportstream
- target output streamtype
- target file typecompressed
- true if the output is written as a zip fileIOException
public void exportProject(OpcProject project, List<OpcProjectBaseline> baselines, OutputStream stream, OpcExportType type, boolean compressed) throws IOException
project
- project to exportbaselines
- list of baselines to exportstream
- target output streamtype
- target file typecompressed
- true if the output is written as a zip fileIOException
public ProjectFile readProject(OpcProject project) throws MPXJException
project
- project detailsMPXJException
public ProjectFile readProject(OpcProject project, List<OpcProjectBaseline> baselines) throws MPXJException
project
- project detailsbaselines
- baselines to readMPXJException
Copyright © 2000–2025 MPXJ. All rights reserved.