站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

LinkRefPair (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.naming
Class LinkRefPair

java.lang.Object
  extended byjavax.naming.Reference
      extended byorg.jboss.naming.LinkRefPair
All Implemented Interfaces:
Cloneable, Serializable

public class LinkRefPair
extends Reference

A pair of addresses, one to be used in the local machine, the other in remote machines.

Version:
$Revision: 1.2 $
Author:
Adrian Brock (adrian@jboss.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className
 
Constructor Summary
LinkRefPair(String remote, String local)
          Create a new link ref pair with the give remote and local names.
 
Method Summary
 String getGUID()
          Get the guid link name
 String getLocalLinkName()
          Get the local link name
 String getRemoteLinkName()
          Get the remote link name
 
Methods inherited from class javax.naming.Reference
add, add, clear, clone, equals, get, get, getAll, getClassName, getFactoryClassLocation, getFactoryClassName, hashCode, remove, size, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkRefPair

public LinkRefPair(String remote,
                   String local)
Create a new link ref pair with the give remote and local names.

Parameters:
remote - the remote name
local - the local name
Method Detail

getGUID

public String getGUID()
               throws MalformedLinkException
Get the guid link name

Returns:
the guid
Throws:
MalformedLinkException - when the reference is malformed

getRemoteLinkName

public String getRemoteLinkName()
                         throws MalformedLinkException
Get the remote link name

Returns:
the remote link
Throws:
MalformedLinkException - when the reference is malformed

getLocalLinkName

public String getLocalLinkName()
                        throws MalformedLinkException
Get the local link name

Returns:
the remote link
Throws:
MalformedLinkException - when the reference is malformed


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.