Class RemoteService.context.BrokerContext
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class RemoteService.context.BrokerContext

java.lang.Object
   |
   +----JavaAgent.context.AgentContext
           |
           +----JavaAgent.context.SocketContext
                   |
                   +----JavaAgent.context.ANSContext
                           |
                           +----RemoteService.context.BrokerContext

public class BrokerContext
extends ANSContext
Subclass of ANSContext which creates a ServiceBroker and optionally a BrokerFrame.


Copyright (c) 1995, H. Robert Frost, Stanford University. All rights reserved.

Copyright (c) 1996, H. Robert Frost, Enterprise Integration Technologies, Inc. All rights reserved.

RESTRICTED RIGHTS LEGEND: Use, duplication or disclosure by the Government is subject to restrictions as set forth in subparagraph(c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and in similar clauses in the FAR and NASA FAR supplement.

This software is bound by the terms and conditions listed in the attached LICENSE file.



Constructor Index

 o BrokerContext(SocketParams)
BrokerContext constructor.

Method Index

 o addAgent()
Creates the ServiceBroker object.
 o createGUI()
If the gui flag is set, creates an RSFrame object.
 o main(String[])
Called if the BrokerContext is started as an application from the command line.
 o resourceChanged(String)
Called when some Agent resource has changed.

Constructors

 o BrokerContext
  public BrokerContext(SocketParams params)
BrokerContext constructor.

Methods

 o createGUI
  protected void createGUI()
If the gui flag is set, creates an RSFrame object.
Overrides:
createGUI in class AgentContext
 o addAgent
  protected boolean addAgent()
Creates the ServiceBroker object.
Overrides:
addAgent in class ANSContext
 o resourceChanged
  public void resourceChanged(String type)
Called when some Agent resource has changed. If it is available_service could be a registration or an unregistration.
Parameters:
type - String identifying the type of the resource.
Overrides:
resourceChanged in class AgentContext
 o main
  public static void main(String arg[])
Called if the BrokerContext is started as an application from the command line. Command line args:

Parameters:
arg - Array of command line arguments.

All Packages  Class Hierarchy  This Package  Previous  Next  Index