Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CFF9200BA3 for ; Thu, 8 Sep 2016 16:45:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2BB1F160ABD; Thu, 8 Sep 2016 14:45:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 26EB2160AEE for ; Thu, 8 Sep 2016 16:45:46 +0200 (CEST) Received: (qmail 59773 invoked by uid 500); 8 Sep 2016 14:45:45 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 59067 invoked by uid 99); 8 Sep 2016 14:45:44 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2016 14:45:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CF5D2EEE2B; Thu, 8 Sep 2016 14:45:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.apache.org Date: Thu, 08 Sep 2016 14:46:17 -0000 Message-Id: In-Reply-To: <801a9be6e4164ce8853784b2e99566e2@git.apache.org> References: <801a9be6e4164ce8853784b2e99566e2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [35/50] ignite git commit: Rename LockInfo archived-at: Thu, 08 Sep 2016 14:45:49 -0000 Rename LockInfo Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/52d8e625 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/52d8e625 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/52d8e625 Branch: refs/heads/ignite-3199-1 Commit: 52d8e6251b7d4544dac9eb4d48a9f9d79bb4c1d8 Parents: 8a6458f Author: Pavel Tupitsyn Authored: Thu Sep 8 12:35:07 2016 +0300 Committer: Pavel Tupitsyn Committed: Thu Sep 8 12:35:07 2016 +0300 ---------------------------------------------------------------------- .../platform/websession/LockInfo.java | 87 -------------------- .../websession/SessionStateLockInfo.java | 87 ++++++++++++++++++++ 2 files changed, 87 insertions(+), 87 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/52d8e625/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockInfo.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockInfo.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockInfo.java deleted file mode 100644 index 28bca3a..0000000 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockInfo.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.platform.websession; - -import org.apache.ignite.binary.BinaryObjectException; -import org.apache.ignite.binary.BinaryRawReader; -import org.apache.ignite.binary.BinaryRawWriter; -import org.apache.ignite.binary.BinaryReader; -import org.apache.ignite.binary.BinaryWriter; -import org.apache.ignite.binary.Binarylizable; -import org.apache.ignite.internal.util.typedef.internal.S; - -import java.sql.Timestamp; -import java.util.UUID; - -/** - * Web session lock info. - */ -public class LockInfo implements Binarylizable { - /** ID. */ - private long id; - - /** Node ID. */ - private UUID nodeId; - - /** Time. */ - private Timestamp time; - - /** - * @return Lock ID. - */ - public long id() { - return id; - } - - /** - * @return Node ID. - */ - public UUID nodeId() { - return nodeId; - } - - /** - * @return Time. - */ - public Timestamp time() { - return time; - } - - /** {@inheritDoc} */ - @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { - BinaryRawWriter raw = writer.rawWriter(); - - raw.writeLong(id); - raw.writeUuid(nodeId); - raw.writeTimestamp(time); - } - - /** {@inheritDoc} */ - @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { - BinaryRawReader raw = reader.rawReader(); - - id = raw.readLong(); - nodeId = raw.readUuid(); - time = raw.readTimestamp(); - } - - /** {@inheritDoc} */ - @Override public String toString() { - return S.toString(LockInfo.class, this); - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/52d8e625/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockInfo.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockInfo.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockInfo.java new file mode 100644 index 0000000..45cc317 --- /dev/null +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockInfo.java @@ -0,0 +1,87 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ignite.internal.processors.platform.websession; + +import org.apache.ignite.binary.BinaryObjectException; +import org.apache.ignite.binary.BinaryRawReader; +import org.apache.ignite.binary.BinaryRawWriter; +import org.apache.ignite.binary.BinaryReader; +import org.apache.ignite.binary.BinaryWriter; +import org.apache.ignite.binary.Binarylizable; +import org.apache.ignite.internal.util.typedef.internal.S; + +import java.sql.Timestamp; +import java.util.UUID; + +/** + * Web session lock info. + */ +public class SessionStateLockInfo implements Binarylizable { + /** ID. */ + private long id; + + /** Node ID. */ + private UUID nodeId; + + /** Time. */ + private Timestamp time; + + /** + * @return Lock ID. + */ + public long id() { + return id; + } + + /** + * @return Node ID. + */ + public UUID nodeId() { + return nodeId; + } + + /** + * @return Time. + */ + public Timestamp time() { + return time; + } + + /** {@inheritDoc} */ + @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { + BinaryRawWriter raw = writer.rawWriter(); + + raw.writeLong(id); + raw.writeUuid(nodeId); + raw.writeTimestamp(time); + } + + /** {@inheritDoc} */ + @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { + BinaryRawReader raw = reader.rawReader(); + + id = raw.readLong(); + nodeId = raw.readUuid(); + time = raw.readTimestamp(); + } + + /** {@inheritDoc} */ + @Override public String toString() { + return S.toString(SessionStateLockInfo.class, this); + } +}