
com.mindoo.domino.jna.internal.structs.ReplFileStatsStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.internal.structs;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
/**
* This structure is returned by ReplicateWithServer() and ReplicateWithServerExt().
* It contains the resulting replication statistics information.
*/
public class ReplFileStatsStruct extends BaseStructure {
public NativeLong TotalFiles;
public NativeLong FilesCompleted;
public NativeLong NotesAdded;
public NativeLong NotesDeleted;
public NativeLong NotesUpdated;
public NativeLong Successful;
public NativeLong Failed;
public NativeLong NumberErrors;
public ReplFileStatsStruct() {
super();
}
public static ReplFileStatsStruct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ReplFileStatsStruct run() {
return new ReplFileStatsStruct();
}
});
}
protected List getFieldOrder() {
return Arrays.asList("TotalFiles", "FilesCompleted", "NotesAdded", "NotesDeleted", "NotesUpdated", "Successful", "Failed", "NumberErrors");
}
public ReplFileStatsStruct(NativeLong TotalFiles, NativeLong FilesCompleted, NativeLong NotesAdded, NativeLong NotesDeleted, NativeLong NotesUpdated, NativeLong Successful, NativeLong Failed, NativeLong NumberErrors) {
super();
this.TotalFiles = TotalFiles;
this.FilesCompleted = FilesCompleted;
this.NotesAdded = NotesAdded;
this.NotesDeleted = NotesDeleted;
this.NotesUpdated = NotesUpdated;
this.Successful = Successful;
this.Failed = Failed;
this.NumberErrors = NumberErrors;
}
public static ReplFileStatsStruct newInstance(final NativeLong TotalFiles, final NativeLong FilesCompleted, final NativeLong NotesAdded, final NativeLong NotesDeleted, final NativeLong NotesUpdated, final NativeLong Successful, final NativeLong Failed, final NativeLong NumberErrors) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ReplFileStatsStruct run() {
return new ReplFileStatsStruct(TotalFiles, FilesCompleted, NotesAdded, NotesDeleted, NotesUpdated, Successful, Failed, NumberErrors);
}
});
}
public ReplFileStatsStruct(Pointer peer) {
super(peer);
}
public static ReplFileStatsStruct newInstance(final Pointer peer) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ReplFileStatsStruct run() {
return new ReplFileStatsStruct(peer);
}
});
}
public static class ByReference extends ReplFileStatsStruct implements Structure.ByReference {
};
public static class ByValue extends ReplFileStatsStruct implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy