独自の Java コードを Notes レプリケーターに追加しています (アクティビティの同期など):
<plugin>
<extension
point="com.ibm.notes.client.notesSync">
<unit
class="com.ibm.notes.smartfile.RunOnReplication"
id="com.ibm.notes.smartfile.RunOnReplication"
image="icons/SmartFile.gif"
label="IBM SmartFile action">
</unit>
</extension>
</plugin>
これにより、ジョブが実行されるたびに実行されるレプリケーター ページにエントリが追加されます。私のクラスは次のようになります。
public class RunOnReplication extends Job {
public RunOnReplication(String name) {
super(name);
}
@Override
public IStatus run(IProgressMonitor arg0) {
NotesSessionJob nsj = new NotesSessionJob("SmartFile Replication") {
@Override
protected IStatus runInNotesThread(Session s,
IProgressMonitor monitor) throws NotesException {
Engine engine = Activator.getDefault().getEngine();
return engine.scheduledProcessing(s, monitor);
}
};
nsj.schedule();
return Status.OK_STATUS;
}
}
今、私は疑問に思います: どうすればnsj
ジョブ内のモニターにステータスを外部クラスに報告させ、進行状況をレプリケーターの進行状況バーに報告させることができますか? または、新しいジョブを作成せずに NotesSession にアクセスする別の方法がありますか? ?