Ejemplo n.º 1
0
 @Override
 public void serialize(final Serializer serializer) {
   serializer.writeString("name", this.getTimerName());
   serializer.writeInt("executions", this.getNumExecutions());
   serializer.writeInt("successes", this.getNumSuccesses());
   serializer.writeInt("failures", this.getNumFailures());
   serializer.writeInt("last-delay-time", this.getLastDelayTime());
   TimeInstant.writeTo(serializer, "last-operation-start-time", this.getLastOperationStartTime());
   serializer.writeInt("last-operation-time", this.getLastOperationTime());
   serializer.writeInt("average-operation-time", this.getAverageOperationTime());
   serializer.writeInt("is-executing", this.isExecuting() ? 1 : 0);
 }
 public void serialize(final Serializer serializer) {
   serializer.writeString("language", this.getLanguage());
   serializer.writeObject("remoteServer", this.getNisEndpoint());
   serializer.writeObject("nisBootInfo", this.getNisBootInfo());
   serializer.writeInt("firstStart", this.getFirstStart());
 }
 @Override
 public void serialize(final Serializer serializer) {
   serializer.writeInt("bootNis", this.bootStrategy);
   serializer.writeString("account", this.accountId);
   serializer.writeString("nodeName", this.nodeName);
 }