You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/09/08 14:46:21 UTC
[39/50] ignite git commit: SessionStateLockEntryResult
SessionStateLockEntryResult
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/89d293b0
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/89d293b0
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/89d293b0
Branch: refs/heads/ignite-3199-1
Commit: 89d293b06bc3ec2e62e26da63ecee0f7b6748ac4
Parents: 0a9f577
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Thu Sep 8 13:49:39 2016 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Thu Sep 8 13:49:39 2016 +0300
----------------------------------------------------------------------
.../platform/websession/LockEntryResult.java | 100 -------------------
.../websession/SessionStateLockEntryResult.java | 100 +++++++++++++++++++
2 files changed, 100 insertions(+), 100 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/89d293b0/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryResult.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryResult.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryResult.java
deleted file mode 100644
index 27512c5..0000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryResult.java
+++ /dev/null
@@ -1,100 +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;
-
-/**
- * Result of the {@link LockEntryProcessor} execution.
- */
-@SuppressWarnings({"AssignmentToDateFieldFromParameter", "ReturnOfDateField"})
-public class LockEntryResult implements Binarylizable {
- /** Success flag. */
- private boolean success;
-
- /** Data. */
- private SessionStateData data;
-
- /** Lock time. */
- private Timestamp lockTime;
-
- /**
- * Ctor.
- *
- * @param success Success flag.
- * @param data Session data.
- * @param lockTime Lock time.
- */
- public LockEntryResult(boolean success, SessionStateData data, Timestamp lockTime) {
- this.success = success;
- this.data = data;
- this.lockTime = lockTime;
- }
-
- /**
- * @return Success flag.
- */
- public boolean success() {
- return success;
- }
-
- /**
- * @return Session state data.
- */
- public SessionStateData data() {
- return data;
- }
-
- /**
- * @return Lock time.
- */
- public Timestamp lockTime() {
- return lockTime;
- }
-
- /** {@inheritDoc} */
- @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
- BinaryRawWriter raw = writer.rawWriter();
-
- raw.writeBoolean(success);
- raw.writeObject(data);
- raw.writeTimestamp(lockTime);
- }
-
- /** {@inheritDoc} */
- @Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
- BinaryRawReader raw = reader.rawReader();
-
- success = raw.readBoolean();
- data = raw.readObject();
- lockTime = raw.readTimestamp();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(LockEntryResult.class, this);
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/89d293b0/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockEntryResult.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockEntryResult.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockEntryResult.java
new file mode 100644
index 0000000..28e0a6b
--- /dev/null
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateLockEntryResult.java
@@ -0,0 +1,100 @@
+/*
+ * 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;
+
+/**
+ * Result of the {@link LockEntryProcessor} execution.
+ */
+@SuppressWarnings({"AssignmentToDateFieldFromParameter", "ReturnOfDateField"})
+public class SessionStateLockEntryResult implements Binarylizable {
+ /** Success flag. */
+ private boolean success;
+
+ /** Data. */
+ private SessionStateData data;
+
+ /** Lock time. */
+ private Timestamp lockTime;
+
+ /**
+ * Ctor.
+ *
+ * @param success Success flag.
+ * @param data Session data.
+ * @param lockTime Lock time.
+ */
+ public SessionStateLockEntryResult(boolean success, SessionStateData data, Timestamp lockTime) {
+ this.success = success;
+ this.data = data;
+ this.lockTime = lockTime;
+ }
+
+ /**
+ * @return Success flag.
+ */
+ public boolean success() {
+ return success;
+ }
+
+ /**
+ * @return Session state data.
+ */
+ public SessionStateData data() {
+ return data;
+ }
+
+ /**
+ * @return Lock time.
+ */
+ public Timestamp lockTime() {
+ return lockTime;
+ }
+
+ /** {@inheritDoc} */
+ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
+ BinaryRawWriter raw = writer.rawWriter();
+
+ raw.writeBoolean(success);
+ raw.writeObject(data);
+ raw.writeTimestamp(lockTime);
+ }
+
+ /** {@inheritDoc} */
+ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
+ BinaryRawReader raw = reader.rawReader();
+
+ success = raw.readBoolean();
+ data = raw.readObject();
+ lockTime = raw.readTimestamp();
+ }
+
+ /** {@inheritDoc} */
+ @Override public String toString() {
+ return S.toString(SessionStateLockEntryResult.class, this);
+ }
+}