Codota Logo
RmiRegistry.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.jme3.network.service.rmi.RmiRegistry
constructor

Best Java code snippets using com.jme3.network.service.rmi.RmiRegistry.<init> (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

@Override
protected void onInitialize( ClientServiceManager s ) {
  rpc = getService(RpcClientService.class);
  if( rpc == null ) {
    throw new RuntimeException("RmiClientService requires RpcClientService");
  }
  
  // Register it now so that it is available when the
  // server starts to send us stuff.  Waiting until start()
  // is too late in this case.
  rmi = new RmiRegistry(rpc.getRpcConnection(), rmiObjectId, defaultChannel);        
}
 
origin: jMonkeyEngine/jmonkeyengine

/**
 *  Sets up RMI hosting services for the hosted connection allowing
 *  getRmiRegistry() to return a valid RmiRegistry object.
 *  This method is called automatically for all new connections if
 *  autohost is set to true.
 */
public void startHostingOnConnection( HostedConnection hc ) {
  if( log.isLoggable(Level.FINEST) ) {
    log.log(Level.FINEST, "startHostingOnConnection:{0}", hc);
  }
  RmiRegistry rmi = new RmiRegistry(hc, rpcService.getRpcConnection(hc), 
                   rmiId, defaultChannel); 
  hc.setAttribute(ATTRIBUTE_NAME, rmi);
  
  // Register any global shares
  for( Map.Entry<String, GlobalShare> e : globalShares.entrySet() ) {
    GlobalShare share = e.getValue();
    rmi.share(share.channel, e.getKey(), share.object, share.type); 
  }
}
origin: org.jmonkeyengine/jme3-networking

@Override
protected void onInitialize( ClientServiceManager s ) {
  rpc = getService(RpcClientService.class);
  if( rpc == null ) {
    throw new RuntimeException("RmiClientService requires RpcClientService");
  }
  
  // Register it now so that it is available when the
  // server starts to send us stuff.  Waiting until start()
  // is too late in this case.
  rmi = new RmiRegistry(rpc.getRpcConnection(), rmiObjectId, defaultChannel);        
}
 
origin: org.jmonkeyengine/jme3-networking

/**
 *  Sets up RMI hosting services for the hosted connection allowing
 *  getRmiRegistry() to return a valid RmiRegistry object.
 *  This method is called automatically for all new connections if
 *  autohost is set to true.
 */
public void startHostingOnConnection( HostedConnection hc ) {
  if( log.isLoggable(Level.FINEST) ) {
    log.log(Level.FINEST, "startHostingOnConnection:{0}", hc);
  }
  RmiRegistry rmi = new RmiRegistry(hc, rpcService.getRpcConnection(hc), 
                   rmiId, defaultChannel); 
  hc.setAttribute(ATTRIBUTE_NAME, rmi);
  
  // Register any global shares
  for( Map.Entry<String, GlobalShare> e : globalShares.entrySet() ) {
    GlobalShare share = e.getValue();
    rmi.share(share.channel, e.getKey(), share.object, share.type); 
  }
}
com.jme3.network.service.rmiRmiRegistry<init>

Popular methods of RmiRegistry

  • getRemoteObject
    Looks up a remote object by name and returns a local proxy to the remote object that was shared on t
  • share
    Exposes the specified object to the other end of the connection as the specified interface type and
  • addRemoteClass
  • addRemoteObject
  • getLocalObject
    Returns a local object that was previously registered with share() using name registration.
  • invokeLocal
    Handle the actual remote object method calls.
  • invokeRemote
  • removeRemoteObject
  • rmiUpdate
    Handle remote object registry updates from the other end.

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now