|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.RMIBinding
public final class RMIBinding
RMI binding that associates an RMI remote/activatable object with a
name bound to an rmiregistry. The RMI registry information is specified
by the associated RMIConfiguration
.
RMIConfiguration
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
BINDING_TYPE_BIND
RMI binding type: bind |
static java.lang.String |
BINDING_TYPE_LOOKUP
RMI binding type: lookup |
static java.lang.String |
BINDING_TYPE_REBIND
RMI binding type: rebind |
static java.lang.String |
LOCALHOST
String constant denoting the local host. |
static short |
RMI_BINDING_BIND
RMI binding: bind remote to the rmiregistry |
static short |
RMI_BINDING_INVALID
RMI binding: unitialized |
static short |
RMI_BINDING_LOOKUP
RMI binding: lookup remote in the rmiregistry |
static short |
RMI_BINDING_REBIND
RMI binding: rebind remote to the rmiregistry |
Constructor Summary | |
---|---|
RMIBinding(RMIConfiguration rmiConfiguration,
java.lang.String bindName,
short binding)
Constructor specifying the RMI configuration and the bind name for the RMI remote/activatable object. |
Method Summary | |
---|---|
RemoteServiceInterface |
deploy()
Deploys the class in-process (within the same JVM). |
ActivatableWrapper |
getActivatable()
Gets a wrapper class encapsulating an RMI activatable object. |
static short |
getBinding(java.lang.String bindingType)
Translates a string value representing the binding to a short. |
java.lang.String |
getBindName()
Gets the name by which the remote/activatable object is to be bound to the rmiregistry. |
java.rmi.Remote |
getRemoteObject()
Gets the remote object. |
RMIConfiguration |
getRMIConfiguration()
Gets the RMI configuration, host and port, for this binding. |
java.lang.String |
getUrl()
Gets the URL used to access the RMI service via its bind name at the using the RMI configuration. |
boolean |
isActivatable()
Determines whether or not this binding contains an RMI activatable object. |
boolean |
isBind()
Determines whether or not the remote is associated with an RMI registry via a "bind". |
boolean |
isNamingLookup()
Determines whether or not a naming lookup should be done to obtain a remote object.. |
boolean |
isRebind()
Gets the preference to rebind or bind when associating a remote with an rmiregistry. |
boolean |
isRegisterWithRMI()
Gets the preference to bind or not to bind a remote object to the rmiregistry. |
void |
setActivatable(ActivatableWrapper activatableWrapper)
Sets the activatable. |
void |
setBinding(short bindingType)
Sets the RMI binding type. |
void |
setBindName(java.lang.String bindName)
Sets the name to be bound to the rmiregistry. |
void |
setRegisterWithRMI(boolean registerWithRMI)
Specifies whether or not to bind the remote object to the rmiregistry. |
void |
setRemoteObject(java.rmi.Remote remoteObject)
Sets the remote object to be bound to the rmiregistry. |
void |
setRMIConfiguration(RMIConfiguration rmiConfiguration)
Sets the RMI configuration that describes the host and port. |
java.lang.String |
toString()
Gets a string representation of this instance. |
void |
unbind()
Unbinds the name binding from the RMI registry. |
Field Detail |
---|
public static final java.lang.String LOCALHOST
public static final java.lang.String BINDING_TYPE_BIND
BINDING_TYPE_REBIND
,
BINDING_TYPE_LOOKUP
,
Constant Field Valuespublic static final java.lang.String BINDING_TYPE_REBIND
BINDING_TYPE_BIND
,
BINDING_TYPE_LOOKUP
,
Constant Field Valuespublic static final java.lang.String BINDING_TYPE_LOOKUP
BINDING_TYPE_BIND
,
BINDING_TYPE_REBIND
,
Constant Field Valuespublic static final short RMI_BINDING_INVALID
public static final short RMI_BINDING_BIND
public static final short RMI_BINDING_REBIND
public static final short RMI_BINDING_LOOKUP
Constructor Detail |
---|
public RMIBinding(RMIConfiguration rmiConfiguration, java.lang.String bindName, short binding) throws ServiceException
rmiConfiguration
- RMI configuration in terms of the host and port.bindName
- Name by which the RMI remote/activatable object is to
be bound to the rmiregistry.binding
- RMI binding. One of
ServiceException
- if unable to construct an RMI binding.Method Detail |
---|
public static short getBinding(java.lang.String bindingType)
bindingType
- RMI binding type which must be one of
"RMI_REBIND", "RMI_BIND" or "RMI_LOOKUP".
RMIBinding.RMI_BINDING_INVALID
if an invalid binding was specified.public void setBinding(short bindingType) throws ServiceException
bindingType
- RMI binding type.
ServiceException
- if an invalid binding type is specified.public java.lang.String getBindName()
public void setBindName(java.lang.String bindName)
bindName
- The name by which the remote/activatable object is to
be bound.public boolean isRegisterWithRMI()
true
if the remote is to be bound to the rmiregistry.public boolean isRebind()
true
if the remote is to be associated with an
rmiregistry using a "rebind" which will replace any currently
registered remote or false
if a "bind" is desired.
Note that if a "bind" is requested and a remote is already
registered, then the registration will fail.public boolean isBind()
true
if the remote is to be associated with an
rmiregistry using a "bind".public boolean isNamingLookup()
true
if a naming lookup should occur. If
false
then check isRebind() to determine whether
a remote object should be registered with RMI via a rebind
or bind operation.public void setRegisterWithRMI(boolean registerWithRMI)
registerWithRMI
- true
if the remote is to be
bound to the rmiregistry.public RMIConfiguration getRMIConfiguration()
public void setRMIConfiguration(RMIConfiguration rmiConfiguration)
rmiConfiguration
- RMI configuration associated with this binding.public boolean isActivatable()
true
if an activatable object is defined and
false
if one isn't defined.public ActivatableWrapper getActivatable()
public void setActivatable(ActivatableWrapper activatableWrapper)
activatableWrapper
- Wrapper encapsulating an RMI activatable
object.public java.rmi.Remote getRemoteObject()
public void setRemoteObject(java.rmi.Remote remoteObject)
remoteObject
- Remote object to be bound to RMI.public java.lang.String getUrl()
public RemoteServiceInterface deploy() throws ServiceException
deploy
in interface DeployInterface
ServiceException
- if unable to deploy the service.DeployInterface.deploy()
public java.lang.String toString()
toString
in class java.lang.Object
public void unbind()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |