fixed discovery start
This commit is contained in:
parent
326e6ce76d
commit
042e846b1c
|
@ -1,5 +1,10 @@
|
||||||
import { Service } from '@overflow/commons/api/service';
|
import { Service } from '@overflow/commons/api/service';
|
||||||
|
|
||||||
|
import DiscoveryIngActions from '../../redux/action/ing';
|
||||||
|
|
||||||
|
import Host from '../model/Host';
|
||||||
|
import Port from '../model/Port';
|
||||||
|
import DisService from '../model/Service';
|
||||||
|
|
||||||
export class DiscoveryService extends Service {
|
export class DiscoveryService extends Service {
|
||||||
// tslint:disable-next-line:no-empty
|
// tslint:disable-next-line:no-empty
|
||||||
|
@ -13,13 +18,30 @@ export class DiscoveryService extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
public discoveryIngHost(params: any): void {
|
public discoveryIngHost(params: any): void {
|
||||||
|
|
||||||
|
let host: Host = params;
|
||||||
|
|
||||||
console.log('discoveryIngHost');
|
console.log('discoveryIngHost');
|
||||||
|
console.log(host);
|
||||||
|
|
||||||
|
this.dispatch(DiscoveryIngActions.RECEIVE_HOST, host);
|
||||||
}
|
}
|
||||||
public discoveryIngPort(params: any): void {
|
public discoveryIngPort(params: any): void {
|
||||||
|
|
||||||
|
let port: Port = params;
|
||||||
|
|
||||||
console.log('discoveryIngPort');
|
console.log('discoveryIngPort');
|
||||||
|
console.log(port);
|
||||||
|
|
||||||
|
this.dispatch(DiscoveryIngActions.RECEIVE_PORT, port);
|
||||||
}
|
}
|
||||||
public discoveryIngService(params: any): void {
|
public discoveryIngService(params: any): void {
|
||||||
|
|
||||||
|
let service: DisService = params;
|
||||||
console.log('discoveryIngService');
|
console.log('discoveryIngService');
|
||||||
|
console.log(service);
|
||||||
|
|
||||||
|
this.dispatch(DiscoveryIngActions.RECEIVE_SERVICE, service);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,8 +123,10 @@ export class DiscoveryTable extends React.Component<Props, State> {
|
||||||
services: convert,
|
services: convert,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.props.onDiscoveryStart(discoveryStartInfo);
|
||||||
|
|
||||||
this.props.onProbeChange(discoveryStartInfo);
|
this.props.onProbeChange(discoveryStartInfo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public render(): JSX.Element {
|
public render(): JSX.Element {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user