Skip to content

Commit

Permalink
sprint-1 - Renaming ManagedServices to IgniteServices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitiry Setrakyan committed Feb 6, 2015
1 parent ce0c304 commit 9200ef5
Show file tree
Hide file tree
Showing 72 changed files with 366 additions and 376 deletions.
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.cluster.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.cluster.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.cluster.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.cluster.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute;
package org.apache.ignite.examples.computegrid;

import org.apache.ignite.*;
import org.apache.ignite.compute.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute.failover;
package org.apache.ignite.examples.computegrid.failover;

import org.apache.ignite.*;
import org.apache.ignite.compute.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute.failover;
package org.apache.ignite.examples.computegrid.failover;

import org.apache.ignite.*;
import org.apache.ignite.configuration.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute.montecarlo;
package org.apache.ignite.examples.computegrid.montecarlo;

import java.io.*;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute.montecarlo;
package org.apache.ignite.examples.computegrid.montecarlo;

import org.apache.ignite.*;
import org.apache.ignite.examples.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.compute.montecarlo;
package org.apache.ignite.examples.computegrid.montecarlo;

import java.util.*;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.datagrid.datastructures;
package org.apache.ignite.examples.datastructures;

import org.apache.ignite.*;
import org.apache.ignite.examples.datagrid.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.datagrid.datastructures;
package org.apache.ignite.examples.datastructures;

import org.apache.ignite.*;
import org.apache.ignite.examples.datagrid.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.datagrid.datastructures;
package org.apache.ignite.examples.datastructures;

import org.apache.ignite.*;
import org.apache.ignite.examples.datagrid.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.datagrid.datastructures;
package org.apache.ignite.examples.datastructures;

import org.apache.ignite.*;
import org.apache.ignite.examples.datagrid.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.datagrid.datastructures;
package org.apache.ignite.examples.datastructures;

import org.apache.ignite.*;
import org.apache.ignite.examples.datagrid.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.datagrid.datastructures;
package org.apache.ignite.examples.datastructures;

import org.apache.ignite.*;
import org.apache.ignite.configuration.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.datagrid.datastructures;
package org.apache.ignite.examples.datastructures;

import org.apache.ignite.*;
import org.apache.ignite.configuration.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.services;
package org.apache.ignite.examples.servicegrid;

import org.apache.ignite.*;
import org.apache.ignite.cluster.*;
Expand Down Expand Up @@ -57,7 +57,7 @@ public static void main(String[] args) throws Exception {
return;
}

IgniteManaged svcs = ignite.managed(rmts);
IgniteServices svcs = ignite.services(rmts);

try {
// Deploy cluster singleton.
Expand All @@ -79,7 +79,7 @@ public static void main(String[] args) throws Exception {
}
finally {
// Undeploy all services.
ignite.managed().cancelAll();
ignite.services().cancelAll();
}
}
}
Expand All @@ -96,7 +96,7 @@ private static void serviceProxyExample(Ignite ignite) throws Exception {
System.out.println(">>>");

// Get a sticky proxy for node-singleton map service.
SimpleMapService<Integer, String> mapSvc = ignite.managed().serviceProxy("myNodeSingletonService", SimpleMapService.class, true);
SimpleMapService<Integer, String> mapSvc = ignite.services().serviceProxy("myNodeSingletonService", SimpleMapService.class, true);

int cnt = 10;

Expand Down Expand Up @@ -126,7 +126,7 @@ private static void serviceInjectionExample(Ignite ignite) throws Exception {
System.out.println(">>>");

// Get a sticky proxy for cluster-singleton map service.
SimpleMapService<Integer, String> mapSvc = ignite.managed().serviceProxy("myClusterSingletonService", SimpleMapService.class, true);
SimpleMapService<Integer, String> mapSvc = ignite.services().serviceProxy("myClusterSingletonService", SimpleMapService.class, true);

int cnt = 10;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.ignite.examples.services;
package org.apache.ignite.examples.servicegrid;

/**
* Simple map service.
Expand Down
Expand Up @@ -15,17 +15,17 @@
* limitations under the License.
*/

package org.apache.ignite.examples.services;
package org.apache.ignite.examples.servicegrid;

import org.apache.ignite.managed.*;
import org.apache.ignite.services.*;

import java.util.*;
import java.util.concurrent.*;

/**
* Simple service which loops infinitely and prints out a counter.
*/
public class SimpleMapServiceImpl<K, V> implements ManagedService, SimpleMapService<K, V> {
public class SimpleMapServiceImpl<K, V> implements Service, SimpleMapService<K, V> {
/** Serial version UID. */
private static final long serialVersionUID = 0L;

Expand Down Expand Up @@ -53,19 +53,19 @@ public class SimpleMapServiceImpl<K, V> implements ManagedService, SimpleMapServ
}

/** {@inheritDoc} */
@Override public void cancel(ManagedServiceContext ctx) {
@Override public void cancel(ServiceContext ctx) {
System.out.println("Service was cancelled: " + ctx.name());
}

/** {@inheritDoc} */
@Override public void init(ManagedServiceContext ctx) throws Exception {
@Override public void init(ServiceContext ctx) throws Exception {
System.out.println("Service was initialized: " + ctx.name());

map = new ConcurrentHashMap<>();
}

/** {@inheritDoc} */
@Override public void execute(ManagedServiceContext ctx) throws Exception {
@Override public void execute(ServiceContext ctx) throws Exception {
System.out.println("Executing distributed service: " + ctx.name());
}
}
Expand Up @@ -17,7 +17,7 @@

package org.apache.ignite.examples;

import org.apache.ignite.examples.compute.*;
import org.apache.ignite.examples.computegrid.*;
import org.apache.ignite.testframework.junits.common.*;

/**
Expand Down
Expand Up @@ -18,7 +18,7 @@
package org.apache.ignite.examples;

import org.apache.ignite.examples.datagrid.*;
import org.apache.ignite.examples.datagrid.datastructures.*;
import org.apache.ignite.examples.datastructures.*;
import org.apache.ignite.examples.datagrid.starschema.*;
import org.apache.ignite.examples.datagrid.store.*;
import org.apache.ignite.testframework.junits.common.*;
Expand Down
Expand Up @@ -17,7 +17,7 @@

package org.apache.ignite.examples;

import org.apache.ignite.examples.compute.failover.*;
import org.apache.ignite.examples.computegrid.failover.*;
import org.apache.ignite.testframework.junits.common.*;

/**
Expand Down
Expand Up @@ -17,7 +17,7 @@

package org.apache.ignite.examples;

import org.apache.ignite.examples.compute.*;
import org.apache.ignite.examples.computegrid.*;
import org.apache.ignite.testframework.junits.common.*;

/**
Expand Down
Expand Up @@ -17,7 +17,7 @@

package org.apache.ignite.examples;

import org.apache.ignite.examples.compute.*;
import org.apache.ignite.examples.computegrid.*;
import org.apache.ignite.testframework.junits.common.*;

/**
Expand Down
Expand Up @@ -17,7 +17,7 @@

package org.apache.ignite.examples;

import org.apache.ignite.examples.compute.montecarlo.*;
import org.apache.ignite.examples.computegrid.montecarlo.*;
import org.apache.ignite.testframework.junits.common.*;

/**
Expand Down
Expand Up @@ -17,7 +17,7 @@

package org.apache.ignite.examples;

import org.apache.ignite.examples.compute.*;
import org.apache.ignite.examples.computegrid.*;
import org.apache.ignite.testframework.junits.common.*;

/**
Expand Down
Expand Up @@ -17,7 +17,7 @@

package org.apache.ignite.examples;

import org.apache.ignite.examples.compute.*;
import org.apache.ignite.examples.computegrid.*;
import org.apache.ignite.testframework.junits.common.*;

/**
Expand Down

0 comments on commit 9200ef5

Please sign in to comment.