org.oddjob.jmx.server
Class ServerInfo

java.lang.Object
  extended by org.oddjob.jmx.server.ServerInfo
All Implemented Interfaces:
Serializable

public class ServerInfo
extends Object
implements Serializable

ServerInfo is a collection of information for the client about a server side bean. It's intention is to provide a client with enough information to create a proxy for the server side component.

TODO: This is badly named. Should be ServerComponentInfo.

See Also:
Serialized Form
Author:
Rob Gordon.

Constructor Summary
ServerInfo(Address address, ClientHandlerResolver<?>[] resolvers)
          Constructor.
 
Method Summary
 Address getAddress()
          Get the address of this component.
 ClientHandlerResolver<?>[] getClientResolvers()
          Get the factories that should be used to create handlers to talk to the server.
 String getId()
          Get the id of the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerInfo

public ServerInfo(Address address,
                  ClientHandlerResolver<?>[] resolvers)
Constructor.

Parameters:
id - The id, can be null.
url - The url, must not be null.
consoleId - The console id, must not be null.
resolvers - Array of suported interfaces. Must not be null.
Method Detail

getId

public String getId()
Get the id of the component.

Returns:
The id, may be null if the component doesn't have an id.

getClientResolvers

public ClientHandlerResolver<?>[] getClientResolvers()
Get the factories that should be used to create handlers to talk to the server.

Returns:
The factories.

getAddress

public Address getAddress()
Get the address of this component. Only components with ids will provide an address.

Returns: