public SessionInfo() { this(SystemTime.getUtcCalendar(), 1, 1); }
public static Calendar getUtcCalendar(Date date) { Calendar c = getUtcCalendar(); c.setTime(date); return c; }
public static Calendar getUtcCalendar(long time) { Calendar c = getUtcCalendar(); c.setTimeInMillis(time); return c; }
public static Calendar getUtcCalendar(Date date) { Calendar c = getUtcCalendar(); c.setTime(date); return c; }
public static Calendar getUtcCalendar(long time) { Calendar c = getUtcCalendar(); c.setTimeInMillis(time); return c; }
private boolean isCurrentSession(final long time) throws IOException { return sessionSchedule == null || sessionSchedule.isSameSession( SystemTime.getUtcCalendar(time), SystemTime.getUtcCalendar(state.getCreationTime())); }
private boolean isCurrentSession(final long time) throws IOException { return sessionSchedule == null || sessionSchedule.isSameSession( SystemTime.getUtcCalendar(time), SystemTime.getUtcCalendar(state.getCreationTime())); }
private boolean isCurrentSession(final long time) throws IOException { return sessionSchedule == null || sessionSchedule.isSameSession( SystemTime.getUtcCalendar(time), SystemTime.getUtcCalendar(state.getCreationTime())); }
private void storeSessionTimeStamp() throws IOException { try (DataOutputStream sessionTimeOutput = new DataOutputStream(new BufferedOutputStream( new FileOutputStream(sessionFileName, false)))) { final Date date = SystemTime.getDate(); cache.setCreationTime(SystemTime.getUtcCalendar(date)); sessionTimeOutput.writeUTF(UtcTimestampConverter.convert(date, true)); } }
private void storeSessionTimeStamp() throws IOException { try (DataOutputStream sessionTimeOutput = new DataOutputStream(new BufferedOutputStream( new FileOutputStream(sessionFileName, false)))) { final Date date = SystemTime.getDate(); cache.setCreationTime(SystemTime.getUtcCalendar(date)); sessionTimeOutput.writeUTF(UtcTimestampConverter.convert(date, true)); } }
private void storeSessionTimeStamp() throws IOException { try (DataOutputStream sessionTimeOutput = new DataOutputStream(new BufferedOutputStream( new FileOutputStream(sessionFileName, false)))) { final Date date = SystemTime.getDate(); cache.setCreationTime(SystemTime.getUtcCalendar(date)); sessionTimeOutput.writeUTF(UtcTimestampConverter.convert(date, true)); } }
private void storeSessionTimeStamp() throws IOException { try (DataOutputStream sessionTimeOutput = new DataOutputStream(new BufferedOutputStream( new FileOutputStream(sessionFileName, false)))) { final Date date = SystemTime.getDate(); cache.setCreationTime(SystemTime.getUtcCalendar(date)); sessionTimeOutput.writeUTF(UtcTimestampConverter.convert(date, true)); } }
public void reset() throws IOException { setNextSenderMsgSeqNum(1); setNextTargetMsgSeqNum(1); messages.clear(); creationTime = SystemTime.getUtcCalendar(); }
public void reset() throws IOException { setNextSenderMsgSeqNum(1); setNextTargetMsgSeqNum(1); messages.clear(); creationTime = SystemTime.getUtcCalendar(); }
public void reset() throws IOException { setNextSenderMsgSeqNum(1); setNextTargetMsgSeqNum(1); messages.clear(); creationTime = SystemTime.getUtcCalendar(); }
public boolean isSessionTime() { if(nonStopSession) { return true; } Calendar now = SystemTime.getUtcCalendar(); TimeInterval interval = theMostRecentIntervalBefore(now); return interval.isContainingTime(now); }
public Object entryToObject(TupleInput tupleIn) { return new SessionInfo(SystemTime.getUtcCalendar(new Date(tupleIn.readLong())), tupleIn .readInt(), tupleIn.readInt()); }
public Object entryToObject(TupleInput tupleIn) { return new SessionInfo(SystemTime.getUtcCalendar(new Date(tupleIn.readLong())), tupleIn .readInt(), tupleIn.readInt()); }
@Override public boolean isSessionTime() { if(isNonStopSession()) { return true; } Calendar now = SystemTime.getUtcCalendar(); TimeInterval interval = theMostRecentIntervalBefore(now); return interval.isContainingTime(now); }
@Override public boolean isSessionTime() { if(isNonStopSession()) { return true; } Calendar now = SystemTime.getUtcCalendar(); TimeInterval interval = theMostRecentIntervalBefore(now); return interval.isContainingTime(now); }