Imported GNU Classpath 0.90

Imported GNU Classpath 0.90
       * scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.

       * sources.am: Regenerated.
       * gcj/javaprims.h: Regenerated.
       * Makefile.in: Regenerated.
       * gcj/Makefile.in: Regenerated.
       * include/Makefile.in: Regenerated.
       * testsuite/Makefile.in: Regenerated.

       * gnu/java/lang/VMInstrumentationImpl.java: New override.
       * gnu/java/net/local/LocalSocketImpl.java: Likewise.
       * gnu/classpath/jdwp/VMMethod.java: Likewise.
       * gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
       interface.
       * java/lang/Thread.java: Add UncaughtExceptionHandler.
       * java/lang/reflect/Method.java: Implements GenericDeclaration and
       isSynthetic(),
       * java/lang/reflect/Field.java: Likewise.
       * java/lang/reflect/Constructor.java
       * java/lang/Class.java: Implements Type, GenericDeclaration,
       getSimpleName() and getEnclosing*() methods.
       * java/lang/Class.h: Add new public methods.
       * java/lang/Math.java: Add signum(), ulp() and log10().
       * java/lang/natMath.cc (log10): New function.
       * java/security/VMSecureRandom.java: New override.
       * java/util/logging/Logger.java: Updated to latest classpath
       version.
       * java/util/logging/LogManager.java: New override.

From-SVN: r113887
This commit is contained in:
Mark Wielaard 2006-05-18 17:29:21 +00:00
parent eaec4980e1
commit 4f9533c772
1640 changed files with 126485 additions and 104808 deletions

View file

@ -1,5 +1,6 @@
/* ActivationSystem.java --
Copyright (c) 1996, 1997, 1998, 1999, 2004 Free Software Foundation, Inc.
/* ActivationSystem.java -- registers groups and objects to be activated.
Copyright (c) 1996, 1997, 1998, 1999, 2004, 2006
Free Software Foundation, Inc.
This file is part of GNU Classpath.
@ -41,38 +42,165 @@ package java.rmi.activation;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface ActivationSystem extends Remote
/**
* <p>
* The ActivationSystem registers groups and activatable objects to be activated
* within those groups. The ActivationSystem cooperates with both the Activator,
* which activates objects registered via the ActivationSystem, and the
* ActivationMonitor, which obtains information about active and inactive
* objects and inactive groups.
* </p>
* <p>
* The activation system if frequently a remote object. As a security mean, all
* methods in this interface throw {@link java.rmi.AccessException} if called
* from the client that is not reside on the same host as the activation system.
* </p>
* @see ActivationGroup#getSystem()
*/
public interface ActivationSystem
extends Remote
{
/**
* The port, used by the activation system. The value is equal to 1098 by
* default, but it can be changed by putting the system property
* .
*/
int SYSTEM_PORT = 1098;
/**
* Registers the activation descriptor and creates (and returns) its
* activation identifier. The map entry (identifier to descriptor) is stored
* in the stable map and used when the {@link Activator} receives the request
* to activate the object.
*
* @param desc the activation descriptor to register.
* @return the created activation identifier that is mapped to the passed
* descriptor.
* @throws ActivationException if the registration fails (database update
* problems, etc).
* @throws UnknownGroupException the if group, specified in decriptor, is
* unknown.
* @throws RemoteException if the remote call fails.
*/
ActivationID registerObject(ActivationDesc desc) throws ActivationException,
UnknownGroupException, RemoteException;
/**
* Removes the stored identifier-description map entry. The object will no
* longer be activable using the passed activation id
*
* @param id the activation id to remove
* @throws ActivationException if the entry removing operation failed
* (database update problems, etc)
* @throws UnknownObjectException if the passed id is not known to the system
* @throws RemoteException if the remote call fails
*/
void unregisterObject(ActivationID id) throws ActivationException,
UnknownObjectException, RemoteException;
/**
* Register the new activation group. For instance, it can be one activation
* group per virtual machine.
*
* @param groupDesc the activation group descriptor.
* @return the created activation group ID for the activation group
* @throws ActivationException if the group registration fails
* @throws RemoteException if the remote call fails
*/
ActivationGroupID registerGroup(ActivationGroupDesc groupDesc)
throws ActivationException, RemoteException;
/**
* This method is called from the {@link ActivationGroup} to inform the
* ActivatinSystem that the group is now active and there is the
* {@link ActivationInstantiator} for that group. This call is made internally
* from the {@link ActivationGroup#createGroup}.
*
* @param id the group id
* @param group the group activation instantiator
* @param incarnation the groups incarnatin number.
* @return the activation monitor that should be informed about the group
* state changes
* @throws UnknownGroupException if this group has not been registered
* @throws ActivationException if this group is already active
* @throws RemoteException if the remote call fails
*/
ActivationMonitor activeGroup(ActivationGroupID id,
ActivationInstantiator group, long incarnation)
throws UnknownGroupException, ActivationException, RemoteException;
ActivationID registerObject (ActivationDesc desc)
throws ActivationException, UnknownGroupException, RemoteException;
/**
* Removes the activation group with the given identifier. The group calls
* back, informing the activator about the shutdown.
*
* @param id the group activation id.
* @throws ActivationException if the database update fails
* @throws UnknownGroupException if such group is not registered
* @throws RemoteException if the remote call fails
*/
void unregisterGroup(ActivationGroupID id) throws ActivationException,
UnknownGroupException, RemoteException;
/**
* Shutdown the activation system and all associated activation groups
*
* @throws RemoteException if the remote call fails
*/
void shutdown() throws RemoteException;
void unregisterObject (ActivationID id)
throws ActivationException, UnknownObjectException, RemoteException;
ActivationGroupID registerGroup (ActivationGroupDesc desc)
throws ActivationException, RemoteException;
ActivationMonitor activeGroup (ActivationGroupID id,
ActivationInstantiator group, long incarnation)
throws UnknownGroupException, ActivationException, RemoteException;
void unregisterGroup (ActivationGroupID id)
throws ActivationException, UnknownGroupException, RemoteException;
void shutdown()
throws RemoteException;
ActivationDesc setActivationDesc (ActivationID id, ActivationDesc desc)
throws ActivationException, UnknownObjectException, UnknownGroupException,
RemoteException;
ActivationGroupDesc setActivationGroupDesc (ActivationGroupID id,
ActivationGroupDesc desc)
throws ActivationException, UnknownGroupException, RemoteException;
ActivationDesc getActivationDesc (ActivationID id) throws ActivationException, UnknownObjectException, RemoteException;
ActivationGroupDesc getActivationGroupDesc (ActivationGroupID id) throws ActivationException, UnknownGroupException, RemoteException;
/**
* Replace the activation descriptor for the object with the given activation
* id.
*
* @param id the activation id
* @param desc the new activation descriptor
* @return the previous activation descriptor for that object.
* @throws ActivationException if the database update fails
* @throws UnknownObjectException if the object with such id is not known
* @throws UnknownGroupException if the activation group (in desc) is not
* known.
* @throws RemoteException if the remote call fails
*/
ActivationDesc setActivationDesc(ActivationID id, ActivationDesc desc)
throws ActivationException, UnknownObjectException,
UnknownGroupException, RemoteException;
/**
* Replaces the group descriptor for the group with the given group activation
* id.
*
* @param groupId the group id
* @param groupDesc the new group descriptor
* @return the previous group descriptor
* @throws ActivationException if the database update fails
* @throws UnknownGroupException if such group is not known
* @throws RemoteException if the remote call fails
*/
ActivationGroupDesc setActivationGroupDesc(ActivationGroupID groupId,
ActivationGroupDesc groupDesc)
throws ActivationException, UnknownGroupException, RemoteException;
/**
* Get the activation descriptor for the object with the given activation id.
*
* @param id the object activation id
* @return the activation descriptor for that object
* @throws ActivationException if the database access fails
* @throws UnknownObjectException if this object is not known
* @throws RemoteException if the remote call fails
*/
ActivationDesc getActivationDesc(ActivationID id) throws ActivationException,
UnknownObjectException, RemoteException;
/**
* Get the group descriptor for the group with the given id.
*
* @param groupId the group id
* @return the group descriptor
* @throws ActivationException if the database access fails
* @throws UnknownGroupException if the group with such id is not known
* @throws RemoteException if the remote call fails
*/
ActivationGroupDesc getActivationGroupDesc(ActivationGroupID groupId)
throws ActivationException, UnknownGroupException, RemoteException;
}