ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [4/5] incubator-ignite git commit: #ignite-189: move AuthenticationEvent to org.gridgain.grid.events.
Date Fri, 13 Feb 2015 08:50:25 GMT
#ignite-189: move AuthenticationEvent to org.gridgain.grid.events.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/61910ebe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/61910ebe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/61910ebe

Branch: refs/heads/ignite-189
Commit: 61910ebebde28ad45a43f0e6f5fcab595b7b6a33
Parents: d169d96
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Fri Feb 13 11:46:41 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Fri Feb 13 11:46:41 2015 +0300

----------------------------------------------------------------------
 .../ignite/events/AuthenticationEvent.java      | 172 -------------------
 1 file changed, 172 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/61910ebe/modules/core/src/main/java/org/apache/ignite/events/AuthenticationEvent.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/events/AuthenticationEvent.java
b/modules/core/src/main/java/org/apache/ignite/events/AuthenticationEvent.java
deleted file mode 100644
index 922f7f7..0000000
--- a/modules/core/src/main/java/org/apache/ignite/events/AuthenticationEvent.java
+++ /dev/null
@@ -1,172 +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.events;
-
-import org.apache.ignite.cluster.*;
-import org.apache.ignite.internal.util.tostring.*;
-import org.apache.ignite.internal.util.typedef.internal.*;
-import org.apache.ignite.plugin.security.*;
-
-import java.util.*;
-
-/**
- * Grid authentication event.
- * <p>
- * Grid events are used for notification about what happens within the grid. Note that by
- * design Ignite keeps all events generated on the local node locally and it provides
- * APIs for performing a distributed queries across multiple nodes:
- * <ul>
- *      <li>
- *          {@link org.apache.ignite.IgniteEvents#remoteQuery(org.apache.ignite.lang.IgnitePredicate,
long, int...)} -
- *          asynchronously querying events occurred on the nodes specified, including remote
nodes.
- *      </li>
- *      <li>
- *          {@link org.apache.ignite.IgniteEvents#localQuery(org.apache.ignite.lang.IgnitePredicate,
int...)} -
- *          querying only local events stored on this local node.
- *      </li>
- *      <li>
- *          {@link org.apache.ignite.IgniteEvents#localListen(org.apache.ignite.lang.IgnitePredicate,
int...)} -
- *          listening to local grid events (events from remote nodes not included).
- *      </li>
- * </ul>
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate,
int...)}.
- * <h1 class="header">Events and Performance</h1>
- * It is <b>highly recommended</b> to enable only those events that your application
logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()}
method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated
but not stored by
- * event storage SPI if they are disabled in Ignite configuration.
- * @see EventType#EVT_AUTHENTICATION_FAILED
- * @see EventType#EVT_AUTHENTICATION_SUCCEEDED
- */
-public class AuthenticationEvent extends EventAdapter {
-    /** */
-    private static final long serialVersionUID = 0L;
-
-    /**  Subject type. */
-    private GridSecuritySubjectType subjType;
-
-    /** Subject ID. */
-    private UUID subjId;
-
-    /** Login. */
-    @GridToStringInclude
-    private Object login;
-
-    /** {@inheritDoc} */
-    @Override public String shortDisplay() {
-        return name() + ": subjType=" + subjType;
-    }
-
-    /**
-     * No-arg constructor.
-     */
-    public AuthenticationEvent() {
-        // No-op.
-    }
-
-    /**
-     * Creates authentication event with given parameters.
-     *
-     * @param msg Optional message.
-     * @param type Event type.
-     */
-    public AuthenticationEvent(ClusterNode node, String msg, int type) {
-        super(node, msg, type);
-    }
-
-    /**
-     * Creates authentication event with given parameters.
-     *
-     * @param node Node.
-     * @param msg Optional message.
-     * @param type Event type.
-     * @param subjType Subject type.
-     * @param subjId Subject ID.
-     */
-    public AuthenticationEvent(ClusterNode node, String msg, int type, GridSecuritySubjectType
subjType,
-        UUID subjId, Object login) {
-        super(node, msg, type);
-
-        this.subjType = subjType;
-        this.subjId = subjId;
-        this.login = login;
-    }
-
-    /**
-     * Gets subject type that triggered the event.
-     *
-     * @return Subject type that triggered the event.
-     */
-    public GridSecuritySubjectType subjectType() {
-        return subjType;
-    }
-
-    /**
-     * Gets subject ID that triggered the event.
-     *
-     * @return Subject ID that triggered the event.
-     */
-    public UUID subjectId() {
-        return subjId;
-    }
-
-    /**
-     * Sets subject type that triggered the event.
-     *
-     * @param subjType Subject type to set.
-     */
-    public void subjectType(GridSecuritySubjectType subjType) {
-        this.subjType = subjType;
-    }
-
-    /**
-     * Gets login that triggered event.
-     *
-     * @return Login object.
-     */
-    public Object login() {
-        return login;
-    }
-
-    /**
-     * Sets login that triggered event.
-     *
-     * @param login Login object.
-     */
-    public void login(Object login) {
-        this.login = login;
-    }
-
-    /**
-     * Sets subject ID that triggered the event.
-     *
-     * @param subjId Subject ID to set.
-     */
-    public void subjectId(UUID subjId) {
-        this.subjId = subjId;
-    }
-
-    /** {@inheritDoc} */
-    @Override public String toString() {
-        return S.toString(AuthenticationEvent.class, this,
-            "nodeId8", U.id8(node().id()),
-            "msg", message(),
-            "type", name(),
-            "tstamp", timestamp());
-    }
-}


Mime
View raw message