public void registerSocketService(Grid grid,
String id,
String ip,
int port) {
CoreServicesLookupImpl coreServicesWP = (CoreServicesLookupImpl) grid.get( CoreServicesLookup.class );
GridServiceDescriptionImpl gsd = (GridServiceDescriptionImpl) coreServicesWP.lookup( SchedulerService.class );
if ( gsd == null ) {
gsd = new GridServiceDescriptionImpl( WhitePages.class, grid.getId() );
}
GridServiceDescription<WhitePages> service = coreServicesWP.getServices().get( SchedulerService.class.getName() );
if ( service == null ) {
coreServicesWP.getServices().put( SchedulerService.class.getName(),
gsd );
service = gsd;
}
Address address = null;