Public Member Functions | Protected Member Functions | Protected Attributes | Package Functions

alma.acs.container.ContainerServicesProxy Class Reference

Inheritance diagram for alma.acs.container.ContainerServicesProxy:
alma.acs.container.ContainerServices alma.acs.container.ContainerServicesBase

List of all members.

Public Member Functions

 ContainerServicesProxy (ContainerServices delegate)
String getName ()
AcsLogger getLogger ()
DAL getCDB () throws AcsJContainerServicesEx
void deactivateOffShoot (java.lang.Object offshootImpl) throws AcsJContainerServicesEx
AdvancedContainerServices getAdvancedContainerServices ()
ThreadFactory getThreadFactory ()
ComponentStateManager getComponentStateManager ()
Object getComponent (String componentUrl) throws AcsJContainerServicesEx
Object getComponentNonSticky (String curl) throws AcsJContainerServicesEx
Object getDefaultComponent (String componentIDLType) throws AcsJContainerServicesEx
Object getCollocatedComponent (String compUrl, String targetCompUrl) throws AcsJContainerServicesEx
Object getCollocatedComponent (ComponentQueryDescriptor compSpec, boolean markAsDefaul, String targetCompUrl) throws AcsJContainerServicesEx
Object getDynamicComponent (ComponentQueryDescriptor compSpec, boolean markAsDefault) throws AcsJContainerServicesEx
Object getDynamicComponent (ComponentSpec compSpec, boolean markAsDefault) throws AcsJContainerServicesEx
String[] findComponents (String curlWildcard, String typeWildcard) throws AcsJContainerServicesEx
ComponentDescriptor getComponentDescriptor (String componentUrl) throws AcsJContainerServicesEx
void releaseComponent (String componentUrl)
void releaseComponent (String componentUrl, ComponentReleaseCallback callback)
void registerComponentListener (ComponentListener listener)
Object getReferenceWithCustomClientSideTimeout (Object originalCorbaRef, double timeoutSeconds) throws AcsJContainerServicesEx
void assignUniqueEntityId (EntityT entity) throws AcsJContainerServicesEx
AcsEventSubscriber createNotificationChannelSubscriber (String channelName) throws AcsJContainerServicesEx
AcsEventSubscriber createNotificationChannelSubscriber (String channelName, String channelNotifyServiceDomainName) throws AcsJContainerServicesEx
AcsEventPublisher createNotificationChannelPublisher (String channelName) throws AcsJContainerServicesEx
AcsEventPublisher createNotificationChannelPublisher (String channelName, String channelNotifyServiceDomainName) throws AcsJContainerServicesEx
void raiseAlarm (String faultFamily, String faultMember, int faultCode) throws AcsJContainerServicesEx
void clearAlarm (String faultFamily, String faultMember, int faultCode) throws AcsJContainerServicesEx
AlarmSource getAlarmSource () throws AcsJContainerServicesEx

Protected Member Functions

void check () throws AcsJContainerServicesEx

Protected Attributes

final ContainerServices delegate

Package Functions

public< T extends Servant
&OffShootOperations > OffShoot 
activateOffShoot (T cbServant) throws AcsJContainerServicesEx
public< T extends
OffShootOperations > OffShoot 
activateOffShoot (T offshootImpl, Class< T > idlOpInterface) throws AcsJContainerServicesEx
public< T, F > T getTransparentXmlWrapper (Class< T > transparentXmlIF, F objectReference, Class< F > flatXmlIF) throws AcsJContainerServicesEx

Detailed Description

A proxy for ContainerServices} that is specifically meant to isolate implementations of the Alma OMC's PluginContainerServices interface (which extends ContainerServices) from changes in the ACS container services.

PluginContainerServicesImpl should extend ContainerServicesProxy and implement only the methods from PluginContainerServices that are not part of ContainerServices.

Note that the OMC is the only known case outside of ACS that should implement or extend ContainerServices.

Author:
hsommer

Constructor & Destructor Documentation

alma.acs.container.ContainerServicesProxy.ContainerServicesProxy ( ContainerServices  delegate  ) 

Member Function Documentation

public<T extends Servant & OffShootOperations> OffShoot alma.acs.container.ContainerServicesProxy.activateOffShoot ( T  cbServant  )  throws AcsJContainerServicesEx [package]
public<T extends OffShootOperations> OffShoot alma.acs.container.ContainerServicesProxy.activateOffShoot ( T  offshootImpl,
Class< T idlOpInterface 
) throws AcsJContainerServicesEx [package]
void alma.acs.container.ContainerServicesProxy.assignUniqueEntityId ( EntityT  entity  )  throws AcsJContainerServicesEx
void alma.acs.container.ContainerServicesProxy.clearAlarm ( String  faultFamily,
String  faultMember,
int  faultCode 
) throws AcsJContainerServicesEx

Clears the alarm described by the given triplet.

Alarms are described with a unique triplet, which is composed by a faultFamily, a faultMember and a faultCode, and referred to as FaultState. A particular alarm is mapped by exactly one FaultState, and vice-versa.

The faultFamily field identifies a set of elements of the same kind, and that present the same failures (e.g., all power supplies, which could be represented by the "PS" string).

The faultMember field identifies the particular instance of the given faultFamily that is currently clearing the alarm.

The faultCode field identifies the particular error that is being informed. Its value must match the corresponding one stored in the Alarm Service configuration that describes the situation being reported as corrected.

Parameters:
faultFamily The alarm's fault family
faultMember The alarm's fault member
faultCode The alarm's fault code
Exceptions:
AcsJContainerServicesEx if anything goes wrong while clearing the alarm
Deprecated:
The new getAlarmSource() method should be used instead, calling AlarmSource#clearAlarm(String, String, int) on the returned object

Implements alma.acs.container.ContainerServices.

References alma.acs.container.ContainerServices.clearAlarm(), and alma.acs.container.ContainerServicesProxy.delegate.

AcsEventPublisher alma.acs.container.ContainerServicesProxy.createNotificationChannelPublisher ( String  channelName,
String  channelNotifyServiceDomainName 
) throws AcsJContainerServicesEx
AcsEventPublisher alma.acs.container.ContainerServicesProxy.createNotificationChannelPublisher ( String  channelName  )  throws AcsJContainerServicesEx
AcsEventSubscriber alma.acs.container.ContainerServicesProxy.createNotificationChannelSubscriber ( String  channelName  )  throws AcsJContainerServicesEx
AcsEventSubscriber alma.acs.container.ContainerServicesProxy.createNotificationChannelSubscriber ( String  channelName,
String  channelNotifyServiceDomainName 
) throws AcsJContainerServicesEx
void alma.acs.container.ContainerServicesProxy.deactivateOffShoot ( java.lang.Object  offshootImpl  )  throws AcsJContainerServicesEx
String [] alma.acs.container.ContainerServicesProxy.findComponents ( String  curlWildcard,
String  typeWildcard 
) throws AcsJContainerServicesEx
AlarmSource alma.acs.container.ContainerServicesProxy.getAlarmSource (  )  throws AcsJContainerServicesEx

Returns the AlarmSource owned by this object. The AlarmSource object allows to raise and clear alarms, among other advanced operations

Returns:
The AlarmSource owned by this object
Exceptions:
AcsJContainerServicesEx if anything goes wrong

Implements alma.acs.container.ContainerServices.

References alma.acs.container.ContainerServicesProxy.delegate, and alma.acs.container.ContainerServices.getAlarmSource().

Object alma.acs.container.ContainerServicesProxy.getCollocatedComponent ( String  compUrl,
String  targetCompUrl 
) throws AcsJContainerServicesEx
Object alma.acs.container.ContainerServicesProxy.getCollocatedComponent ( ComponentQueryDescriptor  compSpec,
boolean  markAsDefaul,
String  targetCompUrl 
) throws AcsJContainerServicesEx
Object alma.acs.container.ContainerServicesProxy.getComponent ( String  componentUrl  )  throws AcsJContainerServicesEx
ComponentDescriptor alma.acs.container.ContainerServicesProxy.getComponentDescriptor ( String  componentUrl  )  throws AcsJContainerServicesEx
Object alma.acs.container.ContainerServicesProxy.getComponentNonSticky ( String  curl  )  throws AcsJContainerServicesEx
Object alma.acs.container.ContainerServicesProxy.getDefaultComponent ( String  componentIDLType  )  throws AcsJContainerServicesEx
Object alma.acs.container.ContainerServicesProxy.getDynamicComponent ( ComponentSpec  compSpec,
boolean  markAsDefault 
) throws AcsJContainerServicesEx
String alma.acs.container.ContainerServicesProxy.getName (  ) 
Object alma.acs.container.ContainerServicesProxy.getReferenceWithCustomClientSideTimeout ( Object  originalCorbaRef,
double  timeoutSeconds 
) throws AcsJContainerServicesEx
public<T, F> T alma.acs.container.ContainerServicesProxy.getTransparentXmlWrapper ( Class< T transparentXmlIF,
objectReference,
Class< F >  flatXmlIF 
) throws AcsJContainerServicesEx [package]
void alma.acs.container.ContainerServicesProxy.raiseAlarm ( String  faultFamily,
String  faultMember,
int  faultCode 
) throws AcsJContainerServicesEx

Raises the alarm described by the given triplet.

Alarms are described with a unique triplet, which is composed by a faultFamily, a faultMember and a faultCode, and referred to as FaultState. A particular alarm is mapped by exactly one FaultState, and vice-versa.

The faultFamily field identifies a set of elements of the same kind, and that present the same failures (e.g., all power supplies, which could be represented by the "PS" string).

The faultMember field identifies the particular instance of the given faultFamily that is currently raising the alarm.

The faultCode field identifies the particular error that is being informed. Its value must match the corresponding one stored in the Alarm Service configuration that describes the situation being reported as faulty.

Parameters:
faultFamily The alarm's fault family
faultMember The alarm's fault member
faultCode The alarm's fault code
Exceptions:
AcsJContainerServicesEx if anything goes wrong while raising the alarm
Deprecated:
The new getAlarmSource() method should be used instead, calling AlarmSource#raiseAlarm(String, String, int) on the returned object

Implements alma.acs.container.ContainerServices.

References alma.acs.container.ContainerServicesProxy.delegate, and alma.acs.container.ContainerServices.raiseAlarm().

void alma.acs.container.ContainerServicesProxy.registerComponentListener ( ComponentListener  listener  ) 
void alma.acs.container.ContainerServicesProxy.releaseComponent ( String  componentUrl  ) 
void alma.acs.container.ContainerServicesProxy.releaseComponent ( String  componentUrl,
ComponentReleaseCallback  callback 
)

Releases the reference to the specified component. Releasing a component reference may result in the deactivation of that component, if no other clients hold (sticky) references.

This call will return as soon as the release request has been delivered to the ACS manager, which means that the reference count evaluation and possible component deactivation will happen only after returning from this call.

If your code must synchronize with the reference evaluation and possible component deactivation in the target container, or if you are interested in exceptions that may occur during component deactivation, then you should supply the optional ComponentRequestCallback object and block execution of your calling thread until you receive the callback.

If an exception (such as no-permission) is thrown during the synchronous first part of the underlying call to the manager, then this exception will not be thrown upward by this method but will instead be reported to the optional callback object, just like any exception that happens later during the asynchronous part of the component release. The idea here is to have either "interested" clients that want to get all exceptions, or "easy" clients that do not care about any exceptions, thus do not provide a callback object, and also do not want to bother about a try/catch block.

Parameters:
componentUrl the name/curl of the component instance as used by the manager
callback may be null if you do not need to wait for component activation or to see the results. An new instance of ComponentReleaseCallback is required for every call.
Since:
ACS 9.1

Implements alma.acs.container.ContainerServices.

References alma.acs.container.ContainerServicesProxy.delegate, and alma.acs.container.ContainerServices.releaseComponent().


Member Data Documentation

Referenced by alma.acs.container.ContainerServicesProxy.activateOffShoot(), alma.acs.container.ContainerServicesProxy.assignUniqueEntityId(), alma.acs.container.ContainerServicesProxy.clearAlarm(), alma.acs.container.ContainerServicesProxy.createNotificationChannelPublisher(), alma.acs.container.ContainerServicesProxy.createNotificationChannelSubscriber(), alma.acs.container.ContainerServicesProxy.deactivateOffShoot(), alma.acs.container.ContainerServicesProxy.findComponents(), alma.acs.container.ContainerServicesProxy.getAdvancedContainerServices(), alma.acs.container.ContainerServicesProxy.getAlarmSource(), alma.acs.container.ContainerServicesProxy.getCDB(), alma.acs.container.ContainerServicesProxy.getCollocatedComponent(), alma.acs.container.ContainerServicesProxy.getComponent(), alma.acs.container.ContainerServicesProxy.getComponentDescriptor(), alma.acs.container.ContainerServicesProxy.getComponentNonSticky(), alma.acs.container.ContainerServicesProxy.getComponentStateManager(), alma.acs.container.ContainerServicesProxy.getDefaultComponent(), alma.acs.container.ContainerServicesProxy.getDynamicComponent(), alma.acs.container.ContainerServicesProxy.getLogger(), alma.acs.container.ContainerServicesProxy.getName(), alma.acs.container.ContainerServicesProxy.getReferenceWithCustomClientSideTimeout(), alma.acs.container.ContainerServicesProxy.getThreadFactory(), alma.acs.container.ContainerServicesProxy.getTransparentXmlWrapper(), alma.acs.container.ContainerServicesProxy.raiseAlarm(), alma.acs.container.ContainerServicesProxy.registerComponentListener(), and alma.acs.container.ContainerServicesProxy.releaseComponent().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties