com.intrinsyc.janet
Class Main

java.lang.Object
  |
  +--com.intrinsyc.janet.Main

public class Main
extends java.lang.Object

The Main class for the Ja.NET runtime. Used to start the runtime when the runtime is being used to host Java server objects (but not inside servlets).

© 2007 Intrinsyc Software International, Inc. All rights reserved.

Version:
1.4

Method Summary
static void addInvocationListener(InvocationListener listener)
           
static void disableLogging()
          Disables logging, overrides config file settings Call this only after the config file has been loaded
static java.lang.Object getSingletonInstance(java.lang.String className)
          Method getSingletonInstance If a Ja.NET server is running a singleton instance of the class specified by className, then the instance is returned, else null is returned.
static java.lang.String getVersion()
          Retrieves the current version of the runtime
static void initWithoutConfigurationFile()
          provides a mechanism to prevent the runtime from trying to load a configuration file.
static void main(java.lang.String[] args)
          Starts the Ja.NET runtime.
static void reenableLogging()
          Re-enables logging after logging has been disabled by calling disableLogging
static void removeInvocationListener(InvocationListener listener)
           
static void shutdown()
          Method shutdown Shuts down the runtime ending all server tasks
static long timeToExpiration(java.lang.Object o)
          Returns how long until the lease on an object expires Throws a remote exception if there is no lease on an object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addInvocationListener

public static void addInvocationListener(InvocationListener listener)

disableLogging

public static void disableLogging()
Disables logging, overrides config file settings Call this only after the config file has been loaded


getSingletonInstance

public static java.lang.Object getSingletonInstance(java.lang.String className)
                                             throws RemoteException
Method getSingletonInstance If a Ja.NET server is running a singleton instance of the class specified by className, then the instance is returned, else null is returned.

RemoteException

getVersion

public static java.lang.String getVersion()
Retrieves the current version of the runtime


initWithoutConfigurationFile

public static void initWithoutConfigurationFile()
                                         throws RemoteException
provides a mechanism to prevent the runtime from trying to load a configuration file. Call this before any other runtime methods or proxy methods are accessed.

Throws:
RemoteException

main

public static void main(java.lang.String[] args)
                 throws RemoteException
Starts the Ja.NET runtime. Configuration settings are read from a configuration file called Janet.xml in the current directory unless a configuration file is explicitly specified with the option -DJANET_CONFIG_FILE=. Use Janetor to set the configuration file.

Parameters:
args -
Throws:
RemoteException

reenableLogging

public static void reenableLogging()
Re-enables logging after logging has been disabled by calling disableLogging


removeInvocationListener

public static void removeInvocationListener(InvocationListener listener)

shutdown

public static void shutdown()
Method shutdown Shuts down the runtime ending all server tasks


timeToExpiration

public static long timeToExpiration(java.lang.Object o)
                             throws RemoteException
Returns how long until the lease on an object expires Throws a remote exception if there is no lease on an object

RemoteException