com.sun.jini.start
Class DestroySharedGroup
java.lang.Object
com.sun.jini.start.DestroySharedGroup
public class DestroySharedGroup
- extends Object
This class contains the command-line interface for
destroying an instance of a shared activation group.
The following items are discussed below:
Configuring DestroySharedGroup
This implementation of DestroySharedGroup
supports the
following configuration entries, with component
com.sun.jini.start
:
•
|
activationSystemPreparer
|
  |
Type: | ProxyPreparer
|
  |
Default: |
new BasicProxyPreparer ()
|
  |
Description: | The proxy preparer for the proxy for the
activation system. The value should not be null . This
entry is obtained at service start and restart. This entry is only
used by the activatable implementation.
The service calls the unregisterObject method on the ActivationSystem when there is a problem
creating a service.
|
•
|
loginContext
|
  |
Type: | LoginContext
|
  |
Default: | null
|
  |
Description: | If not null , specifies the JAAS
login context to use for performing a JAAS login and supplying the
Subject to use when running the
services starter. If null , no JAAS login is performed.
|
•
|
serviceDestructors
|
  |
Type: | ServiceDescriptor []
|
  |
Default: no default
|
  |
Description: | Array of service descriptors to start.
|
Loggers and Logging Levels
The DestroySharedGroup service implementation uses the Logger
, named
com.sun.jini.start.service.starter
.
The following table describes the
type of information logged as well as the levels of information logged.
com.sun.jini.start.service.starter
Level | Description
|
SEVERE |
for problems that prevent service destruction from proceeding
|
WARNING |
for problems with service destruction that don't prevent further
processing
|
FINER |
for high level
service destruction operation tracing
|
FINEST |
for low level
service destruction operation tracing
|
- Since:
- 1.2
- Author:
- Sun Microsystems, Inc.
- See Also:
ServiceStarter
Field Summary |
private static Logger |
logger
Configure logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final Logger logger
- Configure logger.
DestroySharedGroup
private DestroySharedGroup()
main
public static void main(String[] args)
- The main method for the
DestroySharedGroup
application.
The args
parameter is passed directly to
ConfigurationProvider.getInstance()
in order to
obtain a Configuration
object. This configuration
object is then queried for a
com.sun.jini.start.serviceDestructors
entry, which
is assumed to be a SharedActivatableServiceDescriptor[]
configured to run SharedGroup
implementations.
The destroyVM()
method is then called on each of the array elements. An attempt is
made to also delete shared group log
directory associated
with each array element.
- Parameters:
args
- String[]
passed to
ConfigurationProvider.getInstance()
in order
to obtain a Configuration
object.- See Also:
ServiceDescriptor
,
SharedActivatableServiceDescriptor
,
Configuration
,
ConfigurationProvider
destroy
private static void destroy(ServiceDescriptor[] srvArray,
Configuration config)
throws Exception
- Method that attempts to destroy any available
SharedGroup
objects in the provided ServiceDescriptor[]
.
- Throws:
Exception
destroyWithLogin
private static void destroyWithLogin(ServiceDescriptor[] descs,
Configuration config,
LoginContext loginContext)
throws Exception
- Method that attempts to login via the provided
LoginContext
and then calls destroy
.
- Throws:
Exception
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.