com.sas.services.deployment
Class ActivatableWrapper

java.lang.Object
  |
  +--com.sas.services.deployment.ActivatableWrapper

public class ActivatableWrapper
extends Object

Activatable wrapper used to register a description of a remoteable object with the RMI daemon, rmid.

Since:
1.0

Constructor Summary
ActivatableWrapper(String securityPolicyFile, String location, String className, String bindName)
          Constructor specifying a security policy file, class codebase, activatable class, and its bind name.
ActivatableWrapper(String securityPolicyFile, String location, String className, String bindName, Object marshalledDataObject, RMIConfiguration rmiConfiguration)
          Constructor specifying a security policy file, class codebase, activatable class, and its bind name.
 
Method Summary
 Remote deploy()
          Registers information about an activatable object with rmid and the rmiregistry.
 MarshalledObject getMarshalledData()
          Gets the marshalled object.
 Object getMarshalledDataObject()
          Gets the marshalled data object.
 void setMarshalledDataObject(Object data)
          Sets data to be marshalled for use by the activatable object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivatableWrapper

public ActivatableWrapper(String securityPolicyFile,
                          String location,
                          String className,
                          String bindName)
                   throws IOException
Constructor specifying a security policy file, class codebase, activatable class, and its bind name.
Parameters:
securityPolicyFile - Security policy file.
location - Codebase directory path.
className - Activatable class name.
bindName - Bind name.
Throws:
IOException - if an I/O anomaly is encountered.

ActivatableWrapper

public ActivatableWrapper(String securityPolicyFile,
                          String location,
                          String className,
                          String bindName,
                          Object marshalledDataObject,
                          RMIConfiguration rmiConfiguration)
                   throws IOException
Constructor specifying a security policy file, class codebase, activatable class, and its bind name. A optional marshalled object may be specified to designate an initialization data object. An RMI configuration is specified to designate the location of an RMI registry.
Parameters:
securityPolicyFile - Security policy file.
location - Codebase directory path.
className - Activatable class name.
bindName - Bind name.
marshalledDataObject - Marshalled data object or null if there is no initialization data object.
rmiConfiguration - RMI configuration that defines the desired rmiregistry.
Throws:
IOException - if an I/O anomaly is encountered.
Method Detail

setMarshalledDataObject

public final void setMarshalledDataObject(Object data)
                                   throws IOException
Sets data to be marshalled for use by the activatable object.
Parameters:
data - Data to be marshalled.
Throws:
IOException - in unable to marshall the data object.

getMarshalledDataObject

public final Object getMarshalledDataObject()
Gets the marshalled data object.
Returns:
Marshalled data object or null if no object is specified.

getMarshalledData

public final MarshalledObject getMarshalledData()
                                         throws IOException
Gets the marshalled object.
Returns:
Marshalled object.
Throws:
IOException - if an I/O issue is encountered.

deploy

public Remote deploy()
              throws ServiceException
Registers information about an activatable object with rmid and the rmiregistry.
Returns:
Remote object.
Throws:
ServiceException - if unable to deploy the service.




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:28:53