Examples of GridClient


Examples of com.ngt.jopenmetaverse.shared.sim.GridClient

public class InventoryTest {

  @Test
  public void inventoryCreationTests()
  {
    GridClient client = new GridClient();
    UUID uuid1 = new UUID("83a92bbc-d795-458d-baf9-822c75ec0d92");
    Inventory inventory = new Inventory(client, client.inventory, uuid1);
    InventoryFolder rootFolder = new InventoryFolder(uuid1);
    rootFolder.Name = "";
    rootFolder.ParentUUID = UUID.Zero;
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.GridClient

  }
 
  @Test
  public void saveAssetToCacheTests()
  {
    GridClient client = new GridClient();
    AssetCache assetCache = new AssetCache(client);
    Login(client);
    PlatformUtils.sleep(5000);
   
    Map<UUID, byte[]> inventory = new HashMap<UUID, byte[]>();
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.GridClient

  }
 
  @Test
  public void saveLargeAssetToCacheTests()
  {
    GridClient client = new GridClient();
    AssetCache assetCache = new AssetCache(client);
    Login(client);
    PlatformUtils.sleep(5000);
    byte[] bytes;
    Map<UUID, byte[]> inventory = new HashMap<UUID, byte[]>();
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.GridClient

  }

  @Test
  public void compressAndSaveImageToCacheTests()
  {
    GridClient client = new GridClient();
    AssetCache assetCache = new AssetCache(client);
    Login(client);
    PlatformUtils.sleep(5000);
    byte[] bytes;
    Map<UUID, LoadCachedImageResult> inventory = new HashMap<UUID, LoadCachedImageResult>();
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.GridClient

 
 
 
  private void createAndRaisePacketEventDictionary(int observerListNum, boolean isAsync, int timeout)
  {
    GridClient gd = new GridClient();
    Simulator sim = new Simulator(gd, new InetSocketAddress(Settings.BIND_ADDR, 4444), new BigInteger("9999"));
   
    /* Add few Observers and raise event*/
    List<SimpleTestObserver> observerList1 = new ArrayList<SimpleTestObserver>();
    PacketEventDictionary pvd2 = new PacketEventDictionary(gd);
View Full Code Here

Examples of gridool.GridClient

        return result;
    }

    private static Grid connectToGrid(boolean delegate) {
        boolean delegated = false;
        GridClient grid = new GridClient();
        if(delegate) {
            try {
                final GridNode delegatedNode = grid.delegate(true);
                if(delegatedNode != null) {
                    delegated = true;
                    grid = new GridClient(delegatedNode);
                }
            } catch (RemoteException e) {
                LOG.warn(e.getMessage(), e);
            }
            if(LOG.isInfoEnabled()) {
                LOG.info("Connected to the Grid (" + (delegated ? "remote" : "local")
                        + " master): " + grid.getEndpoint());
            }
        }
        return grid;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.